MLS-C01 免费试练题 · 考证匠讲解
题目
A telecommunications company is developing a mobile app for its customers. The company is using an Amazon SageMaker hosted endpoint for machine learning model inferences. Developers want to introduce a new version of the model for a limited number of users who subscribed to a preview feature of the app. After the new version of the model is tested as a preview, developers will evaluate its accuracy. If a new version of the model has better accuracy, developers need to be able to gradually release the new version for all users over a fixed period of time. How can the company implement the testing model with the LEAST amount of operational overhead?
A. Update the ProductionVariant data type with the new version of the model by using the CreateEndpointConfig operation with the InitialVariantWeight parameter set to 0. Specify the TargetVariant parameter for InvokeEndpoint calls for users who subscribed to the preview feature. When the new version of the model is ready for release, gradually increase InitialVariantWeight until all users have the updated version.
B. Configure two SageMaker hosted endpoints that serve the different versions of the model. Create an Application Load Balancer (ALB) to route traffic to both endpoints based on the TargetVariant query string parameter. Reconfigure the app to send the TargetVariant query string parameter for users who subscribed to the preview feature. When the new version of the model is ready for release, change the ALB's routing algorithm to weighted until all users have the updated version.
C. Update the DesiredWeightsAndCapacity data type with the new version of the model by using the UpdateEndpointWeightsAndCapacities operation with the DesiredWeight parameter set to 0. Specify the TargetVariant parameter for InvokeEndpoint calls for users who subscribed to the preview feature. When the new version of the model is ready for release, gradually increase DesiredWeight until all users have the updated version.
D. Configure two SageMaker hosted endpoints that serve the different versions of the model. Create an Amazon Route 53 record that is configured with a simple routing policy and that points to the current version of the model. Configure the mobile app to use the endpoint URL for users who subscribed to the preview feature and to use the Route 53 record for other users. When the new version of the model is ready for release, add a new model version endpoint to Route 53, and switch the policy to weighted until all users have the updated version.
答案
答案 C。预览是明确用户群,不是随机抽一部分请求。
拆题
- 预览是明确用户群,不是随机抽一部分请求。
- 新 variant weight=0 不承接普通随机流量,预览请求显式指定 TargetVariant。
- 后续使用 UpdateEndpointWeightsAndCapacities 改 desired weight 渐进放量;variant 应先通过端点配置建立。
每个选项为什么对、为什么错
- A:CreateEndpointConfig 能定义初始配置,但 InitialVariantWeight 不是后续动态渐进调节 API,不能靠修改旧 initial 值即时生效。
- B:ALB 不能按描述直接把 SageMaker 托管端点当普通 target 并执行该 TargetVariant 语义。
- C(正确):显式 TargetVariant 为预览用户路由,DesiredWeight 用受支持更新操作渐进调整,最接近完整流程。
- D:双端点与 DNS 增加路由、缓存和用户群一致性管理,不能精准按订阅标记选择。
放到具体场景里
教学例子:旧模型权重 1、新模型 0,预览账户调用指定 new-v2。测试通过后权重按 5%、20%、50% 增加,观察准确性、业务指标与延迟;必须保留版本标记,失败时调回旧版本。权重是请求比例,不保证每个用户稳定分组,正式 A/B 可另加用户一致性路由。
遇到同类题的判断顺序
- 建立 variant:新模型先部署为可调用版本。
- 定向预览:订阅用户显式选新 variant。
- 评估表现:保留标签与业务结果。
- 渐进放量:更新权重并监控回退条件。
结论:用户定向路由与随机权重放量解决不同阶段的问题。
参考资料
继续练这门考试
同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。