Q24 — AWS SCS-C02 Ch.1
Question 24 of 100 | ← Chapter 1
A company is developing a mechanism that will help data scientists use Amazon SageMaker to read, process, and output data to an Amazon S3 bucket. Data scientists will have access to a dedicated S3 prefix for each of their projects. The company will implement bucket policies that use the dedicated S3 prefixes to restrict access to the S3 objects. The projects can last up to 60 days. The company's security team mandates that data cannot remain in the S3 bucket after the end of the projects that use the data. Which solution will meet these requirements MOST cost-effectively?
- A. Create an AWS Lambda function to identify and delete objects in the S3 bucket that have not been accessed for 60 days. Create an Amazon EventBridge scheduled rule that runs every day to invoke the Lambda function.  
- B. Create a new S3 bucket. Configure the new S3 bucket to use S3 Intelligent-Tiering. Copy the objects to the new S3 bucket.  
- C. Create an S3 Lifecycle configuration for each S3 bucket prefix for each project. Set the S3 Lifecycle configurations to expire objects after 60 days.   ✓
- D. Create an AWS Lambda function to delete objects that have not been accessed for 60 days. Create an S3 event notification for S3 Intelligent-Tiering automatic archival events to invoke the Lambda function.
Correct Answer: C. Create an S3 Lifecycle configuration for each S3 bucket prefix for each project. Set the S3 Lifecycle configurations to expire objects after 60 days.  
Explanation
这道题考察如何通过S3生命周期规则实现自动删除过期数据。AWS文档指出,S3生命周期配置允许基于前缀设置对象过期策略,精确控制对象保留时间。选项C直接在对象前缀上配置生命周期规则,60天后自动移除数据,符合按项目隔离且零额外成本的要求。选项A/D依赖Lambda定期扫描会产生计算费用,B选项的智能分层仅涉及存储优化而非过期删除。生命周期规则作为S3原生功能,管理成本最低且无需代码维护。