AWS Certified Data Engineer – AssociateData Governance and SecurityMedium
A global media company uses AWS S3 to store petabytes of media assets. Due to licensing agreements, certain assets must be deleted exactly 30 days after their last access, while others must be archived to a cost-effective storage class 90 days after creation and then permanently deleted after 5 years. The company needs an automated and cost-efficient solution to manage these diverse retention and deletion policies. Which AWS service should the data engineer utilize?
- AAWS Backup
- BS3 Object Lock
- CAmazon CloudWatch Events with AWS Lambda
- DS3 Lifecycle Policies with object tags
Show answer & explanationAnswer & explanation
Correct answer: D. S3 Lifecycle Policies with object tags
S3 Lifecycle Policies allow automated transitions to cheaper storage classes and permanent deletion based on object age or last access time. Using object tags, different policies can be applied to specific subsets of objects within the same bucket, meeting the diverse requirements efficiently.
Why the other options are wrong
- A. AWS Backup is for centralized backup management, not for automated lifecycle transitions and deletions based on access patterns or custom tags.
- B. S3 Object Lock is for WORM (Write Once Read Many) compliance, preventing accidental or malicious deletion, not for automated lifecycle management.
- C. CloudWatch Events with Lambda could build custom logic, but S3 Lifecycle Policies are a native, more cost-effective, and simpler solution for this specific use case.
S3 Lifecycle Policies with Tags
S3 Lifecycle Policies automate the transition of objects to different storage classes or their expiration (deletion) based on rules. Object tags allow applying distinct policies to specific subsets of objects within a bucket.
- Automates storage class transitions and object expiration.
- Supports rules based on object age, creation date, or last access time.
- Object tags enable granular policy application within a single bucket.
Memory trick: Tags Tailor Timely Transitions & Terminations.