A software development company uses Amazon S3 to store temporary build artifacts generated by their continuous integration (CI) pipeline. The average size of these artifacts is . These files are frequently accessed during the first 10 days for verification and testing. The company wants to minimize storage costs and must permanently delete the artifacts exactly 25 days after creation. Which of the following lifecycle configurations is the most cost-effective solution?
- Store the artifacts in Amazon S3 Standard, and configure an S3 Lifecycle rule to expire the objects after 25 days.Answer
- BConfigure an S3 Lifecycle rule to transition the artifacts to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) after 10 days, and expire the objects after 25 days.
- CStore the artifacts in Amazon S3 Standard-Infrequent Access (S3 Standard-IA) immediately upon upload, and configure an S3 Lifecycle rule to expire the objects after 25 days.
- DConfigure an S3 Lifecycle rule to transition the artifacts to Amazon S3 Glacier Flexible Retrieval after 10 days, and expire the objects after 25 days.
Answer
Store the artifacts in Amazon S3 Standard, and configure an S3 Lifecycle rule to expire the objects after 25 days.
Storing the artifacts in Amazon S3 Standard for the entire 25 days and then expiring them is the most cost-effective option. Because the artifacts are permanently deleted at day 25, transitioning them to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) at day 10 would result in only 15 days of storage in that tier. Since S3 Standard-IA has a 30-day minimum storage charge, transitioning would result in being billed for 30 days of storage, making it more expensive than keeping the objects in S3 Standard.
Step-by-Step Solution
Key Concept
Understanding minimum storage duration policies for Amazon S3 tiers (Standard-IA and Glacier) when designing cost-optimized lifecycle rules.
Estimated Time:1m 30s