You store application logs in an S3 bucket. After 30 days, the logs are rarely accessed, but you must retain them for 1 year for compliance. Which S3 feature is the best way to reduce storage cost while meeting the retention requirement?
Trap 1: Keep all logs in S3 Standard and rely on lower request rates to…
Request rate does not offset storage cost differences between storage classes. Keeping everything in S3 Standard is usually the most expensive option for long-term retention, even if objects are accessed rarely.
Trap 2: Copy logs to EBS snapshots each week and delete the original files
EBS snapshots are intended for backing up block storage (EBS volumes). They are not the best tool for application log retention in S3 and typically add unnecessary operational complexity and retention management overhead.
Trap 3: Use S3 replication to a second bucket in another region to reduce…
Replication is meant for redundancy and cross-region availability. It generally increases cost due to replication requests and storing data in another region; it does not reduce storage-class cost for the primary copy.
- A
Create an S3 lifecycle rule to transition older objects to a colder storage class after 30 days, then expire after 1 year
S3 lifecycle policies can automatically transition objects to lower-cost storage classes based on age. Transitioning after 30 days reduces ongoing storage costs because the logs are rarely accessed, while expiring after 1 year ensures you still meet the compliance retention window.
- B
Keep all logs in S3 Standard and rely on lower request rates to reduce cost
Why wrong: Request rate does not offset storage cost differences between storage classes. Keeping everything in S3 Standard is usually the most expensive option for long-term retention, even if objects are accessed rarely.
- C
Copy logs to EBS snapshots each week and delete the original files
Why wrong: EBS snapshots are intended for backing up block storage (EBS volumes). They are not the best tool for application log retention in S3 and typically add unnecessary operational complexity and retention management overhead.
- D
Use S3 replication to a second bucket in another region to reduce costs
Why wrong: Replication is meant for redundancy and cross-region availability. It generally increases cost due to replication requests and storing data in another region; it does not reduce storage-class cost for the primary copy.