MLA-C01 练习题

MLA-C01 题目讲解:数据就绪事件触发训练需去重

MLA-C01 练习题讲解。答案 B。指定 S3 prefix 新文件到达,触发 SageMaker Pipeline。

MLA-C01 免费试练题 · 考证匠讲解

题目

An MLOps engineer is tasked with creating a workflow that automatically triggers a model retraining pipeline in Amazon SageMaker Pipelines whenever a new curated dataset file is uploaded to a specific S3 bucket prefix. Which of the following AWS service interaction patterns is the MOST scalable and recommended approach for this task?

A. Configure an S3 event notification to directly trigger an AWS Lambda function, which then starts the SageMaker Pipeline.
B. Create an Amazon EventBridge rule to filter S3 Object Created events and invoke an AWS Lambda function, which then starts the SageMaker Pipeline.
C. Configure an S3 event notification to publish to an Amazon SNS topic, which sends a message to an Amazon SQS queue that is polled by an AWS Lambda function to start the SageMaker Pipeline.
D. Create an Amazon EventBridge rule to trigger an AWS Step Functions state machine, which then starts the SageMaker Pipeline.

答案

答案 B。指定 S3 prefix 新文件到达,触发 SageMaker Pipeline。

拆题

  • 指定 S3 prefix 新文件到达,触发 SageMaker Pipeline。
  • EventBridge 提供规则过滤与解耦,Lambda 验证后调用 StartPipelineExecution。
  • A 直接 S3→Lambda 也是可行方案,D 编排也可行;B 是题库推荐,不是唯一受支持路径。

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

  • A:直接事件通知可完成简单场景,但扩展过滤、多个消费者与集中事件路由时 EventBridge 更方便。
  • B(正确):EventBridge 过滤 bucket/prefix,Lambda 执行校验与启动参数,适合可扩展解耦路径。
  • C:SNS→SQS 增加持久缓冲有其价值,但题中无此额外要求,配置较多。
  • D:Step Functions 可编排复杂步骤,单一启动动作未必需要额外状态机;并非错误能力。

放到具体场景里

教学例子:curated/train/ 下出现 manifest.json,规则只匹配该就绪标志,而非每个分片。Lambda 核对版本与完整性,用稳定 request token 防重复启动。S3/EventBridge 事件可能重复或乱序,因此不能上传 100 个 shard 就无控制地启动 100 次训练。

检查对象本例条件或动作结果与边界
筛选curated/train/manifest.json只看完成标记
校验数据版本与完整性避免半套数据训练
幂等稳定 execution token处理重复事件

遇到同类题的判断顺序

  1. 接收事件:按 bucket 与 key 过滤。
  2. 确认就绪:校验 manifest 和数据。
  3. 幂等启动:相同数据版本不重复。
  4. 追踪执行:记录 pipeline 状态和失败。
结论:触发训练不只是连两个服务,还要定义何时一批数据真正就绪。

参考资料

继续练这门考试

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