Amazon S3 Storage Classes

There are several storage classes available for Amazon S3. We'll learn about all of these in depth, but you have to know them for the exam.

The main classes are

  1. Amazon S3 Standard-General Purpose,
  2. S3-Infrequent Access,
  3.  S3 One Zone-Infrequent Access,
  4.  Glacier Instant Retrieval,
  5.  Glacier Flexible Retrieval,
  6.  Glacier Deep Archive, and
  7. S3 Intelligent-Tiering.

When you create an object in S3, you can

  1. choose its class.
  2. You can also modify its storage class manually or
  3. use S3 Lifecycle configurations to move objects between these classes automatically.

Think of it like managing files in an office.

  • Day 1 - 30 (On Your Desk): When a new file is created (e.g., a monthly report), it's placed in the S3 Standard class. Like a document on your desk, it's immediately accessible because you're actively using it.
  • Day 31 - 90 (In the Filing Cabinet): After a month, you're done with the report but might need to refer to it occasionally. A lifecycle rule automatically moves it to S3 Infrequent Access (IA). It's like putting the document in a nearby filing cabinet—still easy to get, but not taking up prime desk space.
  • Day 91+ (In the Archive Room): After a year, you probably won't look at that report again, but company policy requires you to keep it for 7 years. Another rule moves it to S3 Glacier Deep Archive. This is like sending the file to a long-term storage facility. It's very cheap to store, but it takes hours or days to retrieve if you ever need it.
  • After 7 Years (In the Shredder): Finally, a rule can be set to automatically and permanently delete the object after its required retention period is over.

How It Works

You define these rules on an S3 bucket. A typical lifecycle rule has two main types of actions:

  1. Transition Actions: These rules move objects from one storage class to another. For example: "Move objects to S3 Infrequent Access 30 days after they are created."
  2. Expiration Actions: These rules define when objects should be deleted. For example: "Permanently delete objects 2,555 days (about 7 years) after they are created."

In short, S3 Lifecycle configurations are a "set it and forget it" feature for automating your storage costs and data retention policies without any manual intervention.

Durability and Availability

Before we go into the classes, let's define the concepts of durability and availability.

The Storage Classes

S3 Standard - General Purpose

S3 Infrequent Access (Standard-IA)

S3 One Zone - Infrequent Access (One Zone-IA)

Glacier Storage Classes

Glacier is a low-cost object storage meant for archiving and backup. The pricing is based on storage plus a retrieval cost.

  1. Amazon S3 Glacier Instant Retrieval

  1. Amazon S3 Glacier Flexible Retrieval

  1. Amazon S3 Glacier Deep Archive

                           (so be ready to wait for a lot of time)

S3 Intelligent-Tiering

This class allows you to sit back and relax while S3 moves objects for you between access tiers based on usage patterns. It incurs a small monthly monitoring and auto-tiering fee, but there are no retrieval charges.

S3 Storage Classes Comparison

If you compare all the storage classes, you don't need to remember these numbers, but it's for you to make sense of what they are.

  1. You get a durability of 11 9's everywhere.
  2. As availability goes down, the fewer zones you have (see the table above).
  3. The comparison shows things like the minimum storage duration.

You should take some time to look at the diagram on your own. You should understand it, but you should not remember it for the exam.

Pratham Mehta’s Notes