SCS-C02 练习题

SCS-C02 题目讲解:生命周期按对象年龄,不知道项目结束日

SCS-C02 练习题讲解。答案 C。项目最长 60 天,题库 C 用 prefix lifecycle expiration 降低自建清理工作。

SCS-C02 免费试练题 · 考证匠讲解

题目

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.

答案

答案 C。项目最长 60 天,题库 C 用 prefix lifecycle expiration 降低自建清理工作。

拆题

  • 项目最长 60 天,题库 C 用 prefix lifecycle expiration 降低自建清理工作。
  • Expiration 通常按对象创建年龄异步执行,不按最后访问,也不理解项目实际结束日期。
  • “项目结束后不能留任何数据”更严格:提前结束、末日上传和版本对象需额外结束事件清理,单独 C 不完整满足硬截止。

每个选项为什么对、为什么错

  • A:60 天未访问与项目结束不是同一时间,自建扫描还增加工作。
  • B:Intelligent-Tiering 优化存储层,不删除项目数据。
  • C(正确):prefix lifecycle 是最低运维年龄保留策略,但必须补项目结束清理及 noncurrent versions,不能保证结束时立即无数据。
  • D:归档事件不等于项目结束,未访问规则也无法满足该业务时点。

放到具体场景里

教学例子:项目第 20 天结束,而第 19 天上传的文件按 60 天生命周期可能还保存很久。结束流程应记录 deadline,执行并核对对象与旧版本清理;lifecycle 作兜底而不是即刻硬删除保证。Object Lock 或法律保留可能阻止清理,应在接入前解决政策冲突。

检查对象本例条件或动作结果与边界
对象年龄创建后 60 天lifecycle 逻辑
项目结束可能第 20 天另触发清理
版本与锁noncurrent / retention决定能否真正删除

遇到同类题的判断顺序

  1. 定义期限:按项目实际结束时间。
  2. 配置兜底:prefix 生命周期规则。
  3. 执行清理:结束事件处理对象和版本。
  4. 核对残留:记录完成与阻塞原因。
结论:原答案 C 是成本低的保留机制,但严格项目截止要求需要额外闭环。

参考资料

继续练这门考试

同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。