SOA-C02 Question 111
Select 2Your organization has an S3 bucket configured to store critical documents. To optimize storage costs, you want to enforce the following requirements: 1) Retain all versions of objects for 90 days, 2) Automatically transition non-current versions to the S3 Glacier storage class after 90 days, and 3) Permanently delete non-current versions after 365 days. How can you achieve this?
- A
Enable versioning on the S3 bucket and configure a lifecycle rule to transition non-current versions to the S3 Glacier storage class after 90 days and delete them after 365 days.
- B
Enable versioning on the S3 bucket and configure a lifecycle rule to transition current versions to the S3 Glacier storage class after 90 days and delete them after 365 days.
- C
Disable versioning on the S3 bucket and configure a lifecycle rule to transition objects to the S3 Glacier storage class after 90 days and delete them after 365 days.
- D
Enable versioning on the S3 bucket and configure a lifecycle rule to retain all versions of objects for 90 days before transitioning non-current versions to the S3 Glacier storage class.
- E
Enable versioning on the S3 bucket and configure two lifecycle rules: one rule to transition non-current versions to the S3 Glacier storage class after 90 days and another rule to permanently delete non-current versions after 365 days.
Show answer and explanation
Correct answers: A, E
Explanation
To meet all the requirements, versioning must be enabled on the S3 bucket, as it allows tracking and managing multiple versions of an object. Lifecycle rules can then be configured to transition non-current versions to the S3 Glacier storage class after 90 days and permanently delete them after 365 days. This can be achieved using either a single lifecycle rule (combining transition and expiration policies) or two separate rules for better granularity.
- A. Correct.
Correct: Enabling versioning and setting a lifecycle rule for transitioning non-current versions to S3 Glacier after 90 days and deleting them after 365 days directly meets the requirements.
- B. Incorrect.
Incorrect: Transitioning current versions instead of non-current versions does not meet the requirement, as the scenario explicitly specifies managing non-current versions.
- C. Incorrect.
Incorrect: Disabling versioning contradicts the requirement to retain all versions of objects for 90 days.
- D. Incorrect.
Incorrect: While this option mentions versioning and retention for 90 days, it does not specify permanent deletion of non-current versions after 365 days, making it incomplete.
- E. Correct.
Correct: Setting up two separate lifecycle rules (one for transitioning non-current versions and another for permanent deletion) is functionally equivalent to the first correct option and fulfills the requirements.