QuestionQ241

Data Store Management

A company is required to retain certain data for 1 year. A data engineer finds that one of the company’s Amazon S3 buckets contains millions of objects more than 3 years old. Versioning is enabled on the bucket.

To lower costs, the data engineer creates an S3 Lifecycle rule that expires objects after 365 days. The new S3 Lifecycle rule makes the object count double rather than decrease.

What additional action must the data engineer take to permanently delete the old objects?

  • A Disable versioning on the S3 bucket.
  • B Use an AWS Lambda function to run a Python job to identify and delete objects that are older than 365 days.
  • C Suspend versioning on the S3 bucket.
  • D Add an additional S3 Lifecycle rule to delete the current and expired versions of objects that are older than 365 days.
Explanation

For a versioning-enabled S3 bucket, expiring a current object version creates a delete marker and retains the former version as a noncurrent version. A lifecycle rule that expires noncurrent versions permanently deletes those old versions; expired delete-marker cleanup removes remaining delete markers when applicable.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!