AWS Certified Developer - Associate DVA-C02 Exam QuestionsBrowse all questions from this exam

AWS Certified Developer - Associate DVA-C02 Exam - Question 552


A company stores data in an Amazon S3 bucket. The data is updated multiple times every day from an application that runs on a server in the company’s on-premises data center.

The company enables S3 Versioning on the S3 bucket. After some time, the company observes multiple versions of the same objects in the S3 bucket.

The company needs the S3 bucket to keep the current version of each object and the version immediately previous to the current version.

Which solution will meet these requirements?

Show Answer
Correct Answer:

Discussion

2 comments
Sign in to comment
0bdf3afOption: B
Mar 3, 2025

Lifecycle rule to remove old versions

vbloiseOption: B
May 4, 2025

Correct answer: B. Configure an S3 Lifecycle rule to retain one newer noncurrent version of the objects. Explanation: S3 Versioning keeps all versions of an object, including deleted versions, which can lead to storage cost growth. To retain only the current and the immediately previous version of each object, use an S3 Lifecycle rule. The lifecycle rule should be configured to delete noncurrent versions after 1 day and retain only 1 noncurrent version. Why the other options are incorrect: A. S3 bucket policies control access, not version retention. C. S3 Object Lock is used for WORM (Write Once Read Many) compliance and legal holds, not for version count control. D. Suspending versioning stops new versions from being created, but does not help manage or limit existing versions.