SCS-C02 Question 384
Single answerYour organization uses Amazon S3 to store log files. To optimize costs, you want to automatically transition log files from the S3 Standard storage class to S3 Glacier Deep Archive after 90 days. Additionally, files older than 365 days should be permanently deleted. What is the most efficient way to implement this requirement?
- A
Create an S3 Lifecycle policy that transitions objects to S3 Glacier Deep Archive after 90 days and deletes objects after 365 days.
- B
Manually monitor the S3 bucket and transition files to S3 Glacier Deep Archive after 90 days, then delete them after 365 days.
- C
Use S3 Event Notifications to trigger a Lambda function that transitions objects to S3 Glacier Deep Archive after 90 days and deletes them after 365 days.
- D
Configure AWS Backup to manage the lifecycle of objects in the S3 bucket, transitioning them to S3 Glacier Deep Archive after 90 days and deleting them after 365 days.
Show answer and explanation
Correct answer: A
Explanation
S3 Lifecycle policies allow you to define rules to automatically transition objects between storage classes and expire them after a specified period. In this scenario, a lifecycle policy can be configured to transition objects to S3 Glacier Deep Archive after 90 days and delete them after 365 days, meeting both cost optimization and data retention requirements without manual intervention or custom solutions.
- A. Correct.
Correct. S3 Lifecycle policies are specifically designed to automate the transition and expiration of objects based on defined rules. This is the most efficient and cost-effective solution for this scenario.
- B. Incorrect.
Incorrect. Manually monitoring and managing transitions is not efficient and does not leverage AWS's automation capabilities, leading to higher operational overhead.
- C. Incorrect.
Incorrect. While S3 Event Notifications and Lambda can be used for custom workflows, they are unnecessary in this case as S3 Lifecycle policies provide a built-in solution for object management.
- D. Incorrect.
Incorrect. AWS Backup is not designed to manage the lifecycle of S3 objects. It is primarily used for backup and recovery operations across AWS services.