Question

Difficulty: MediumAmazon S3 Storage Class and Lifecycle Optimization

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?

  1. 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
  2. B
    The 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.
  3. C
    The 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.
  4. D
    The 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

1
Analyze the proposed lifecycle transition rule from S3 Standard to S3 Standard-IA.
The rule attempts to transition objects to S3 Standard-IA 14 days after creation.
To verify if the transition timing complies with Amazon S3 Lifecycle transition constraints.
2
Check Amazon S3 constraints for S3 Standard-IA transition timing.
Amazon S3 requires objects to be stored in S3 Standard for a minimum of 30 days before they can transition to S3 Standard-IA or S3 One Zone-IA.
To identify if the 14-day transition threshold violates S3 API validation rules.
3
Determine the behavior of the S3 API when receiving an invalid lifecycle configuration.
Amazon S3 returns a MalformedXML validation error (400 Bad Request) and rejects the entire configuration.
To conclude the outcome of attempting to apply this policy.

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
Rate this question