How do you define a model serving endpoint, an MLflow experiment and a registered model as code for each environment?
- Exam domain
- MLOps44% of the exam
- Difficulty
- Medium
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Define and configure Databricks ML assets using DABs (Databricks Asset Bundles): model serving endpoints, MLflow experiments, ML registered models.
Configuring ML assets with bundles is named.
Why A is the answer
Declare them as resources in a Databricks Asset Bundle with per-target settings
Databricks Asset Bundles define resources such as model_serving_endpoints, experiments and registered_models in YAML, deployed per target environment.
Remember: Bundles define ML assets as code.
How it works
Bundles bring infrastructure as code to Databricks assets.
In detail
- Bundles declare resources.
- Targets per environment.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Declare them as resources in a Databricks Asset Bundle with per-target settingsRight
Bundles define ML assets as code.
B. Click through the UI in each workspace and keep screenshots as documentationWrongMost tempting
Manual clicks drift between environments.
Why it tempts: Screenshots feel like documentation.
C. Store the settings in a spreadsheetWrong
Spreadsheets are not deployable.
D. Email the configuration to the platform teamWrong
Email is not infrastructure as code.
Use case
An illustrative scenario, not a real incident.
Illustrative: one bundle deploys the same endpoint to staging and prod with different sizes.
See it in different ways
flowchart LR S0["databricks.yml"] --> S1["Resources"] --> S2["Targets dev, staging, prod"] --> S3["bundle deploy"]
How to read this chart
- Read it in order: databricks.yml, then Resources, then Targets dev, staging, prod, then bundle deploy.
mindmap
root(("Bundle"))
n1["model_serving_endpoints"]
n2["Endpoints"]
n3["experiments"]
n4["MLflow"]
n5["registered_models"]
n6["Unity Catalog"]How to read this chart
- The centre is "Bundle".
- "model_serving_endpoints" covers "Endpoints".
- "experiments" covers "MLflow".
- "registered_models" covers "Unity Catalog".