Which environment design is a Databricks best practice for ML projects?
- 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: Design and implement scalable Databricks environments for machine learning projects using best practices.
Scalable environment design is named.
Why B is the answer
Separate dev, staging and prod, with service principals
Separating environments limits blast radius and protects prod data. Service principals run automated jobs instead of personal accounts.
Remember: Separate environments, automate with service principals.
How it works
Environment isolation is the base of MLOps.
In detail
- Separate environments.
- Service principals for automation.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. One shared workspace and one catalog for dev, staging and prod so everyone sees everythingWrongMost tempting
Shared everything mixes risk.
Why it tempts: It feels simpler.
B. Separate dev, staging and prod, with service principalsRight
Separate environments, automate with service principals.
C. Each data scientist owns a private prod environmentWrong
Private prods fragment control.
D. No environments; deploy from laptopsWrong
Laptop deploys are unmanaged.
Use case
An illustrative scenario, not a real incident.
Illustrative: dev, staging and prod catalogs, with prod jobs owned by a service principal.
See it in different ways
flowchart LR S0["Dev build and unit test"] --> S1["Staging integration test"] --> S2["Prod train, validate, deploy"] --> S3["Monitor"]
How to read this chart
- Read it in order: Dev build and unit test, then Staging integration test, then Prod train, validate, deploy, then Monitor.
mindmap
root(("Environments"))
n1["Isolation"]
n2["Workspaces or catalogs"]
n3["Access"]
n4["Grants per environment"]
n5["Automation"]
n6["Service principals"]How to read this chart
- The centre is "Environments".
- "Isolation" covers "Workspaces or catalogs".
- "Access" covers "Grants per environment".
- "Automation" covers "Service principals".