Reading25 min read·Module 4

Glacier & Archive Solutions

Key concepts

  • Glacier Instant Retrieval

  • Glacier Flexible Retrieval

  • Glacier Deep Archive

  • Retrieval options and costs

  • Vault lock for compliance

Overview

Amazon S3 Glacier storage classes provide secure, durable, and extremely low-cost cloud storage for data archiving and long-term backup. Understanding the three Glacier classes, their retrieval options, and compliance features is critical for the SAA-C03 exam.

Core Concept

S3 Glacier offers three storage classes: Glacier Instant Retrieval (millisecond access), Glacier Flexible Retrieval (minutes to hours), and Glacier Deep Archive (hours, lowest cost). The key trade-off: lower storage cost = higher retrieval cost + longer retrieval time.

Exam Tip

When exam questions mention 'rarely accessed' data with specific retrieval time requirements, match the SLA: milliseconds = Glacier Instant, 1-12 hours = Glacier Flexible, 12-48 hours acceptable = Deep Archive. Always verify minimum storage duration requirements (90/90/180 days).

Key Concepts

S3 Glacier Storage Classes

S3 Glacier Storage Classes Comparison
Figure 1: S3 Glacier Storage Classes Overview

S3 Glacier Instant Retrieval

Purpose: Archive data requiring immediate access when needed

Key Characteristics:

  • Millisecond retrieval (same as S3 Standard)
  • ~68% lower cost than S3 Standard-IA
  • Minimum storage duration: 90 days
  • Minimum object size: 128 KB billable
  • 99.9% availability, 11 9s durability

Pricing (US-East-1):

  • Storage: ~$0.004/GB/month
  • Retrieval: ~$0.03/GB

Best For:

  • Medical images accessed quarterly
  • News media assets
  • Genomics data
  • User-generated content archives requiring instant access

S3 Glacier Flexible Retrieval

Purpose: Archive data with flexible retrieval needs (minutes to hours)

Key Characteristics:

  • Multiple retrieval options (expedited, standard, bulk)
  • ~10% lower cost than Glacier Instant
  • Minimum storage duration: 90 days
  • 99.99% availability, 11 9s durability

Retrieval Options: | Tier | Time | Use Case | |------|------|----------| | Expedited | 1-5 minutes | Urgent requests | | Standard | 3-5 hours | Regular access | | Bulk | 5-12 hours | Large datasets (FREE) |

Best For:

  • Backup and disaster recovery
  • Compliance archives
  • Media asset workflows
  • Data that can tolerate hours of retrieval time

S3 Glacier Deep Archive

Purpose: Lowest-cost storage for long-term archives (7-10+ years)

Key Characteristics:

  • Lowest storage cost in AWS (~$0.00099/GB/month)
  • Minimum storage duration: 180 days
  • No expedited retrieval option
  • 99.99% availability, 11 9s durability

Retrieval Options: | Tier | Time | |------|------| | Standard | 12 hours | | Bulk | 48 hours |

Cost Comparison:

  • ~23x cheaper than S3 Standard
  • 1 TB = ~$1/month vs ~$23/month in Standard

Best For:

  • Regulatory compliance data (SEC 17a-4, HIPAA)
  • Financial records (7+ year retention)
  • Healthcare records
  • Magnetic tape replacement
  • Digital preservation

Retrieval Options Deep Dive

Glacier Retrieval Times and Costs
Figure 2: Glacier Retrieval Options Comparison

Glacier Retrieval Options

Storage ClassRetrieval TierTimeCost per GBNotes
Glacier InstantStandardMilliseconds$0.03Same latency as S3 Standard
Glacier FlexibleExpedited1-5 min$0.03May need provisioned capacity
Glacier FlexibleStandard3-5 hours$0.01Default option
Glacier FlexibleBulk5-12 hoursFREEBest for large restores
Deep ArchiveStandard12 hours$0.02Only expedited option
Deep ArchiveBulk48 hours$0.0025Lowest cost for large restores

Provisioned Retrieval Capacity

Purpose: Guarantee expedited retrieval availability

The Problem:

  • Expedited retrievals are subject to demand
  • During peak times, expedited may not be available
  • Can cause SLA violations for critical restores

The Solution:

  • Purchase provisioned retrieval capacity
  • Guarantees expedited retrieval availability
  • Cost: ~$100/month per unit
  • Each unit provides up to 3 expedited retrievals per 5 minutes

When to Use:

  • Mission-critical archives requiring guaranteed fast access
  • DR scenarios with strict RTO requirements
  • Regulated industries with access SLAs

Vault Lock & Compliance

Glacier Vault Lock Architecture
Figure 3: S3 Glacier Vault Lock for Compliance

S3 Glacier Vault Lock

Purpose: Enforce compliance controls with immutable policies

