Amazon S3 stores whole files, such as photos, videos or documents, inside containers called buckets, and each file stored there is called an object. In S3, the cost of storing an object depends on its storage class, which is the level of service you choose for it. The cheap classes charge less for storing and more for reading, and some charge a minimum number of days even if you delete the object earlier. On the SAA-C03 exam, a question on this topic describes an access pattern, that is, how often the data is read and how fast it has to arrive, and asks you for the cheapest class that meets that requirement. For example, an online store looks at the photos of its new products every day, but almost never opens the invoices from five years ago, so it doesn't make sense for it to pay the same to store both.
S3 storage classes

All S3 storage classes have the same designed durability, so what changes among them is the price, how long it takes you to read an object and the minimums they charge. There are seven classes you need to know:
- S3 Standard, which is the default, is used for data that is read more than once a month and has no minimum storage duration.
- S3 Intelligent-Tiering, which is used for access patterns that you don't know or that change, and which moves an object down to Infrequent Access if it isn't read for 30 consecutive days and to Archive Instant Access at 90.
- S3 Standard-IA, which is used for data that is read about once a month and that you need in milliseconds, which are thousandths of a second.
- S3 One Zone-IA, which works the same as Standard-IA but stores the data in a single Availability Zone and costs less.
- S3 Glacier Instant Retrieval, which is used for archive data, that is, data kept just in case, that is read once per quarter and is delivered in milliseconds.
- S3 Glacier Flexible Retrieval, which is used for archive data that is read once a year and that you have to restore before reading, that is, ask AWS to take it out of the archive, which takes from minutes to hours.
- S3 Glacier Deep Archive, which is the cheapest, is used for data that is read less than once a year and takes hours to restore.
For example, the store keeps in Standard the photos its customers see every day, in Glacier Instant Retrieval the photos from past seasons that someone reviews now and then, and in Deep Archive the old invoices it only keeps in case someone asks for them one day.
Intelligent-Tiering charges a monitoring fee per object and doesn't charge for retrieval. Standard-IA, on the other hand, charges for each GB retrieved and has a minimum size of 128 KB per object. Because One Zone-IA stores the data in a single zone, if that zone is lost the data is lost, so it is for data you can re-create. For example, the small versions of the photos that the store creates from the originals can go in One Zone-IA, because if they are lost it creates them again.
S3 Express One Zone goes in the opposite direction from the archive classes, because it is the lowest-latency class. It has single-digit millisecond access, is up to 10 times faster than S3 Standard and stores the data in a single zone that you choose. For example, a team that trains an artificial intelligence model and reads the same data over and over can use S3 Express One Zone so each read takes less time.
Minimum storage durations
Several classes charge a minimum number of days for each object: Standard-IA and One Zone-IA charge 30 days, Glacier Instant Retrieval and Glacier Flexible Retrieval charge 90, and Glacier Deep Archive charges 180. If you delete, overwrite or change the class of an object before that minimum, you pay for the remaining days, prorated.
This charge can make a cheap class expensive. For example, a file you send to Deep Archive and delete after two weeks costs you more than leaving it in S3 Standard, because Deep Archive charges its 180 days even if you don't use them.
Lifecycle rules
An S3 Lifecycle rule changes the class of objects or deletes them based on their age in days, without anyone doing it by hand. The transitions in a rule always go in a waterfall, from one class to a colder one, that is, cheaper to store and slower or more expensive to read. For example, the store can write a rule that moves the visit logs to Standard-IA after a month, to Glacier Flexible Retrieval after three months and deletes them after a year.

Each transition is charged as a request, and leaving a class before its minimum charges the remaining days. That is why a single rule can't send an object to Glacier Instant Retrieval at 4 days and to Deep Archive at 20, since the second step has to wait for the 90 days of the first.
There are two more details about transitions. By default, objects smaller than 128 KB don't change class. Also, the AWS decision guide says the 30-day wait in Standard before moving down to Standard-IA or One Zone-IA no longer applies, although the 30-day minimum within Standard-IA stays the same. For example, a very small text file of the store's stays in Standard even if the rule says to move it down.
cloud path tip: if you study with old material, you will read that an object had to spend 30 days in Standard before moving down to Standard-IA or One Zone-IA. According to the AWS decision guide, that wait no longer applies.
A lifecycle rule works when you know how the data will age. If you don't know, instead of writing a rule use Intelligent-Tiering, which moves each object based on its own access. For example, the store doesn't know which product photos will stop being viewed, because it depends on what sells, so it leaves them in Intelligent-Tiering.
Who pays for downloads from a bucket?
With Requester Pays, the person who downloads pays for the requests and the transfer, and the bucket owner only pays for storage. This option is used to share large datasets without paying for everyone's downloads. Because the requests have to be authenticated, a Requester Pays bucket doesn't allow anonymous access, which is someone downloading without saying who they are. For example, a university that publishes years of climate data for researchers can turn on Requester Pays so each researcher pays for what they download.
How to make S3 respond faster
An application achieves at least 3,500 PUT, COPY, POST or DELETE requests, which are the ones that upload, copy or delete, and 5,500 GET or HEAD requests, which are the ones that read, per second per prefix, and a bucket has no limit on prefixes. That is why, if you spread the objects across 10 prefixes, you multiply what you can read in parallel. For example, the store can keep its photos in one prefix per category, and each category has its own limit of reads per second.
To upload large objects, AWS recommends multipart upload from 100 MB. This feature splits the object into pieces and uploads those pieces in parallel, and if one fails only that piece is uploaded again. For example, a long product video uploads faster in parts than in a single piece.
If your account uses the new experience
In a new experience account, S3 is in the free plan, but your project's policies, which are rules AWS sets on what can be done, deny uploading objects with the GLACIER or DEEP_ARCHIVE class, and Glacier Deep Archive appears only in the paid plan. That is why you can try Standard, the IA classes, Intelligent-Tiering and lifecycle rules, and you try the archive classes in a full account. For example, you can write a rule that moves your practice files to Standard-IA, but you can't upload a file directly to Deep Archive.
On the exam
The questions on this topic describe how the data is used and ask you for the class. These words in the question point to the answer:
- "Unknown access pattern" or "changes over time", which point to Intelligent-Tiering.
- "Can be re-created" or "not critical" together with infrequent access, which point to One Zone-IA.
- "Retrieval in milliseconds" together with quarterly access, which point to Glacier Instant Retrieval.
- "12 hours" or "the next day" together with years of retention, which point to Deep Archive.
For example, if the question says "records that have to be kept for ten years and can be delivered the next day", the answer is Deep Archive.