Databricks Machine Learning Associate · Section 4 · 12% of the exam
Split data between endpoints for realtime interference
One of the objectives of the Databricks Certified Machine Learning Associate exam, in the section “Model Deployment”. Here is what it covers, the points to remember and a question to try.
What it covers
Package a custom model in MLflow format, register it in Unity Catalog, deploy it to a Mosaic AI Model Serving endpoint from the UI or code, query it over REST, with the MLflow Deployments SDK and with ai_query, and split traffic between two served models for A/B testing and gradual rollouts.
Points to remember
- Custom model = any Python model in MLflow format (built-in flavor or pyfunc), registered in Unity Catalog, served on a Model Serving endpoint as a REST API.
- Unity Catalog model versions need a signature: log an
input_exampleorsignature. Pinmlflow(notmlflow-skinny) in pyfunc requirements. - Create endpoints in the Serving UI, with
POST /api/2.0/serving-endpoints,get_deploy_client('databricks').create_endpoint(...)or the Databricks SDK. - Served entities reference a model name and a version; scale-out sizes are Small (0-4), Medium (8-16) and Large (16-64) concurrent requests.
- Scale to zero after 30 idle minutes saves cost but adds cold starts; not recommended for production.
Try a question
An endpoint's served entities reference version 6 (champion, 90%) and version 7 (challenger, 10%) of prod.ml.churn_model, with entity_version set to those numbers. Nightly batch jobs load models:/prod.ml.churn_model@champion. Version 7 wins the A/B test. What completes the promotion for both the endpoint and the batch jobs?
- AMove the
championalias to version 7 and update the endpoint so version 7 receives 100% of the traffic - BMove the
championalias to version 7 only, because the endpoint follows the alias and shifts its traffic - CUpdate the endpoint to send 100% of traffic to version 7 only, because batch jobs read from the endpoint
- DDelete version 6 from the registry, so that both the endpoint and the batch jobs fall back to version 7
Show the answer
A. Aliases and endpoint routes are separate controls. Jobs that load @champion pick up the new version once the alias moves. A serving endpoint serves the version numbers in its configuration, and its traffic_config decides the split. Updates are zero-downtime, and the update replaces the whole configuration, so list every served entity you want to keep.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Real-Time Inference with Model Serving: Deploy, Query and Split Traffic teaches this objective (about 45 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.