Key Features:

  • Implement WORM (Write Once Read Many) storage
  • Lock vault policy to prevent future modifications
  • Policy cannot be changed once locked (not even by root)
  • Separate from vault access policy

Policy Types:

  1. Vault Access Policy: Controls who can access vault (can be modified)
  2. Vault Lock Policy: Compliance controls (immutable once locked)

Locking Process:

  1. Create vault lock policy
  2. Initiate lock (24-hour validation period)
  3. Complete lock (policy becomes immutable)
  4. Abort lock (if issues found during validation)

Compliance Standards Supported:

  • SEC Rule 17a-4(f)
  • CFTC Rule 1.31(c)-(d)
  • FINRA Rule 4511(c)
  • HIPAA/HITECH
  • PCI-DSS
  • FedRAMP

S3 Object Lock (Alternative)

Purpose: WORM protection at the object level in S3

Modes:

  1. Governance Mode: Users with special permissions can delete
  2. Compliance Mode: No one can delete, including root account

Retention Options:

  • Retention Period: Protect for specified duration
  • Legal Hold: Protect indefinitely until removed

Key Differences from Vault Lock: | Feature | Vault Lock | Object Lock | |---------|------------|-------------| | Scope | Entire vault | Individual objects | | Storage Classes | Glacier only | All S3 classes | | Flexibility | Less (vault level) | More (per object) | | Management | Legacy API | S3 API |

Best Practice: Use S3 Object Lock for new workloads, Vault Lock for legacy Glacier vaults

SHRestore Object from Glacier
# Initiate restore from Glacier Flexible Retrieval
aws s3api restore-object \
  --bucket my-bucket \
  --key archived-file.zip \
  --restore-request '{
    "Days": 7,
    "GlacierJobParameters": {
      "Tier": "Standard"
    }
  }'

# Initiate expedited restore
aws s3api restore-object \
  --bucket my-bucket \
  --key urgent-file.zip \
  --restore-request '{
    "Days": 1,
    "GlacierJobParameters": {
      "Tier": "Expedited"
    }
  }'

# Initiate bulk restore (free for Flexible Retrieval)
aws s3api restore-object \
  --bucket my-bucket \
  --key large-archive.zip \
  --restore-request '{
    "Days": 7,
    "GlacierJobParameters": {
      "Tier": "Bulk"
    }
  }'

# Check restore status
aws s3api head-object \
  --bucket my-bucket \
  --key archived-file.zip \
  --query 'Restore'
JSONS3 Object Lock Configuration
{
  "ObjectLockEnabled": "Enabled",
  "Rule": {
    "DefaultRetention": {
      "Mode": "COMPLIANCE",
      "Years": 7
    }
  }
}

Cost Optimization Strategies

Glacier Cost Optimization

Strategy 1: Use Bulk Retrievals

  • Bulk retrievals are FREE for Glacier Flexible Retrieval
  • Plan restores ahead when possible
  • Batch multiple files into single bulk restore job

Strategy 2: Right-Size Retention Periods

  • Don't over-archive: verify compliance requirements
  • Use lifecycle policies to delete after retention period
  • Avoid minimum storage duration charges

Strategy 3: Choose Correct Storage Class

  • Instant Retrieval: Only if millisecond access truly required
  • Flexible Retrieval: Default for most archive use cases
  • Deep Archive: Long-term compliance (7+ years)

Strategy 4: Lifecycle Automation

Standard → Standard-IA (30 days) → Glacier Flexible (90 days) → Deep Archive (365 days)

Strategy 5: Avoid Frequent Retrievals

  • Retrieval costs can exceed storage costs
  • If accessing frequently, reconsider storage class
  • Monitor retrieval patterns with CloudWatch

Best Practices

  1. Match Retrieval SLA to Business Need: Don't pay for faster retrieval than required
  2. Use Bulk Retrievals: Free for Glacier Flexible, cheapest for Deep Archive
  3. Plan for Minimum Storage Duration: Factor 90/180 day minimums into lifecycle policies
  4. Enable Vault Lock for Compliance: Immutable policies for regulated data
  5. Use S3 Object Lock for New Workloads: More flexible than legacy Vault Lock
  6. Purchase Provisioned Capacity: When expedited retrieval SLAs are mandatory
  7. Combine with Lifecycle Policies: Automate transitions to Glacier tiers

Common Exam Scenarios

Exam Scenario Decision Guide

