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 . They are frequently accessed during the first days, occasionally accessed between days and , and must be retained for years for tax compliance.
* Checkout Logs (`checkout_logs/`): Text files with an average size of . They are used for troubleshooting failed checkouts, frequently accessed during the first days, and are no longer needed after days.
Which combination of lifecycle rules meets these requirements most cost-effectively?
- For the `invoices/` prefix, transition objects to S3 Standard-IA after days, and transition them to S3 Glacier Deep Archive after days. For the `checkout_logs/` prefix, expire objects after days.Answer
- BFor the `invoices/` prefix, transition objects to S3 Standard-IA after days, and transition them to S3 Glacier Deep Archive after days. For the `checkout_logs/` prefix, transition objects to S3 Standard-IA after days, and expire them after days.
- CFor the `invoices/` prefix, transition objects to S3 Glacier Deep Archive after days. For the `checkout_logs/` prefix, transition objects to S3 Standard-IA after days, and expire them after days.
- DFor the `invoices/` prefix, transition objects to S3 Standard-IA after days, and transition them to S3 Glacier Deep Archive after days. For the `checkout_logs/` prefix, transition objects to S3 Standard-IA after days, and transition them to S3 Glacier Deep Archive after days.
Answer
Configure a lifecycle policy that transitions Customer Invoice PDFs (`invoices/`) to S3 Standard-IA after days and to S3 Glacier Deep Archive after days, while expiring Temporary Checkout Session Logs (`checkout_logs/`) after days without transitioning them.
The correct option is to transition the larger invoices () to S3 Standard-IA after days and to S3 Glacier Deep Archive after days, while simply expiring the checkout logs () after days. This is cost-effective because the invoices exceed the 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 -day minimum storage duration of S3 Standard-IA, meaning transition would result in minimum storage and capacity charge penalties.
Step-by-Step Solution
Key Concept
S3 Lifecycle policies must account for object size minimums (such as for S3 Standard-IA) and minimum storage durations (such as days for S3 Standard-IA and days for S3 Glacier Deep Archive) to avoid cost penalties.