Study guide
Technical reference and lesson notes
Purpose of This Lesson
Amazon S3 storage classes let you match storage cost and retrieval characteristics to an object’s access pattern, availability requirement, and retention period. For the SAP-C02 exam, the key decision is not durability—S3 storage classes provide extremely high durability—but how much availability, retrieval performance, and access frequency the workload requires.
Key Concepts
Durability versus availability
These terms describe different failure conditions:
- Durability is protection against data loss or corruption.
- Availability is the probability that the object can be accessed when requested.
S3 storage classes are designed for 11 nines of durability: 99.999999999%. This means the storage class decision generally does not involve selecting a lower-durability option. Availability does vary by class.
Data can be highly durable without being continuously available. For example, data stored in S3 One Zone-IA remains highly durable but is stored in a single Availability Zone, so it has a lower availability target and is more exposed to the loss of that Availability Zone.
S3 Standard
S3 Standard is the default storage class when no other class is specified.
Use it for:
- Frequently accessed objects
- Data requiring low-latency access
- Primary application content
- Workloads without a predictable access pattern
S3 Standard stores data redundantly across multiple Availability Zones and is intended for high availability and millisecond access.
S3 Intelligent-Tiering
S3 Intelligent-Tiering automatically moves objects between access tiers based on observed access patterns. It is useful when access frequency is unknown or changes over time.
Typical use cases include:
- Data lakes with unpredictable access
- User-generated content with changing popularity
- Long-lived datasets where manual lifecycle tuning is difficult
Intelligent-Tiering can reduce storage cost without requiring an administrator to predict future access. However, it includes monitoring and automation charges, and archive tiers must be considered when evaluating the complete cost and retrieval behavior.
S3 Standard-IA
S3 Standard-Infrequent Access is designed for data that is retained for long periods but accessed less frequently than active data.
Important characteristics include:
- Multi-AZ storage
- Millisecond first-byte latency
- A lower storage price than S3 Standard
- Retrieval charges when data is read
- A minimum billable object size of 128 KB
- A minimum storage duration of 30 days
Standard-IA is appropriate when objects are infrequently accessed but must remain immediately available when needed. Retrieval charges make it less suitable for workloads that read data frequently.
S3 One Zone-IA
S3 One Zone-Infrequent Access stores objects in a single Availability Zone. It has lower storage cost than multi-AZ infrequent-access storage, but its availability is lower and the data is not resilient to the loss of that Availability Zone in the same way as a multi-AZ class.
Use it only when:
- The data can be recreated, or another copy exists elsewhere
- The application accepts reduced availability
- The lower storage cost justifies the risk
- Cross-AZ redundancy is not required
Examples may include secondary backups, reproducible intermediate data, or data copied from another durable source.
S3 Glacier Instant Retrieval
S3 Glacier Instant Retrieval is an archival class for data that is rarely accessed but must be retrieved with millisecond first-byte latency when needed.
It is useful for archives such as medical images, media assets, or other data that is usually cold but occasionally requires immediate access. It has:
- Lower storage cost than active-access classes
- Retrieval charges
- A minimum storage duration of 90 days
- A minimum billable object size of 128 KB
- Millisecond retrieval latency
S3 Glacier Flexible Retrieval
S3 Glacier Flexible Retrieval is intended for long-term archives where retrieval does not need to be instantaneous. Retrieval generally ranges from minutes to hours, depending on the retrieval option selected.
Use it for:
- Backups and disaster-recovery archives
- Compliance records
- Data that is rarely accessed but may need to be recovered
It has a minimum storage duration and retrieval charges. The appropriate retrieval mode should be selected based on the required recovery time objective.
S3 Glacier Deep Archive
S3 Glacier Deep Archive is designed for the lowest-cost long-term storage of data that is very rarely accessed. Retrieval typically takes hours, so it is not appropriate for interactive or operational workloads.
Common use cases include:
- Multi-year regulatory archives
- Historical records
- Long-term backup retention
- Data retained primarily to satisfy compliance requirements
Deep Archive is a poor fit when data must be restored quickly. Its economics work best when the retention period is long and retrieval events are exceptional.
Minimum object size, storage duration, and retrieval charges
Lower-cost storage classes often impose additional billing conditions:
- Minimum billable object size: Some infrequent-access and archival classes charge as though an object were at least 128 KB. Many small objects can therefore cost more than expected.
- Minimum storage duration: Deleting or transitioning an object before the class’s minimum duration can result in an early-deletion charge.
- Retrieval charges: Infrequent-access and archival classes generally charge for the amount of data retrieved.
- Transition costs: Lifecycle transitions between storage classes can also incur request or transition charges.
These constraints are as important as the per-GB storage price when comparing classes.
Exam-Relevant Takeaways
- All discussed S3 storage classes provide
99.999999999%durability. - Availability is different from durability and varies by storage class.
- S3 Standard is the default choice for frequently accessed data.
- S3 Intelligent-Tiering is a strong choice when access patterns are unknown or unpredictable.
- Standard-IA provides multi-AZ storage and immediate access, but retrieval charges and minimum-duration rules apply.
- One Zone-IA is cheaper because it uses one Availability Zone; choose it only for replaceable or separately replicated data.
- Glacier Instant Retrieval supports millisecond access for rarely accessed archive data.
- Glacier Flexible Retrieval is appropriate when retrieval can take minutes to hours.
- Glacier Deep Archive offers the lowest archival storage cost but requires retrieval times measured in hours.
- Never choose a class based only on storage price. Include retrieval fees, minimum object-size billing, minimum storage duration, lifecycle transition charges, and recovery requirements.
Architecture Decision Guide
| Requirement | Recommended class | Main tradeoff |
|---|---|---|
| Frequently accessed objects with low-latency access | S3 Standard | Higher storage cost than colder tiers |
| Access pattern is unpredictable | S3 Intelligent-Tiering | Monitoring and tier-management charges |
| Infrequently accessed data that must be immediately available | S3 Standard-IA | Retrieval fees and minimum 30-day duration |
| Infrequently accessed, replaceable data with lower availability needs | S3 One Zone-IA | Single-AZ storage and lower availability |
| Rarely accessed archive requiring immediate retrieval | S3 Glacier Instant Retrieval | Retrieval fees and minimum 90-day duration |
| Long-term archive with retrieval in minutes to hours | S3 Glacier Flexible Retrieval | Slower retrieval and retrieval charges |
| Multi-year archive with rare retrieval and lowest storage cost | S3 Glacier Deep Archive | Retrieval generally takes hours |
Practical selection sequence
- Determine the required retrieval latency.
- Estimate how frequently objects will be read.
- Decide whether multi-AZ availability is required.
- Estimate the retention period and object sizes.
- Include retrieval, transition, and early-deletion charges.
- Use S3 Lifecycle policies or Intelligent-Tiering to automate transitions where appropriate.
Common Exam Traps
- Confusing durability with availability: 11 nines of durability does not mean every storage class has the same availability.
- Assuming One Zone-IA is a backup: It should not be the only copy of data that cannot be recreated.
- Choosing Glacier Deep Archive for active data: Deep Archive is not appropriate when users or applications need rapid retrieval.
- Ignoring retrieval charges: A lower monthly storage price can become more expensive if objects are accessed often.
- Ignoring minimum storage duration: Early deletion or an early lifecycle transition can create additional charges.
- Forgetting minimum billable size: Small objects stored in applicable IA or Glacier classes may be billed as 128 KB objects.
- Using Intelligent-Tiering for every workload: It is valuable for uncertain access patterns, but predictable workloads may be cheaper with a deliberately selected class.
- Treating Glacier as one performance tier: Glacier Instant Retrieval, Flexible Retrieval, and Deep Archive have materially different retrieval characteristics.
Real-World Engineer Notes
- Model the total cost using the expected number of requests, bytes retrieved, object sizes, retention period, and transition frequency—not just monthly storage price.
- Lifecycle policies are useful for predictable aging patterns, such as moving logs from Standard to Standard-IA and then to Glacier classes.
- S3 Intelligent-Tiering is often operationally attractive when access patterns are difficult to forecast, but verify whether monitoring costs are justified for small or short-lived objects.
- One Zone-IA can be reasonable for regenerated thumbnails, temporary exports, or a secondary copy, but document the recovery source before selecting it.
- For compliance archives, pair the storage-class decision with retention controls such as S3 Object Lock when immutability is required. Storage class alone does not prevent deletion or modification.
- Retrieval time must be reflected in the disaster-recovery design. An archive that takes hours to restore cannot satisfy a minutes-level recovery objective without another faster copy.
Quick Reference Summary
- Standard: frequent access, millisecond latency, multi-AZ.
- Intelligent-Tiering: unpredictable access, automated cost optimization.
- Standard-IA: infrequent access, immediate retrieval, multi-AZ, retrieval fees.
- One Zone-IA: infrequent access, single AZ, lower cost, reduced availability.
- Glacier Instant Retrieval: archival storage with millisecond retrieval.
- Glacier Flexible Retrieval: archival storage with retrieval from minutes to hours.
- Glacier Deep Archive: lowest-cost long-term archive, retrieval generally in hours.
- All classes: 11 nines of durability, but not identical availability or cost behavior.
Flashcards
- Q: What is the difference between S3 durability and availability?
A: Durability measures protection against loss or corruption; availability measures whether the object can be accessed when requested.
- Q: What durability level is associated with S3 storage classes?
A: 99.999999999%, commonly called 11 nines of durability.
- Q: Which S3 class is the default when no storage class is specified?
A: S3 Standard.
- Q: Which class is best when object access patterns are unpredictable?
A: S3 Intelligent-Tiering.
- Q: Why is S3 One Zone-IA less available than Standard-IA?
A: One Zone-IA stores data in a single Availability Zone, while Standard-IA uses multiple Availability Zones.
- Q: What cost applies when retrieving data from infrequent-access classes?
A: Data retrieval charges generally apply.
- Q: What is the minimum storage duration for S3 Standard-IA and One Zone-IA?
A: 30 days.
- Q: Which Glacier class provides millisecond first-byte retrieval?
A: S3 Glacier Instant Retrieval.
- Q: Which Glacier class is intended for the lowest-cost, multi-year archive?
A: S3 Glacier Deep Archive.
- Q: What is a common minimum billable object size for IA and Glacier classes?
A: 128 KB, where the class’s billing rules apply.
- Q: Why is Glacier Deep Archive unsuitable for interactive applications?
A: Retrieval generally takes hours.
- Q: What should be evaluated besides storage price when selecting a storage class?
A: Availability, retrieval latency, retrieval charges, minimum object size, minimum storage duration, and transition costs.
Practice Questions
Question 1
A company stores user-uploaded documents in Amazon S3. Access patterns vary significantly, and the operations team cannot reliably predict which documents will become popular. The company wants to reduce storage cost while retaining automatic access-based optimization. Which storage class is most appropriate?
Correct answer: S3 Intelligent-Tiering
Explanation: Intelligent-Tiering automatically moves objects between access tiers according to changing access patterns. It is designed for data whose access frequency is unknown or unpredictable. Monitoring charges should be included in the cost analysis.
Question 2
A company stores backup data that is rarely accessed but must be available immediately when a recovery event occurs. The data must be stored redundantly across multiple Availability Zones. Which class best fits these requirements?
Correct answer: S3 Standard-IA
Explanation: Standard-IA provides millisecond access and multi-AZ storage for infrequently accessed data. The company must account for retrieval charges and the 30-day minimum storage duration. One Zone-IA does not meet the multi-AZ requirement.
Question 3
A financial institution must retain audit records for seven years. The records are almost never accessed, and recovery can take several hours. The primary goal is to minimize storage cost. Which class should the architect recommend?
Correct answer: S3 Glacier Deep Archive
Explanation: Deep Archive is intended for long-term data retention with very rare access and retrieval times measured in hours. It is more appropriate than Glacier Instant Retrieval when immediate access is not required.
Question 4
A company stores generated image thumbnails in S3. The thumbnails can be recreated from source images, and the company wants to reduce storage cost. It accepts reduced availability if an Availability Zone fails. Which class is the best fit?
Correct answer: S3 One Zone-IA
Explanation: One Zone-IA costs less by storing objects in a single Availability Zone. It is appropriate for data that can be recreated or recovered from another copy. It should not be used as the only copy of irreplaceable data.
Question 5
An architect recommends moving frequently retrieved objects from S3 Standard to Standard-IA because Standard-IA has a lower storage price. The application reads most objects several times per day. What is the primary flaw in this recommendation?
Correct answer: Frequent retrieval can make Standard-IA more expensive because retrieval charges apply.
Explanation: Standard-IA is designed for infrequently accessed data. The architect must evaluate total cost, including per-GB retrieval charges and the storage class’s minimum-duration rules, rather than comparing storage price alone.