CertLumen

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?

  1. ARegister the model in ml_dev.churn.churn_model, copy it with copy_model_version into ml_prod.churn.churn_model, then set champion on the copy
  2. BOverwrite the files of the current champion version with the new model, so that inference jobs keep the same version number
  3. CRegister it in ml_prod.churn.churn_model, give it @challenger once it passes validation, compare it with the champion, then move @champion if it wins
  4. DRegister it in ml_prod.churn.churn_model and 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

All 48 objectives · Next objective →