Lesson 5 of 5 Storage Architecture

Choosing Archive Tiers, Lifecycle Rules and Restore Plans

This lesson explains how to choose the archive storage class and lifecycle that meet a retention and retrieval requirement at the lowest cost, accounting for slow, charged retrieval and minimum storage durations.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish the Glacier storage classes.
  • Explain how lifecycle rules must respect minimum durations.
  • Explain when Intelligent-Tiering suits unknown access patterns.
  • Describe how a large restore is planned.

S3 archive storage classes

The three Glacier storage classes trade retrieval speed for price. Glacier Instant Retrieval returns data in milliseconds, like Standard-IA but cheaper to store. It suits archives read about once a quarter that must be available immediately, and has a 90-day minimum. Glacier Flexible Retrieval offers expedited retrieval in 1–5 minutes, standard in 3–5 hours and bulk in 5–12 hours, with a 90-day minimum, for backups and archives where waiting is acceptable. Glacier Deep Archive is the cheapest. Standard retrieval takes up to 12 hours and bulk up to 48, with a 180-day minimum, for compliance archives kept for years and rarely read. The following table summarises the classes.

ClassRetrievalMinimum durationUse
Glacier Instant RetrievalMilliseconds90 daysArchives accessed about once a quarter that must be available immediately
Glacier Flexible RetrievalExpedited 1-5 min, Standard 3-5 h, Bulk 5-12 h90 daysBackups and archives where minutes to hours is acceptable
Glacier Deep ArchiveStandard within 12 h, Bulk within 48 h180 daysCompliance archives kept for years and rarely, if ever, read

Objects in Flexible Retrieval and Deep Archive must be restored, which creates a temporary copy for a number of days that you choose. Expedited retrievals can be guaranteed with purchased provisioned capacity.

1–5min

Expedited retrieval from Glacier Flexible Retrieval

3–5hours

Standard retrieval from Glacier Flexible Retrieval

5–12hours

Bulk retrieval from Glacier Flexible Retrieval

48hours

Longest bulk retrieval from Glacier Deep Archive

Lifecycle rules

Lifecycle rules move and expire objects automatically. Transition actions move objects to cheaper classes by age, and expiration actions delete them, including noncurrent versions and incomplete multipart uploads. Several constraints shape the rules. Objects must stay in S3 Standard for at least 30 days before a transition to Standard-IA or One Zone-IA, and by default objects smaller than 128 KB are not transitioned, because the per-object overhead would cost more than the saving.

Each transition is charged per object, so archiving millions of tiny objects can cost more than it saves; aggregating them first, for example into tar archives or Parquet files, avoids this. Deleting or transitioning an object before its class's minimum storage duration is billed as if it had stayed the full period, so rules must not move data out of an archive class sooner than the minimum.

When access patterns are unknown

S3 Intelligent-Tiering moves each object between frequent, infrequent and archive instant access tiers automatically based on its access, for a small monitoring fee per object and with no retrieval charges. You can opt in to the Archive Access and Deep Archive Access tiers for objects not read for 90 or 180 days or more, accepting restore times for those. It suits data lakes and user content where nobody can predict access; lifecycle rules suit data with a known pattern, such as logs.

Planning a large restore

Restoring a large amount of archived data takes planning, because retrieval is slow and charged. The retrieval tier is chosen from the deadline: Bulk is the cheapest and suits restores where hours are acceptable, while Expedited suits small, urgent retrievals. S3 Batch Operations restores millions of objects from a manifest or an S3 Inventory report, rather than one request per object from a script.

Restore-completed events, delivered through S3 event notifications or EventBridge, trigger processing as each object becomes available. The restore period, the number of days the temporary copy is kept, must be long enough to finish processing; objects needed long term are copied to a hot storage class, because the temporary copy disappears when the period ends.

Worked example

A hospital must keep medical images for 10 years. Images are viewed often for 30 days, occasionally for a year, and after that only for legal requests, which must be answered within two days. Images must not be deletable before the retention period ends.

Lifecycle: S3 Standard, then Standard-IA (or Glacier Instant Retrieval) at 30 days, then Glacier Deep Archive at one year, whose 48-hour Bulk retrieval meets the two-day deadline at the lowest cost; expire after 10 years. S3 Object Lock in compliance mode with a 10-year retention enforces the no-deletion requirement.

Check yourself

How should a restore of millions of archived objects be started?

Show answer

With S3 Batch Operations, choosing the retrieval tier by deadline and cost, and allowing for restore request charges and the temporary copies kept in S3.

Exam Tips

Remember for the exam

  • Glacier Instant Retrieval: milliseconds, 90 days minimum. Flexible: minutes to hours. Deep Archive: up to 48 hours, 180 days minimum.
  • Lifecycle transitions to IA classes need 30 days in Standard; small objects are not transitioned by default.
  • Early deletion is billed for the remaining minimum duration.
  • Intelligent-Tiering suits unknown access patterns and has no retrieval fees.
  • Use S3 Batch Operations for mass restores and Bulk retrieval when time allows.
  • Pair archival with Object Lock when retention must be enforced.