Free cheat sheet
Databricks Machine Learning Professional
Two pages of the decision rules, defaults, APIs and traps the Databricks Machine Learning Professional exam tests, organised by the September 2025 exam guide's three domains.
Aligned to the September 2025 exam guide · checked against the Databricks docs on 31 October 2026 · certlake.com/exam/machine-learning-professional/cheat-sheet
Exam at a glance
The exam
59 scored questions · 120 min · pass mark not published · Python · September 2025 guide.
Weights
| Domain | % |
|---|---|
| Model Development | 44 |
| MLOps | 44 |
| Model Deployment | 12 |
New names
Lakehouse Monitoring → data profiling · DLT → Lakeflow pipelines · Workflows → Lakeflow Jobs · Asset Bundles → Declarative Automation Bundles · AI Gateway → Unity Gateway · Feature Store → Feature Store in UC (Feature) · legacy Online Tables (no longer supported) → Online Feature Store (Lakebase) · Hyperopt (not in Runtime ML after 16.4 LTS) → Optuna or Ray Tune · AutoML not built in from Runtime 18.0 ML.
1. Model Development44% of the exam
Spark ML or single node
| Situation | Use |
|---|---|
| Data beyond one node's memory | Spark ML |
| Fits on one node | scikit-learn, XGBoost on the driver |
| One model per group | apply |
| Deep learning | Torch, Ray |
| Batch or streaming scoring | transform (batch); MLflow spark_ (stream) |
| Real-time, low latency | Single-node model on Model Serving |
Spark ML pieces
Estimator fit( → transformer transform(; Pipeline is an estimator, Pipeline a transformer. String → One (linear models) → Vector. Tune with Param + Cross (k fits per point, refits the best) or Train (one split, cheaper); parallelism= fits concurrently. Evaluators: Binary (area), Multiclass (f1), Regression (rmse, r2).
Scaling
| Choice | When |
|---|---|
| Vertical | Single-node library; simplest |
| Horizontal | Data or search too big for one node |
| Data parallel | Model fits one GPU; shard the data |
| Model parallel | Model doesn't fit one GPU |
| Ray | Task-parallel Python, tuning, RL, DL |
| Spark | Data-parallel ETL, Spark ML, big scoring |
Ray on Spark: setup_ (ray.), Runtime 12.2 LTS ML+. Torch; local_ = driver only.
pandas function API
group: one pandas DataFrame per group (must fit in memory) → per-group models. map: batches, no grouping → inference. @pandas_: column → column; hints pick the variant.
Tuning and MLflow
Optuna distributed: Mlflow + Mlflow (MLflow 3). Defaults: TPE sampler, Median stops poor trials. Nested runs: parent = search, child per parameter set via start_. Log with log_, log_, log_, log_, log_.
Feature Store
- Time series table:
timeseries_, ts incolumns="ts" primary_;keys FeaturewithLookup timestamp_→ AS OF join, latest value at or before the label time;lookup_ key lookback_ignored online.window write_only; a streaming DataFrame returns atable( mode="merge") Streaming.Query - Online:
create_→online_ store( name=…, capacity="CU_ 1") publish_;table( …) publish_mode TRIGGERED(default) /CONTINUOUS(both need CDF) /SNAPSHOT. - On-demand: UC Python UDF +
Feature; computed at request time and in training.Function( udf_ name=, input_ bindings=, output_ name=)
2. MLOps44% of the exam
Lifecycle map
Deploy code: same code dev → staging → prod, retrain on prod data, catalog per environment, service principal runs prod. Git + CI · bundles define resources · MLflow tracks · UC versions models · aliases mark champion/challenger · Lakeflow Jobs orchestrate · Model Serving · inference tables + data profiling monitor.
Testing
| Test | Scope | Runs |
|---|---|---|
| Unit | One function, small data | Dev + CI per PR |
| Integration | Features → train → eval → deploy → infer | Staging |
| Validation | Challenger beats champion | Every retrain |
pyspark.; functions in . modules, tests in tests/ run by pytest. New hyperparameters → re-run training, evaluation, deployment tests.
Declarative Automation Bundles
resources: jobs, experiments, registered_, model_, quality_; targets: dev (mode: development) / prod (mode: production). bundle validate → bundle deploy -t prod → bundle run.
Retraining
Triggers: schedule, table-update or file-arrival trigger, alert on drift or quality. Pick the winner on the same recent hold-out, using the decision's metric (log loss when calibrated probabilities drive thresholds); move @champion only on a margin; keep the old version to roll back.
Data profiling
| Profile | For |
|---|---|
| Snapshot | Whole table each refresh |
| TimeSeries | Timestamped data, by window |
| InferenceLog | Predictions + model quality (needs timestamp, prediction, model ID, problem type, granularities) |
Outputs <table>_, <table>_, a dashboard. slicing_ → slice_/slice_. drift_: CONSECUTIVE (vs previous window) or BASELINE (vs baseline table). Alerts: Databricks SQL alert on a metrics-table query.
Drift statistics
| Numeric | Categorical |
|---|---|
ks_, wasserstein_, population_ | chi_, tv_, l_, js_ |
Custom metrics: aggregate (SQL on columns) and derived → profile table; drift ({{current_ vs {{base_) → drift table.
Endpoint health
Serving UI: latency, request rate, error rate, CPU, memory (14 days); export to Prometheus/Datadog. Inference tables (via AI Gateway, now Unity Gateway) log requests and responses to UC.
3. Model Deployment12% of the exam
Rollouts
| Strategy | Use |
|---|---|
| Blue-green | Switch all at once; instant rollback |
| Canary | Small share first, raise in steps; high traffic |
| Shadow | Copy of traffic, answers discarded |
| A/B | Compare business outcomes |
One endpoint, two served entities, traffic_ percentages; update the config to shift.
Custom PyFunc
Subclass mlflow.: load_ reads context.; predict( holds pre/post-processing. pyfunc.; UC needs a signature. Test: load_, then ..
Deploy and query
get_, then . with served_ (entity_, entity_, workload_) and .. REST: POST /, Authorization: Bearer <token>, body dataframe_ / dataframe_ / instances / inputs. SQL: ai_.
Know it, or just recognise it?
The free diagnostic shows which domains you'd lose marks on, in about 10 minutes and without signing up.
Take the free diagnosticStudy guide
The full study guide: every domain explained, with snippets and diagrams.
Open the study guideSpotted something out of date? Email support@certlake.com. CertLake is not affiliated with Databricks, Inc.