A company stores weekly database transaction logs in an Amazon S3 Standard bucket. The logs are accessed frequently for the first 14 days after creation. After 14 days, the logs are rarely accessed but must remain immediately accessible for troubleshooting. After 90 days, the logs must be retained for 7 years to meet compliance requirements, and a retrieval time of up to 12 hours is acceptable.
A SysOps administrator attempts to configure an S3 Lifecycle policy with the following rules:
- Transition to S3 Standard-Infrequent Access (S3 Standard-IA) after 14 days.
- Transition to S3 Glacier Deep Archive after 90 days.
What is the result of attempting to apply this policy?
- The lifecycle policy will fail validation and cannot be applied because S3 Lifecycle rules require objects to be stored in S3 Standard for at least 30 days before transitioning to S3 Standard-IA.Answer
- BThe lifecycle policy will be applied successfully, but Amazon S3 will delay the transition of each object to S3 Standard-IA until 30 days have passed since its creation.
- CThe lifecycle policy will fail validation and cannot be applied because S3 Lifecycle rules do not support transitioning objects directly from S3 Standard-IA to S3 Glacier Deep Archive.
- DThe lifecycle policy will be applied successfully, but the company will be billed for a minimum of 30 days of S3 Standard storage for each log file before the transition occurs.
Answer
The lifecycle policy will fail validation and cannot be applied because S3 Lifecycle rules require objects to be stored in S3 Standard for at least 30 days before transitioning to S3 Standard-IA.
The lifecycle policy fails validation because Amazon S3 requires objects to be stored in S3 Standard for at least 30 days before they can be transitioned to S3 Standard-IA or S3 One Zone-IA. Since the administrator attempted to set the transition period to 14 days, the S3 API will reject the configuration with a MalformedXML error.
Step-by-Step Solution
Key Concept
Amazon S3 Lifecycle rules enforce a strict minimum requirement of 30 days in the S3 Standard storage class before objects can be transitioned to S3 Standard-IA or S3 One Zone-IA. Configurations violating this constraint are rejected with a validation error.
Estimated Time:1m 30s