AWS Certified Solutions Architect – Associate (SAA-C02) — Question 249
A solutions architect is designing a solution that requires frequent updates to a website that is hosted on Amazon S3 with versioning enabled. For compliance reasons, the older versions of the objects will not be accessed frequently and will need to be deleted after 2 years.
What should the solutions architect recommend to meet these requirements at the LOWEST cost?
Answer options
- A. Use S3 batch operations to replace object tags. Expire the objects based on the modified tags.
- B. Configure an S3 Lifecycle policy to transition older versions of objects to S3 Glacier. Expire the objects after 2 years.
- C. Enable S3 Event Notifications on the bucket that sends older objects to the Amazon Simple Queue Service (Amazon SQS) queue for further processing.
- D. Replicate older object versions to a new bucket. Use an S3 Lifecycle policy to expire the objects in the new bucket after 2 years.
Correct answer: B
Explanation
Option B is correct because configuring an S3 Lifecycle policy to transition older versions to S3 Glacier and expiring them after two years minimizes costs by using cheaper storage and automating deletion. Option A involves additional complexity without cost savings. Option C does not address the deletion requirement, and Option D incurs unnecessary costs by replicating objects to a new bucket before expiration.