An e-commerce platform generates two types of files that are stored in an Amazon S3 bucket:
* Hourly transaction summaries: Average file size of . These files are accessed frequently during the first for financial reconciliation, and rarely thereafter. They must be available for immediate download in the event of an audit over a retention period.
* Raw server access logs: Average file size of . These logs are kept for for security analysis. They are rarely accessed, but if they are needed for a security investigation, a retrieval time of to is acceptable.
Which combination of Amazon S3 Lifecycle rules will provide the most cost-optimized storage solution? (Select TWO.)
- Transition the hourly transaction summaries to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) after object creation.Answer
- Transition the raw server access logs to Amazon S3 Glacier Flexible Retrieval immediately after object creation, and expire them after .Answer
- CTransition the hourly transaction summaries to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) after object creation.
- DTransition the raw server access logs to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) immediately after object creation, and expire them after .
- ETransition the hourly transaction summaries to Amazon S3 Glacier Flexible Retrieval after object creation.
Answer
The correct combination of lifecycle rules is to transition the hourly transaction summaries to Amazon S3 Standard-IA after , and transition the raw server access logs to Amazon S3 Glacier Flexible Retrieval immediately and expire them after .
For the hourly transaction summaries, S3 Standard-IA is the most cost-optimized tier because the files are larger than the transition threshold, are accessed infrequently after , and must support immediate download. Since S3 Lifecycle rules require objects to stay in S3 Standard for a minimum of before transitioning to S3 Standard-IA, transitioning them after is the most cost-effective correct configuration. For the raw server access logs, the files are large enough for Glacier storage without excessive metadata overhead, can tolerate a to retrieval window, and are retained for . Transitioning them immediately to S3 Glacier Flexible Retrieval minimizes costs, and expiring them after aligns with the retention requirement while satisfying the minimum storage duration of Glacier Flexible Retrieval, avoiding early deletion penalties.
Step-by-Step Solution
Key Concept
Selecting S3 storage tiers based on access frequency, file size, retrieval time, and S3 Lifecycle minimum transition and storage duration rules.