DVA-C02 Question 107
Single answerYou are developing an application that stores large amounts of user-generated content on Amazon S3. To optimize costs, you want to ensure that data is automatically transitioned to different storage classes based on its age. For example, data older than 30 days should move to S3 Standard-IA, and data older than 90 days should move to S3 Glacier Flexible Retrieval. Which approach should you use to meet this requirement?
- A
Manually move objects to the desired storage class using the AWS Management Console.
- B
Configure an S3 Lifecycle policy to transition objects to the appropriate storage classes based on their age.
- C
Enable S3 Intelligent-Tiering to automatically transition objects to the most cost-efficient storage class.
- D
Write a custom Lambda function to analyze object age and transition them to the correct storage class.
Show answer and explanation
Correct answer: B
Explanation
The most efficient way to automatically transition objects between S3 storage classes based on their age is by using S3 Lifecycle policies. These policies allow you to define rules that automatically transition objects to more cost-effective storage classes or delete them after a specified period, without the need for manual intervention or custom code.
- A. Incorrect.
Manually moving objects is not a scalable or automated solution, especially for large datasets. This approach would require significant manual effort and is prone to human error.
- B. Correct.
S3 Lifecycle policies are specifically designed for automating transitions of objects between storage classes based on their age, making this the correct answer.
- C. Incorrect.
S3 Intelligent-Tiering is not suitable for this scenario as it automatically optimizes storage costs based on access patterns, not predefined transition rules.
- D. Incorrect.
Using a custom Lambda function is unnecessary since S3 Lifecycle policies provide a built-in, automated solution for managing object transitions between storage classes.