DVA-C02 exam dumps

DVA-C02 practice question 105 of 399

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

DVA-C02 Question 105

Select 2

A developer is managing an Amazon S3 bucket used for storing large amounts of log data. The logs are frequently accessed for the first 30 days but rarely accessed afterward. To optimize costs, the developer wants to automatically transition these logs to a cheaper storage class after 30 days and delete them after 365 days. Which combination of lifecycle rules will achieve this?

  1. A

    Set a lifecycle rule to transition objects to the S3 Standard-IA storage class after 30 days and another rule to transition them to S3 Glacier Deep Archive after 365 days.

  2. B

    Set a lifecycle rule to transition objects to the S3 Standard-IA storage class after 30 days and another rule to expire objects after 365 days.

  3. C

    Set a lifecycle rule to transition objects to the S3 One Zone-IA storage class after 30 days and another rule to transition them to S3 Glacier after 365 days.

  4. D

    Set a lifecycle rule to transition objects to the S3 Intelligent-Tiering storage class after 30 days and another rule to expire objects after 365 days.

  5. E

    Set a lifecycle rule to transition objects to the S3 Glacier Deep Archive storage class after 30 days and another rule to expire objects after 365 days.

Show answer and explanation

Correct answers: B, D

Explanation

To optimize costs while meeting the requirements, the logs should be transitioned to a cheaper storage tier like S3 Standard-IA or S3 Intelligent-Tiering after 30 days when they are rarely accessed. After 365 days, the logs should be automatically deleted to comply with the retention policy. Options 2 and 4 achieve this by using lifecycle rules to transition to appropriate storage tiers and expire the objects after the required time.

  • A. Incorrect.

    Incorrect: While transitioning to S3 Glacier Deep Archive is cost-effective, transitioning after 365 days does not match the requirement to delete the logs after 365 days.

  • B. Correct.

    Correct: This rule transitions objects to the S3 Standard-IA class after 30 days for cost optimization and deletes them after 365 days, aligning perfectly with the requirements.

  • C. Incorrect.

    Incorrect: Transitioning objects to S3 One Zone-IA is riskier as it stores data in a single Availability Zone, and transitioning to S3 Glacier after 365 days does not meet the requirement of deleting the logs after 365 days.

  • D. Correct.

    Correct: Transitioning objects to S3 Intelligent-Tiering is a valid cost-optimization strategy for infrequent access, and expiring the objects after 365 days ensures the logs are deleted as required.

  • E. Incorrect.

    Incorrect: Transitioning to S3 Glacier Deep Archive after 30 days is unnecessary for logs that are still frequently accessed during that period, and expiring them after 365 days is correct but not the most cost-effective solution for this use case.

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