A meteorological modeling company runs daily simulations that generate two types of output files stored in an Amazon S3 bucket:
* Raw simulation data: Files average in size.
* Summary reports: Files average in size.
Both file types are accessed frequently by the simulation team during the first following creation. After , the files are rarely accessed. All files must be retained for a total of and can be deleted thereafter.
Which S3 lifecycle configuration is the most cost-effective for this scenario?
- AConfigure a lifecycle rule to transition the raw simulation data to S3 Standard-IA after 10 days, and expire all files after 25 days.
- Configure a lifecycle rule to expire all files after 25 days, keeping them in S3 Standard for their entire lifecycle.Answer
- CConfigure a single lifecycle rule to transition all files in the bucket to S3 Standard-IA after 10 days, and expire all files after 25 days.
- DConfigure a lifecycle rule to transition the raw simulation data to S3 Glacier Instant Retrieval after 10 days, and expire all files after 25 days.
Answer
Configure a lifecycle rule to expire all files after 25 days, keeping them in S3 Standard for their entire lifecycle.
The correct option is to keep all files in S3 Standard and expire them after 25 days. Because the files are deleted after 25 days and transitioned after 10 days, they would only spend 15 days in the target storage class. S3 Standard-IA has a minimum storage duration of 30 days, meaning an early deletion fee for the remaining 15 days is applied. For the raw simulation data (), the combined cost of 10 days in S3 Standard and 30 days in S3 Standard-IA is higher than keeping them in S3 Standard for the full 25 days. Additionally, the summary reports are below the minimum billable size for S3 Standard-IA, which would result in paying for of storage per file.
Step-by-Step Solution
Key Concept
Understanding S3 lifecycle transitions, minimum storage durations, and minimum object size limits to optimize costs.