SOA-C02 Question 109
Select 2You are managing an S3 bucket that stores log files for compliance purposes. The bucket has versioning enabled, and you want to minimize storage costs while ensuring that older log files are retained for 1 year and then automatically deleted. How should you configure the bucket to meet these requirements?
- A
Enable S3 Lifecycle rules to transition noncurrent versions of objects to Glacier after 30 days.
- B
Enable S3 Lifecycle rules to permanently delete noncurrent versions of objects after 365 days.
- C
Disable versioning on the S3 bucket to save storage costs.
- D
Enable S3 Lifecycle rules to transition current object versions to Intelligent-Tiering after 30 days.
- E
Enable S3 Lifecycle rules to delete the current object versions after 365 days.
Show answer and explanation
Correct answers: A, B
Explanation
To meet the requirements, you should use S3 Lifecycle rules to manage noncurrent object versions. Transitioning noncurrent versions to Glacier after 30 days helps reduce storage costs while retaining the data. Deleting noncurrent versions after 365 days ensures compliance with the retention policy and further minimizes storage costs. Disabling versioning or managing current object versions does not address the scenario requirements.
- A. Correct.
Correct: Transitioning noncurrent versions to Glacier after 30 days reduces storage costs while retaining the data for compliance purposes.
- B. Correct.
Correct: Deleting noncurrent versions of objects after 365 days ensures that old log files are automatically removed after the retention period.
- C. Incorrect.
Incorrect: Disabling versioning would remove the ability to track and manage object versions, which is not recommended for compliance or cost optimization.
- D. Incorrect.
Incorrect: Transitioning current object versions to Intelligent-Tiering is not relevant to the given scenario, as it does not address the requirement to manage noncurrent versions.
- E. Incorrect.
Incorrect: Deleting current object versions does not align with the requirement to retain logs for 1 year.