DEA-C01 Question 216
Single answerYou are working as a data engineer for a company that stores large volumes of customer data in Amazon S3. To comply with regulatory requirements, you need to manage the lifecycle of this data by ensuring that objects older than 90 days are moved to Amazon S3 Glacier for long-term archival storage and objects older than 1 year are permanently deleted. Which solution effectively fulfills this requirement?
- A
Create an S3 Lifecycle policy that transitions objects to S3 Glacier after 90 days and deletes them after 1 year.
- B
Use Amazon S3 replication to move objects older than 90 days to another bucket with S3 Glacier storage class and enable automatic deletion after 1 year.
- C
Manually identify and move objects older than 90 days to S3 Glacier and delete objects older than 1 year using scripts.
- D
Configure an S3 Event Notification to trigger an AWS Lambda function that moves objects to S3 Glacier after 90 days and deletes objects after 1 year.
Show answer and explanation
Correct answer: A
Explanation
Amazon S3 Lifecycle policies are the recommended method for managing the lifecycle of objects stored in S3. They allow you to define rules to transition objects to different storage classes (such as S3 Glacier) and automatically delete objects after a specified period. This approach is cost-effective, scalable, and requires minimal maintenance compared to other options.
- A. Correct.
This is the correct solution as S3 Lifecycle policies are specifically designed to automate the object lifecycle management, including transitioning data to S3 Glacier and setting up expiration rules for automatic deletion.
- B. Incorrect.
This option is incorrect because Amazon S3 replication is designed for replicating data across buckets, not for lifecycle management. It does not inherently support transitioning objects to S3 Glacier or automatic deletion based on age.
- C. Incorrect.
This option is incorrect because manually managing data introduces complexity and is not a scalable or efficient solution for lifecycle management.
- D. Incorrect.
This option is incorrect because while S3 Event Notifications and Lambda functions can automate tasks, this approach is unnecessarily complex for a problem that S3 Lifecycle policies can solve more efficiently.