A software development company generates application build logs that average in size. These logs are stored in an Amazon S3 Standard bucket and are accessed frequently by developers for debugging during the first 14 days. After 14 days, the logs are no longer needed and can be deleted. Which of the following strategies is the most cost-effective?
- Retain the logs in Amazon S3 Standard for the entire 14 days, and then delete them using an S3 Lifecycle expiration rule.Answer
- BTransition the logs to Amazon S3 Standard-IA after 1 day, and then delete them after 14 days using an S3 Lifecycle expiration rule.
- CTransition the logs to Amazon S3 Glacier Flexible Retrieval immediately, and then delete them after 14 days using an S3 Lifecycle expiration rule.
- DTransition the logs to Amazon S3 Standard-IA immediately, and then delete them after 7 days using an S3 Lifecycle expiration rule.
Answer
Retain the logs in Amazon S3 Standard for the entire 14 days, and then delete them using an S3 Lifecycle expiration rule.
Keeping the logs in Amazon S3 Standard and deleting them after 14 days is the most cost-effective option. Amazon S3 Standard-IA has a minimum storage duration charge of 30 days. Storing data in S3 Standard for 14 days costs less per gigabyte than paying for the 30-day minimum duration of S3 Standard-IA, and it avoids the transition request costs associated with moving data to S3 Standard-IA.
Step-by-Step Solution
Key Concept
S3 Standard-IA Minimum Storage Duration Constraint