What are the different Amazon S3 storage classes?
Compare Amazon S3 storage classes — Standard, Infrequent Access, Intelligent-Tiering, and Glacier — to cut cloud storage cost by access pattern.
Expected Interview Answer
Amazon S3 storage classes are tiers that trade off retrieval speed, availability, and cost so you can match each object's storage price to how often it is accessed.
The main classes are S3 Standard for frequently accessed data, S3 Standard-IA and One Zone-IA for infrequent access, S3 Intelligent-Tiering that moves objects automatically based on usage, and the Glacier family (Instant Retrieval, Flexible Retrieval, and Deep Archive) for long-term archives with progressively lower cost and longer retrieval times. All classes except One Zone-IA store data redundantly across at least three Availability Zones. Lifecycle policies transition objects between classes as they age.
- Lower cost for rarely accessed data
- Automatic tiering with Intelligent-Tiering
- High durability of eleven nines across classes
- Lifecycle rules automate transitions
- Deep Archive offers the cheapest long-term storage
AI Mentor Explanation
S3 storage classes are like where a club keeps its cricket gear by how often it is used. Match-day kit stays in the dressing room for instant grab (Standard); spare pads sit in the pavilion store (Infrequent Access); and vintage trophies go to a distant vault you can only open with days of notice (Glacier Deep Archive).
Step-by-Step Explanation
Step 1
Profile access patterns
Measure how often each dataset is read to decide between hot, warm, and cold tiers.
Step 2
Pick a default class
Use S3 Standard for active data or Intelligent-Tiering when access patterns are unknown or changing.
Step 3
Assign archival tiers
Map long-term, rarely read data to Glacier Flexible Retrieval or Deep Archive for the lowest cost.
Step 4
Write lifecycle rules
Create lifecycle policies that transition objects to cheaper classes after a set age.
Step 5
Validate retrieval needs
Confirm that acceptable retrieval times match each tier before archiving critical data.
What Interviewer Expects
- Naming the main storage classes accurately
- Understanding the cost versus retrieval-time trade-off
- Knowing One Zone-IA sacrifices multi-AZ redundancy
- How lifecycle policies automate transitions
- When Intelligent-Tiering is the safer default
Common Mistakes
- Thinking Glacier data is instantly retrievable in all tiers
- Assuming One Zone-IA is as durable against AZ loss as Standard
- Ignoring retrieval and request costs when comparing classes
- Using Standard for cold data and overpaying
Best Answer (HR Friendly)
“Amazon S3 offers different storage tiers so you pay less for data you rarely use. Frequently used files sit in fast, pricier storage, while old archives move to cheaper, slower tiers, and rules can shift files automatically as they age.”
Code Example
{
"Rules": [
{
"ID": "ArchiveOldLogs",
"Filter": { "Prefix": "logs/" },
"Status": "Enabled",
"Transitions": [
{ "Days": 30, "StorageClass": "STANDARD_IA" },
{ "Days": 90, "StorageClass": "GLACIER" },
{ "Days": 365, "StorageClass": "DEEP_ARCHIVE" }
]
}
]
}Follow-up Questions
- How does S3 Intelligent-Tiering decide when to move an object?
- What are the retrieval time options for Glacier Flexible Retrieval?
- Why might One Zone-IA cost less than Standard-IA?
- How do request and retrieval charges affect total cost per class?
MCQ Practice
1. Which S3 storage class stores data in only a single Availability Zone?
One Zone-IA keeps data in a single AZ, lowering cost but losing resilience to the loss of that zone.
2. Which class is cheapest for data retained for years and rarely accessed?
Glacier Deep Archive offers the lowest storage price for long-term archives, with retrieval taking up to 12 hours.
Flash Cards
Which class suits unknown or changing access patterns? — S3 Intelligent-Tiering, which moves objects automatically.
What does One Zone-IA give up for lower cost? — Multi-AZ redundancy — it stores data in a single Availability Zone.
Cheapest tier for long-term archives? — S3 Glacier Deep Archive.
What automates moving objects between classes? — S3 lifecycle policies based on object age or prefix.