Databricks Machine Learning Associate · Section 1 · 38% of the exam
Identify the best practices of an MLOps strategy
One of the objectives of the Databricks Certified Machine Learning Associate exam, in the section “Databricks Machine Learning”. Here is what it covers, the points to remember and a question to try.
What it covers
An MLOps strategy moves ML code, data and models from development to production in a repeatable, governed way. This lesson covers the practices Databricks recommends (separate environments, Git, Unity Catalog, MLflow, automation, aliases, monitoring) and when to deploy code versus deploy models.
Points to remember
- MLOps = DevOps + DataOps + ModelOps: version, test and govern code, data and models.
- Separate dev, staging and prod environments (workspaces or at least catalogs) with clear promotion steps.
- Code in Git with branches and pull requests; CI runs unit tests on pull requests and integration tests in staging.
- Register models in the environment's catalog; a validated model gets
@challenger, the version in use holds@champion; inference loads@champion. - Data scientists: read-write in dev, read-only in prod; production jobs run as service principals.
Try a question
A team uses deploy code. Its scheduled production training job has just trained a new churn model on production data, and the model currently in use holds the champion alias. Which sequence follows Databricks recommendations?
- ARegister the model in
ml_dev.churn.churn_model, copy it withcopy_model_versionintoml_prod.churn.churn_model, then setchampionon the copy - BOverwrite the files of the current champion version with the new model, so that inference jobs keep the same version number
- CRegister it in
ml_prod.churn.churn_model, give it@challengeronce it passes validation, compare it with the champion, then move@championif it wins - DRegister it in
ml_prod.churn.churn_modeland transition it to the Production stage, which archives the previous version
Show the answer
C. With deploy code, models are registered in the catalog of the environment where they were trained, so the production job registers to ml_prod. A version that passes validation gets the challenger alias, is compared with the champion, and becomes the champion by moving the alias. Inference that loads @champion picks up the new version on its next run, without a code change.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson MLOps strategy: environments, deploy code vs deploy models teaches this objective (about 35 minutes), and 14 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.
More in this section
- Identify the advantages of using ML runtimes
- Identify how AutoML facilitates model/feature selection.
- Identify the advantages AutoML brings to the model development process
- Identify the benefits of creating feature store tables at the account level in Unity Catalog in Databricks vs at the workspace level
- Create a feature store table in Unity Catalog
- Write data to a feature store table
- Train a model with features from a feature store table.
- Score a model using features from a feature store table.
- Describe the differences between online and offline feature tables
- Identify the best run using the MLflow Client API.
- Manually log metrics, artifacts, and models in an MLflow Run.
- Identify information available in the MLflow UI