SCS-C03 practice question 6 of 15

A company’s data scientists use Amazon SageMaker with datasets stored in Amazon S3. Data older than 45 days must be removed according to policy. Which action should enforce this policy?

Full set: 227 questions
Answer options
A: Configure an S3 Lifecycle rule to delete objects after 45 days. Correct answer
B: Create a Lambda function triggered on object upload to delete old data.
C: Create a scheduled Lambda function to delete old objects monthly.
D: Configure S3 Intelligent-Tiering.
Correct Answer:
A. Configure an S3 Lifecycle rule to delete objects after 45 days.
Explanation

Amazon S3 Lifecycle is the native, most efficient feature for managing the lifecycle of objects. A lifecycle configuration is a set of rules that define actions S3 applies to groups of objects. The requirement to delete objects older than 45 days can be met by creating an expiration rule. This rule instructs S3 to automatically and permanently delete objects 45 days after their creation, directly enforcing the data retention policy without custom code or additional services.

Why Incorrect

B. A Lambda trigger on upload is inefficient for managing object age. It would require complex logic to track and delete objects across the entire bucket, rather than acting on a simple time-based policy.
C. A scheduled Lambda is more complex and costly to manage than a native S3 Lifecycle rule. It requires writing, deploying, and maintaining code to list and delete objects periodically.
D. S3 Intelligent-Tiering is a storage class that optimizes costs by moving data between access tiers. It does not, by itself, enforce a deletion policy based on a fixed object age.

References

1. AWS Documentation, S3 User Guide, "Managing your storage lifecycle," Section: "Lifecycle configuration elements." It states, "You can define rules to... specify actions that you want Amazon S3 to take during an object's lifetime (for example, transitioning objects to another storage class, archiving them, or deleting them after a specified period)."

2. AWS Documentation, S3 User Guide, "Tutorial: Configuring a lifecycle configuration to delete objects." This tutorial provides a step-by-step guide for setting up a rule to expire objects after a specified number of days.

Scroll to Top