CLF-C02 Question 238
Select 2A company uses Amazon S3 to store large amounts of application log data. The logs are frequently accessed for the first 30 days but are rarely accessed afterward. The company wants to reduce storage costs while ensuring the data is still available if needed. Which of the following actions should the company take to meet this requirement?
- A
Create an S3 lifecycle policy to transition the logs to S3 Standard-Infrequent Access (S3 Standard-IA) after 30 days.
- B
Enable versioning on the S3 bucket to retain multiple versions of the logs.
- C
Create an S3 lifecycle policy to transition the logs to S3 Glacier Deep Archive after 30 days.
- D
Create an S3 lifecycle policy to delete the logs after 30 days.
- E
Create an S3 lifecycle policy to transition the logs to S3 Glacier after 30 days and delete them after 90 days.
Show answer and explanation
Correct answers: A, E
Explanation
S3 lifecycle policies allow you to manage the cost of storing objects by transitioning them to more cost-effective storage classes or deleting them after a specified period. In this scenario, transitioning the logs to S3 Standard-IA after 30 days ensures cost efficiency while keeping the data accessible. Additionally, transitioning to S3 Glacier and deleting after 90 days provides a balance between cost reduction and retention requirements. Both actions meet the company's needs for cost management and data availability.
- A. Correct.
Correct. Transitioning the logs to S3 Standard-IA after 30 days aligns with the company's need to reduce costs for data that is infrequently accessed but still needs to be available.
- B. Incorrect.
Incorrect. While enabling versioning can be useful for data protection, it does not help reduce storage costs, which is the company's main goal in this scenario.
- C. Incorrect.
Incorrect. Transitioning to S3 Glacier Deep Archive is not ideal for data that may still need to be accessed occasionally, as retrieval times are significantly longer.
- D. Incorrect.
Incorrect. Deleting the logs after 30 days does not meet the requirement of ensuring the data is still available if needed.
- E. Correct.
Correct. Transitioning the logs to S3 Glacier after 30 days and deleting them after 90 days helps reduce costs while keeping the logs available for a defined period before cleanup.