Question

Difficulty: MediumAmazon S3 Storage Class and Lifecycle Optimization

A SysOps administrator is configuring an Amazon S3 Lifecycle policy for daily application logs. The logs are stored in an S3 Standard bucket and must be retained for 365 days. The logs have the following access requirements:

* Day 0 to Day 30: Accessed frequently with millisecond latency.
* Day 30 to Day 60: Accessed infrequently but require millisecond retrieval.
* After Day 60: Accessed only for annual compliance audits, where a retrieval time of 3 to 5 hours is acceptable.

Which TWO configurations must the administrator include in the S3 Lifecycle policy to achieve the lowest cost while meeting all requirements? (Select TWO.)

  1. Transition objects from S3 Standard to S3 Standard-IA after 30 days.Answer
  2. Transition objects from S3 Standard-IA to S3 Glacier Flexible Retrieval after 60 days.Answer
  3. C
    Transition objects from S3 Standard-IA to S3 Glacier Flexible Retrieval after 45 days.
  4. D
    Transition objects from S3 Glacier Flexible Retrieval to S3 Standard-IA after 90 days.
  5. E
    Transition objects from S3 Standard-IA to S3 Glacier Instant Retrieval after 50 days.

Answer

To optimize costs according to S3 Lifecycle rules, the administrator should transition objects from S3 Standard to S3 Standard-IA after 30 days, and transition objects from S3 Standard-IA to S3 Glacier Flexible Retrieval after 60 days.
Transitioning objects from S3 Standard to S3 Standard-IA after 30 days perfectly matches the requirement for infrequent, low-latency access between Day 30 and Day 60. Transitioning these objects from S3 Standard-IA to S3 Glacier Flexible Retrieval after 60 days satisfies the 3-5 hour retrieval latency requirement for audits. This second transition is valid because the objects will have resided in S3 Standard-IA for exactly 30 days (from Day 30 to Day 60), which meets the S3 Lifecycle policy constraint requiring a minimum of 30 days in S3 Standard-IA before transitioning to another class.

Step-by-Step Solution

1
Analyze the access pattern and latency requirements for each time window.
From Day 0 to Day 30, high-frequency access requires S3 Standard. From Day 30 to Day 60, infrequent access with millisecond latency fits S3 Standard-IA. After Day 60, audit access with 3-5 hour retrieval fits S3 Glacier Flexible Retrieval.
Matching access patterns to the correct storage class ensures cost optimization while satisfying performance requirements.
2
Validate the lifecycle transition timeline against AWS S3 minimum storage duration and sequence restrictions.
Transitioning to S3 Standard-IA occurs at Day 30. Transitioning to S3 Glacier Flexible Retrieval occurs at Day 60. The duration spent in S3 Standard-IA is 30 days (6030=3060 - 30 = 30 days).
AWS S3 Lifecycle rules enforce that objects must spend a minimum of 30 days in S3 Standard-IA before they can transition to another Glacier class. A transition at Day 60 satisfies this 30-day constraint.
3
Eliminate invalid transition configurations.
Transitions to S3 Glacier Flexible Retrieval or S3 Glacier Instant Retrieval at Day 45 or Day 50 would limit the time in S3 Standard-IA to 15 or 20 days, which violates the 30-day constraint. Reverse transitions from colder to warmer tiers (e.g., Glacier Flexible Retrieval to Standard-IA) are not allowed in S3 Lifecycle policies.
Any rule violating minimum duration constraints or sequence directions results in a lifecycle policy validation error.

Key Concept

S3 Lifecycle policies require a minimum of 30 days in S3 Standard-IA before transitioning to any S3 Glacier storage class, and only support transitions from warmer to colder storage classes.
Rate this question