MLA-C01 练习题

MLA-C01 题目讲解:实时端点按调用负载弹性扩容

MLA-C01 练习题讲解。答案 A。流量昼夜变化,目标是保留低延迟而减少空闲容量。

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

题目

An ML engineer has deployed a model to a SageMaker real-time endpoint. The endpoint receives variable traffic - high during business hours and minimal during nights and weekends. The engineer needs to optimize costs while maintaining low latency during peak hours. Which solution should the engineer implement?

A. Configure SageMaker endpoint auto-scaling based on the InvocationsPerInstance CloudWatch metric. Set a minimum instance count of 1 and a maximum that handles peak traffic.
B. Deploy the model using SageMaker Serverless Inference, which automatically scales to zero during idle periods.
C. Create two endpoints - one for business hours and one for off-hours. Use a scheduled Lambda function to switch traffic between them.
D. Use SageMaker Batch Transform for all inference requests during off-hours and switch to a real-time endpoint only during business hours.

答案

答案 A。流量昼夜变化,目标是保留低延迟而减少空闲容量。

拆题

  • 流量昼夜变化,目标是保留低延迟而减少空闲容量。
  • InvocationsPerInstance target tracking 按每实例调用负载调整实例数。
  • min=1 保持温热实例但不是单 AZ 高可用配置;若同时要求故障冗余需提高下限。

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

  • A(正确):自动扩容并保持至少一个实例,适合既定实时路径;阈值按模型实际耗时校准。
  • B:serverless 有适用场景,但冷启动、配置限制与 peak latency 需测,不能默认满足这次低延迟要求。
  • C:两个端点定时切换额外维护路由和模型一致性,运营成本更大。
  • D:batch transform 不提供单请求即时响应,改变用户体验。

放到具体场景里

教学例子:压测确定每实例在目标 p95 下可承受 600 次/分钟,将 target 设为有余量的数值;夜里缩到最低、上班前可配计划预扩。监控 cooldown 和启动时间,突然峰值不能靠反应式扩容保证完全无延迟。

检查对象本例条件或动作结果与边界
指标InvocationsPerInstance按模型压测定目标
下限1 是成本策略HA 要另设冗余
启动cooldown 与预扩峰值前保留余量

遇到同类题的判断顺序

  1. 建立基线:测实例可承载请求量。
  2. 设置策略:目标追踪与 min/max。
  3. 提前准备:已知峰值计划扩容。
  4. 验证成本:比较空闲容量和 p95。
结论:弹性策略以服务时延和吞吐为依据,不只看调用数。

参考资料

继续练这门考试

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