Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Databricks · Databricks Machine Learning Professional

Rollout strategies and endpoint health

Databricks Machine Learning Professional · Lesson 21 of 22 · 2:35:38

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Databricks Certified Machine Learning Professional exam. In this lesson: blue-green, canary, and shadow deployments, rollouts with served entities and traffic routes in Model Serving, settings for high traffic (route optimization, provisioned concurrency, and scale to zero), and endpoint health metrics exported to Prometheus or Datadog. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

A Friday evening switch

Pebblecove's new price advice model passed every test in staging, and was switched on for all traffic on a Friday evening. Within an hour, the error rate climbed, and the team spent the night rolling back by hand. This lesson covers deployment strategies for high traffic applications, how to implement a rollout with Model Serving, and how to watch the health of an endpoint.

Deployment strategies

A deployment strategy decides how traffic reaches a new model version. Blue-green keeps two complete environments: the new one is prepared beside the old one, then all the traffic switches at once, and the rollback is the same switch in reverse. A canary sends a small share of the traffic to the new version, like five percent, and raises it in steps while the metrics stay healthy, so a problem only reaches a few users. A shadow deployment copies the traffic to the new version, and logs its answers without returning them, which tests it on real requests with no risk to users. For high traffic applications, a canary limits the impact of a bad version, while blue-green gives the simplest rollback, but exposes everyone at once.

Rollouts with Model Serving

Model Serving supports these strategies on a single endpoint. An endpoint can hold several served entities, like version seven and version eight of the same registered model, each with its own compute. The traffic config lists routes, each giving a served entity a percentage of the requests, and the percentages add up to one hundred. A canary starts at ninety and ten, moves to fifty and fifty, then sends all the traffic to the new version, by updating the config, and a rollback sets the old version back to one hundred percent. Each update is done without downtime: the old configuration keeps serving until the new one is ready.

Settings for high traffic

High traffic adds its own settings. Route optimization improves the network path for high throughput, with a dedicated URL and OAuth tokens, and it is chosen when the endpoint is created. Provisioned concurrency sets how many requests the endpoint can process at once, between a minimum and a maximum, and beyond it, requests wait in a queue, or fail with the HTTP error four twenty nine. Scale to zero saves money on quiet endpoints, but the first request after a pause is slow, so a busy production endpoint usually keeps it off.

Endpoint health

Endpoint health has its own metrics, on the metrics tab of the Serving UI. Latency, at the median and the ninety ninth percentile, shows how long requests take, and the request queue time shows how long they wait before a replica takes them. The request rate shows the load, and the error rate counts client errors, the four hundreds, and server errors, the five hundreds. CPU, memory, and provisioned concurrency show how close the compute is to its limits, with GPU metrics on GPU endpoints. These metrics can also be exported to tools like Prometheus or Datadog, through a metrics API, beside the inference table and the drift alerts.

Recap

Let's recap. Blue-green switches all the traffic at once, a canary grows in steps, and a shadow copies traffic without answering. On Model Serving, several served entities share an endpoint, and routes split the traffic in percentages that add up to one hundred. A rollback is a route update, done without downtime. For high traffic, choose route optimization at creation, and enough provisioned concurrency. And endpoint health covers latency, queue time, request rate, error rate, CPU, and memory.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Two complete environments run side by side, and the team switches every user to the new one at once, with an instant way back. Which strategy is this?

    • Canary
    • Blue-green
    • Shadow
    • Redeploying over the old version
    Show the answer

    Blue-green

    Blue-green keeps two complete environments, switches all the traffic at once, and switches back just as fast. “Canary” would move a small share of the traffic first, in steps. “Shadow” would never return the new answers to users. And “Redeploying over the old version” would replace the old version, with no quick way back.

  2. At ten percent of the traffic, the new version shows a higher error rate than the old one. What is the fastest safe action?

    • Route 100 percent back to the old version
    • Delete the endpoint, then create a new one
    • Retrain the new version, and leave it serving
    • Raise it to fifty percent for more data
    Show the answer

    Route 100 percent back to the old version

    Updating the routes sends all the traffic back to the old version, without downtime. “Delete the endpoint, then create a new one” would cause an outage while the new endpoint is created. “Retrain the new version, and leave it serving” would leave users exposed while the model retrains. And “Raise it to fifty percent for more data” would send even more users to a version that fails.

  3. During a peak, P99 latency doubles, the request queue time climbs, and the error rate stays flat. What is the likely cause?

    • Drift in the input features
    • A bug in the predict function
    • Too many slices in the data profile
    • Too little provisioned concurrency
    Show the answer

    Too little provisioned concurrency

    A climbing queue time means requests wait for a free replica, so the endpoint is under provisioned for the peak. “Drift in the input features” would change the predictions, not the waiting time. “A bug in the predict function” would raise errors, not only delays. And “Too many slices in the data profile” would belong to the monitoring of data, not to serving.