exam questions

Exam AWS Certified Machine Learning - Specialty All Questions

View all questions & answers for the AWS Certified Machine Learning - Specialty exam

Exam AWS Certified Machine Learning - Specialty topic 1 question 139 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ayatkhrisat
Highly Voted 3 years, 1 month ago
Selected Answer: A
https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html
upvoted 19 times
ayatkhrisat
3 years ago
after reviewing it maybe C not A
upvoted 10 times
...
RLai
2 years, 5 months ago
https://sagemaker-examples.readthedocs.io/en/latest/sagemaker_endpoints/a_b_testing/a_b_testing.html Should be A
upvoted 2 times
...
...
spaceexplorer
Highly Voted 3 years, 1 month ago
Selected Answer: C
Answer is C, hosting two models under single endpoint has less operational overheads than two hosting endpoints
upvoted 12 times
...
606a82e
Most Recent 1 day, 12 hours ago
Selected Answer: A
Need to Create the ProductionVariant before you update the weight
upvoted 1 times
...
606a82e
3 days, 11 hours ago
Selected Answer: A
Need to create the variant before you update the weight
upvoted 1 times
...
ef12052
2 months, 1 week ago
Selected Answer: C
in option A it's mentioned that we set initial_weight to 0 which isn't true as the value should be 1 -> C
upvoted 1 times
...
MultiCloudIronMan
7 months, 4 weeks ago
Selected Answer: A
While Option C is a viable method, Option A is generally more straightforward and aligns well with common practices for deploying and managing model versions in SageMaker. Supported by Copilot
upvoted 2 times
...
ML_2
10 months ago
Selected Answer: A
The Answer is A. The question says "Developers want to introduce a new version of the model for a limited number of users who subscribed to a..." In order to introduce a new production version with least overhead you have to create a production variant by using CreateEndpointConfig operation and set the InitialVariantWeight to 0. You then specify the TargetVariant parameter for InvokeEndpoint calls for users who subscribed to the preview feature and gradually update the weight. https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html preview feature of the app
upvoted 2 times
...
AIWave
1 year, 3 months ago
Selected Answer: A
-CreateEndPointConfig with initial weight to 0 prohibits any traffic to new variant - TargetVariant Parameter in the endpoint calls made by selected users ensures new variant be used - Change of InitialWeight causes gradual release of new variant
upvoted 1 times
...
giustino98
1 year, 7 months ago
Selected Answer: C
Obviously C
upvoted 1 times
...
DimLam
1 year, 8 months ago
Selected Answer: C
https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-best-practices.html You can modify an endpoint without taking models that are already deployed into production out of service. For example, you can add new model variants, update the ML Compute instance configurations of existing model variants, or change the distribution of traffic among model variants. To modify an endpoint, you provide a new endpoint configuration. SageMaker implements the changes without any downtime. For more information see, UpdateEndpoint and UpdateEndpointWeightsAndCapacities. According to this doc, new variants can be deployed with UpdateEndpoint, and weights can be updated with UpdateEndpointWeightsAndCapacities. Though for using UpdateEndpoint we need to create an endpoint config. I will go with C
upvoted 1 times
...
Shenannigan
1 year, 9 months ago
Selected Answer: A
The company can implement the testing model with the least amount of operational overhead by using Option A. The developers can update the ProductionVariant data type with the new version of the model by using the CreateEndpointConfig operation with the InitialVariantWeight parameter set to 0. They can 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, they can gradually increase InitialVariantWeight until all users have the updated version
upvoted 1 times
...
Mickey321
1 year, 9 months ago
Selected Answer: C
The best option for the company to implement the testing model with the least amount of operational overhead is option C. Option C uses the SageMaker feature of production variants, which allows the company to test multiple models on a single endpoint and control the traffic distribution between them. By setting the DesiredWeight parameter to 0 for the new version of the model, the company can ensure that only users who subscribed to the preview feature will invoke the new version by specifying the TargetVariant parameter. When the new version of the model is ready for release, the company can gradually increase the DesiredWeight parameter until all users have the updated version. This option minimizes the operational overhead by avoiding the need to create and manage additional endpoints, load balancers, or DNS records.
upvoted 1 times
...
kukreti18
2 years ago
C is correct. The existing model will be updated using parameter DesiredWeightAndCapacity for new production variant and lead to less operational effort.
upvoted 2 times
...
dkx
2 years, 1 month ago
This one is tricky, but I think it is testing the difference between UpdateEndpointWeightsAndCapacities and ProductionVariant UpdateEndpointWeightsAndCapacities: Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateEndpointWeightsAndCapacities.html ProductionVariant: Identifies a model that you want to host and the resources chosen to deploy for hosting it. If you are deploying multiple models, tell SageMaker how to distribute traffic among the models by specifying variant weights. https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariant.html So it must be A, because the variant must exist before it is updated This link gave me confidence to choose A https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html
upvoted 4 times
...
Zhechen0912
2 years, 2 months ago
Selected Answer: C
I agree with C.
upvoted 3 times
...
SANDEEP_AWS
2 years, 3 months ago
Selected Answer: C
Please see step 4: https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html & in option A it's mentioned that we set initial_weight to 0 which isn't true as the value should be 1.
upvoted 3 times
...
matteocal
2 years, 10 months ago
Selected Answer: C
I did not found the InitialVariantWeight, only DesiredWeight, therefore is C: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DesiredWeightAndCapacity.html
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...