A company stores high-resolution pictures in an Amazon S3 bucket by keeping each picture as the latest object version to minimize application changes. The company wants to retain only the two most recent versions of each picture to reduce costs and wishes to minimize operational overhead. Which solution achieves this?
Choose an answer
Tap an option to check your answer.
Correct answer: Use S3 Lifecycle rules to delete expired object versions and retain only the two most recent versions..
Why this is the answer
S3 Lifecycle rules are the most efficient and automated way to manage object versions. You can configure a rule to delete noncurrent versions of objects after a specified number of days or to retain a specific number of noncurrent versions. In this case, a rule can be set to retain only the two most recent versions, automatically deleting older ones, thus minimizing operational overhead. An AWS Lambda function would require custom code development, deployment, and maintenance, increasing operational overhead. S3 Batch Operations are suitable for one-time or infrequent bulk operations, not continuous management of object versions. Disabling versioning would prevent the storage of multiple versions entirely, which contradicts the requirement to retain the two most recent versions.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed