Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Implement progressive rollout and safe rollback strategies

A worked example

Single answer

Proseware serves its no-show model from an Azure Machine Learning managed online endpoint whose name is stored in $ENDPOINT_NAME. The Azure CLI already has default values for the resource group and workspace.

After a staged rollout, the new green deployment receives 100% of traffic. The previous blue deployment is still deployed and receives 0% of traffic. Clinic staff now report unacceptable predictions from the new model.

Requirements:

  • Immediately route all client requests back to the previous model.
  • The endpoint URL used by the scheduling system must not change.
  • The green deployment must remain available for investigation.

Which command should you run?

Choose one answer
Why

A managed online endpoint can host several deployments, and you control the share of traffic each one receives. When a newly promoted model misbehaves and the previous deployment is still available, the rollback is a traffic change that sends 100% back to blue. This keeps the endpoint URL stable and is faster than deleting and recreating the endpoint. Because green stays deployed with 0% traffic, the team can investigate it without exposing users to it.

  • Correct: az ml online-endpoint update --name $ENDPOINT_NAME --traffic "blue=100 green=0". Changing the traffic split sends all requests to the retained blue deployment, keeps the endpoint URL, and leaves green deployed so it can be investigated without exposing users to it.
  • Not correct: az ml online-endpoint delete --name $ENDPOINT_NAME --yes. Deleting the endpoint takes it down and would require recreating it; the module recommends changing traffic instead because that preserves the endpoint URL and recovers faster.
  • Not correct: az ml online-endpoint invoke --name $ENDPOINT_NAME --deployment-name blue --request-file sample-request.json. Invoking a named deployment only sends a test request directly to it; it does not change the traffic allocation, so client requests would still go to green.
  • Not correct: az ml online-endpoint update --name $ENDPOINT_NAME --traffic "blue=0 green=100". This split keeps all traffic on green, the deployment that is producing unacceptable predictions, so nothing is rolled back to blue.
  • Not correct: az ml online-deployment delete --name green --endpoint-name $ENDPOINT_NAME --yes. Removing green destroys the deployment the team needs to investigate; the guidance is to return traffic to blue and then investigate green while it receives no users.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free