Question

Difficulty: MediumCost-Optimized Storage Tiering and Lifecycle Management

An e-commerce company stores transaction files in an Amazon S3 bucket using two prefixes: `invoices/` and `checkout_logs/`.

* Invoices (`invoices/`): PDF invoices with an average size of 2.5 MB2.5\text{ MB}. They are frequently accessed during the first 3030 days, occasionally accessed between days 3030 and 9090, and must be retained for 77 years for tax compliance.
* Checkout Logs (`checkout_logs/`): Text files with an average size of 15 KB15\text{ KB}. They are used for troubleshooting failed checkouts, frequently accessed during the first 1010 days, and are no longer needed after 2525 days.

Which combination of lifecycle rules meets these requirements most cost-effectively?

  1. For the `invoices/` prefix, transition objects to S3 Standard-IA after 3030 days, and transition them to S3 Glacier Deep Archive after 9090 days. For the `checkout_logs/` prefix, expire objects after 2525 days.Answer
  2. B
    For the `invoices/` prefix, transition objects to S3 Standard-IA after 3030 days, and transition them to S3 Glacier Deep Archive after 9090 days. For the `checkout_logs/` prefix, transition objects to S3 Standard-IA after 1010 days, and expire them after 2525 days.
  3. C
    For the `invoices/` prefix, transition objects to S3 Glacier Deep Archive after 3030 days. For the `checkout_logs/` prefix, transition objects to S3 Standard-IA after 1010 days, and expire them after 2525 days.
  4. D
    For the `invoices/` prefix, transition objects to S3 Standard-IA after 3030 days, and transition them to S3 Glacier Deep Archive after 9090 days. For the `checkout_logs/` prefix, transition objects to S3 Standard-IA after 1010 days, and transition them to S3 Glacier Deep Archive after 2525 days.

Answer

Configure a lifecycle policy that transitions Customer Invoice PDFs (`invoices/`) to S3 Standard-IA after 3030 days and to S3 Glacier Deep Archive after 9090 days, while expiring Temporary Checkout Session Logs (`checkout_logs/`) after 2525 days without transitioning them.
The correct option is to transition the larger invoices (2.5 MB2.5\text{ MB}) to S3 Standard-IA after 3030 days and to S3 Glacier Deep Archive after 9090 days, while simply expiring the checkout logs (15 KB15\text{ KB}) after 2525 days. This is cost-effective because the invoices exceed the 128 KB128\text{ KB} minimum size requirement for infrequent and archive tiers and are kept long-term. Meanwhile, the checkout logs are too small and are deleted before the 3030-day minimum storage duration of S3 Standard-IA, meaning transition would result in minimum storage and capacity charge penalties.

Step-by-Step Solution

1
Analyze the access pattern and size of the invoice PDFs.
The PDFs are 2.5 MB2.5\text{ MB} (greater than the 128 KB128\text{ KB} S3 Standard-IA minimum capacity limit) and are only occasionally accessed after 3030 days and rarely after 9090 days. They must be kept for 77 years.
This justifies transitioning them to S3 Standard-IA after 3030 days and to S3 Glacier Deep Archive after 9090 days to minimize storage costs over the 77-year retention period.
2
Analyze the access pattern, size, and lifespan of the checkout logs.
The logs are 15 KB15\text{ KB} (well below the 128 KB128\text{ KB} S3 Standard-IA minimum capacity limit) and must be deleted after 2525 days.
Transitioning these logs to S3 Standard-IA or any archive tier is inefficient because they do not meet the minimum object size (128 KB128\text{ KB}) and will trigger a minimum storage duration penalty (3030 days for S3 Standard-IA) since they are deleted before that period.
3
Select the lifecycle policy that optimizes costs for both data sets.
Invoice PDFs are transitioned through Standard-IA to Glacier Deep Archive, while checkout logs are kept in S3 Standard and deleted at 2525 days.
This avoids unnecessary storage penalties and capacity surcharges for the small, short-lived logs, while maximizing cost savings for the large, long-lived invoice files.

Key Concept

S3 Lifecycle policies must account for object size minimums (such as 128 KB128\text{ KB} for S3 Standard-IA) and minimum storage durations (such as 3030 days for S3 Standard-IA and 180180 days for S3 Glacier Deep Archive) to avoid cost penalties.
Rate this question