ScenarioRecommended SolutionKey Reasoning
Medical images accessed quarterly, need instant accessGlacier Instant RetrievalMillisecond access, 68% cheaper than Standard-IA
Backup data, restore within 4 hours when neededGlacier Flexible Retrieval (Standard tier)3-5 hour retrieval meets SLA, cost-effective
Compliance data, 7-year retention, rarely accessedGlacier Deep ArchiveLowest cost, 12-48 hour retrieval acceptable
DR scenario with 15-minute RTO requirementGlacier Flexible with Provisioned CapacityGuaranteed expedited retrieval availability
SEC 17a-4 regulated financial recordsDeep Archive + Vault Lock (WORM)Immutable compliance controls, lowest cost
Large dataset restore (petabytes), cost priorityGlacier Flexible Bulk retrievalFree retrieval, 5-12 hour completion
Archive data that might need immediate accessGlacier Instant RetrievalMillisecond access when needed, archive pricing
Replace magnetic tape libraryGlacier Deep ArchiveLower cost than tape, better durability

Common Pitfalls

Retrieval Costs Exceed Storage

Frequently retrieving data from Glacier can cost more than storing it in S3 Standard. A single GB retrieved from Glacier Instant costs $0.03, while storing that GB in Standard costs $0.023/month. If you retrieve data more than once per month, Standard may be cheaper.

Minimum Storage Duration Charges

Deleting objects before minimum storage duration (90 days for Instant/Flexible, 180 days for Deep Archive) incurs pro-rated charges for the remaining time. Plan data lifecycle carefully to avoid unexpected costs.

Expedited Retrieval Availability

Expedited retrievals from Glacier Flexible are subject to capacity. During high-demand periods, expedited requests may be rejected. Purchase provisioned retrieval capacity if guaranteed expedited access is required.

Deep Archive Has No Expedited Option

Glacier Deep Archive only supports Standard (12 hours) and Bulk (48 hours) retrieval. If you need faster access than 12 hours, use Glacier Flexible Retrieval instead.

Vault Lock Is Permanent

Once a Vault Lock policy is completed (after 24-hour validation), it cannot be changed or deleted - not even by the root account. Test thoroughly during the 24-hour validation window before completing the lock.

Quick Reference

Storage Class Comparison

FeatureGlacier InstantGlacier FlexibleDeep Archive
Storage Cost~$0.004/GB~$0.0036/GB~$0.00099/GB
Retrieval TimeMilliseconds1 min - 12 hours12 - 48 hours
Min Duration90 days90 days180 days
ExpeditedN/AYes (1-5 min)No
Bulk FreeN/AYesNo
Availability99.9%99.99%99.99%

Retrieval Pricing (US-East-1)

ClassTierPer GBPer 1,000 Requests
Glacier InstantStandard$0.03$10.00
Glacier FlexibleExpedited$0.03$10.00
Glacier FlexibleStandard$0.01$0.05
Glacier FlexibleBulkFREE$0.025
Deep ArchiveStandard$0.02$0.10
Deep ArchiveBulk$0.0025$0.025

CLI Quick Reference

# Restore object (Glacier Flexible)
aws s3api restore-object --bucket BUCKET --key KEY \
  --restore-request '{"Days":7,"GlacierJobParameters":{"Tier":"Standard"}}'

# Check restore status
aws s3api head-object --bucket BUCKET --key KEY --query 'Restore'

# Copy restored object to Standard
aws s3 cp s3://bucket/key s3://bucket/key-restored --storage-class STANDARD

Test Your Knowledge

Q

A healthcare company must store patient records for 7 years per HIPAA requirements. Records are accessed once during an annual audit with 24-hour advance notice. Which storage solution is MOST cost-effective?

AS3 Standard-IA with lifecycle policy
BS3 Glacier Flexible Retrieval with Standard retrieval
CS3 Glacier Deep Archive with Standard retrieval
DS3 Intelligent-Tiering with Archive tier
Q

A company needs to restore 100 TB of archived data from S3 Glacier Flexible Retrieval for a disaster recovery test. Cost is the primary concern, and they have 24 hours to complete the restore. Which retrieval option should they use?

AExpedited retrieval for fastest access
BStandard retrieval for balance of speed and cost
CBulk retrieval because it is free
DCannot restore 100 TB in 24 hours from Glacier
Q

A financial services firm must comply with SEC Rule 17a-4, requiring records to be stored in non-rewriteable, non-erasable format. What is the BEST solution?

AS3 Standard with bucket policy denying deletions
BS3 Glacier Deep Archive with Vault Lock policy
CS3 Standard with S3 Object Lock in Governance mode
DS3 Glacier with IAM policies restricting delete access
Q

A media company archives video assets to S3 Glacier Flexible Retrieval. Occasionally, they need urgent access to specific videos within 5 minutes for breaking news coverage. However, expedited retrievals sometimes fail during high-demand periods. What should they implement?

ASwitch to Glacier Instant Retrieval for all assets
BUse S3 Standard for all frequently accessed videos
CPurchase provisioned retrieval capacity
DIncrease the restore request timeout

Further Reading

Related services

S3 Glacier