DVA-C02 exam dumps

DVA-C02 practice question 107 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 107

Single answer

You 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?

  1. A

    Manually move objects to the desired storage class using the AWS Management Console.

  2. B

    Configure an S3 Lifecycle policy to transition objects to the appropriate storage classes based on their age.

  3. C

    Enable S3 Intelligent-Tiering to automatically transition objects to the most cost-efficient storage class.

  4. 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.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam