Question

Difficulty: EasyCost-Optimized Storage Tiering and Lifecycle Management

A software development company generates application build logs that average 10 MB10\text{ MB} 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?

  1. Retain the logs in Amazon S3 Standard for the entire 14 days, and then delete them using an S3 Lifecycle expiration rule.Answer
  2. B
    Transition the logs to Amazon S3 Standard-IA after 1 day, and then delete them after 14 days using an S3 Lifecycle expiration rule.
  3. C
    Transition the logs to Amazon S3 Glacier Flexible Retrieval immediately, and then delete them after 14 days using an S3 Lifecycle expiration rule.
  4. D
    Transition 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

1
Determine the data retention and access needs.
The logs are accessed frequently for 14 days and then deleted.
This establishes that the files are short-lived (14 days) and need active, frequent access during this time.
2
Evaluate S3 Standard-IA rules and cost impact.
Amazon S3 Standard-IA has a minimum storage duration charge of 30 days.
If files are transitioned to S3 Standard-IA and deleted after 14 days, AWS will still charge for a full 30 days of storage under that tier.
3
Compare storage costs between Standard and Standard-IA.
Storing data in S3 Standard for 14 days costs approximately 0.0107perGB(assuming0.0107 per GB (assuming 0.023/GB/month), whereas S3 Standard-IA for the 30-day minimum costs $0.0125 per GB (excluding transition request charges).
Because the Standard-IA minimum storage charge exceeds the cost of storing the data in S3 Standard for the actual 14 days, keeping the data in S3 Standard is the cheaper and simpler option.

Key Concept

S3 Standard-IA Minimum Storage Duration Constraint
Rate this question