
Answer-first summary for fast verification
Answer: Configure S3 Lifecycle to automate the retention of only the two most recent object versions.
Option A is the correct answer because S3 Lifecycle policies are specifically designed for managing object versions and transitions, including deletion. By configuring S3 Lifecycle rules, you can set up automated retention policies to keep only the two most recent versions of each object, thereby reducing storage costs without manual intervention. This solution provides the least operational overhead compared to implementing and maintaining custom scripts or Lambda functions (options B and C) or deactivating versioning (option D), which may lead to loss of data history and complicate version management.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company utilizes Amazon S3 for storing high-resolution images, maintaining the latest version as the active object. The requirement is to keep only the two most recent versions to reduce costs, particularly from the S3 bucket expenditure. What is the most operationally efficient solution to achieve this?
A
Configure S3 Lifecycle to automate the retention of only the two most recent object versions.
B
Deploy an AWS Lambda function to identify and remove older versions beyond the two most recent ones.
C
Apply S3 Batch Operations to delete object versions, preserving only the two latest.
D
Explore deactivating versioning while ensuring the retention of the two most recent picture versions.
No comments yet.