> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# S3 Storage Classes Demo

> This guide explains how to set and modify storage classes for files in Amazon S3.

In this guide, you'll learn how to set the storage class when uploading a file to [Amazon S3](https://learn.kodekloud.com/user/courses/amazon-simple-storage-service-amazon-s3) and modify the storage class for an existing file.

## Creating an S3 Bucket

First, create a new S3 bucket. For demonstration purposes, we will name the bucket **"kk-sc-demo"** and use the default configuration settings.

## Uploading a File and Setting the Storage Class

After creating the bucket, click on **Upload** to add a file. Select any file from your local system. As you proceed with the upload process, navigate to the **Properties** section. Here you can set the desired storage class. By default, the storage class is set to **"Standard."**

<Frame>
  ![The image shows an Amazon S3 console screen displaying different storage class options, including Standard, Intelligent-Tiering, and Glacier, with details on their designed use, availability zones, and minimum storage duration.](https://kodekloud.com/kk-media/image/upload/v1752859804/notes-assets/images/AWS-Certified-Developer-Associate-S3-Storage-Classes-Demo/amazon-s3-storage-classes-console.jpg)
</Frame>

For this demonstration, choose **"One Zone-Infrequent Access"** as the storage class. Once selected, click **Upload** to complete the process.

<Callout icon="lightbulb" color="#1CB2FE">
  After uploading, verify that the file's storage class is set to **"One Zone-Infrequent Access"** by checking the file details in the S3 console.
</Callout>

## Modifying the Storage Class of an Existing File

If you wish to change the storage class after the file has been uploaded, follow these steps:

1. Navigate to the file's **Properties** tab in the Amazon S3 console.
2. Locate the storage class section.
3. Select the new storage class (for example, **"Standard"**) from the options provided.

<Frame>
  ![The image shows an Amazon S3 console interface displaying details of an object named "beach1.jpg," including its properties like size, type, and last modified date.](https://kodekloud.com/kk-media/image/upload/v1752859805/notes-assets/images/AWS-Certified-Developer-Associate-S3-Storage-Classes-Demo/amazon-s3-console-beach1-details.jpg)
</Frame>

This process ensures you can easily manage and modify the storage class of your objects within Amazon S3, based on your evolving requirements.

<Callout icon="lightbulb" color="#1CB2FE">
  Remember that each S3 storage class is optimized for different use cases. Choose the class that best meets your performance, durability, and cost requirements.
</Callout>

By following these steps, you can effectively set and modify storage classes in Amazon S3, ensuring that your data is stored in the most cost-effective and efficient manner according to your needs.

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/aws-certified-developer-associate/module/e8ae2293-e16b-42d3-b32b-5c260a1f1e5d/lesson/43b421b1-46c9-487d-aee9-673083aabe6f" />

  <Card title="Practice Lab" icon="installation" cta="Learn more" href="https://learn.kodekloud.com/user/courses/aws-certified-developer-associate/module/e8ae2293-e16b-42d3-b32b-5c260a1f1e5d/lesson/2e4d78c1-4cb5-49ab-9420-ab343579790a" />
</CardGroup>
