Free cheat sheet
Databricks Machine Learning Associate
Two pages of the decision rules, defaults, APIs and traps the Databricks Machine Learning Associate exam tests, organised by the March 2025 exam guide's four domains.
Aligned to the March 2025 exam guide · checked against the Databricks docs on 31 October 2026 · certlake.com/exam/machine-learning-associate/cheat-sheet
Exam at a glance
The exam
48 scored questions · 90 min · pass mark not published · Python · March 2025 guide.
Weights
| Domain | % |
|---|---|
| Databricks Machine Learning | 38 |
| Model Development | 31 |
| Data Processing | 19 |
| Model Deployment | 12 |
New names
Model Registry → Models in Unity Catalog · Workspace Feature Store → Feature Store in UC (Feature) · DLT → Lakeflow pipelines · Lakehouse Monitoring → data profiling · Hyperopt (unmaintained; the guide still says fmin) → Optuna or Ray Tune recommended.
1. Databricks Machine Learning38% of the exam
MLOps and Runtime ML
Promote code (retrain per environment) by default; promote models when training is very expensive or hard to reproduce (not viable if dev can't reach prod data). Code in Git, data and models in UC, a catalog per environment, jobs as a service principal.
Runtime ML = runtime + scikit-learn, XGBoost, PyTorch, MLflow, Feature Engineering, version-tested; GPU variants add CUDA.
AutoML
automl.; Runtime ML up to 17.x (removed in 18.0), dedicated access mode for UC data. Gives a data exploration notebook and an editable notebook per trial, all logged to MLflow. Default split 60/20/20 random; time_ splits by time.
Feature tables (UC)
fe = Feature → create_ · write_ upserts (the only mode) · create_ · log_ stores the lookups, so score_ re-joins them — that's what avoids training/serving skew. Limits: 50 tables per model, 100 on-demand features.
Offline = Delta table, batch, training. Online = Online Feature Store (Lakebase), one row by key in ms, for endpoints. UC tables beat workspace ones: one definition, UC privileges, lineage.
MLflow tracking
Experiment → runs → params, metrics, tags, artifacts, model. Autologging is on for notebook training on Runtime ML; call mlflow. elsewhere (incl. serverless). The UI shows a run's params, metrics, artifacts, logged model and signature, source notebook and dataset.
Best run: mlflow. → pandas; Mlflow → Run objects.
Models in Unity Catalog
mlflow., then register_ or registered_. Needs a signature. USE CATALOG + USE SCHEMA + CREATE MODEL to create a model (CREATE MODEL VERSION or ownership to add versions), EXECUTE to load or serve.
Promote by repointing an alias, not retraining: set_; also delete_, set_. Load models:/ or /.
2. Data Processing19% of the exam
Explore
describe( = count, mean, stddev, min, max · summary( adds 25/50/75% · dbutils. (Public Preview) and display('s Data Profile tab profile every column · approx.
Two continuous → scatter, Pearson stat.. Two categorical → stat., chi-square. Mixed → box plot per category.
Outliers
IQR: drop outside q1 - 1. … q3 + 1.; no distribution assumed, safer default. Z-score: ±3 stddev, assumes normal, distorted by the outliers themselves.
Imputation
Mean = symmetric continuous · median = skewed or outliers · mode = categorical. Imputer( ("mean", "median", "mode") is numeric only; strings use fillna. Fit on train only.
Encoding
String orders by frequency (commonest = 0), handle for unseen labels. One emits a sparse vector, drop. Needed by linear/logistic models and NNs; avoid for high-cardinality columns feeding trees, and for ordinals.
Transform and scale
Log (log1p if zeros) for right-skewed, non-negative features or targets; pointless for features fed to trees. Standard (with by default), Min → [0,1], Robust (median/IQR): for k-means, k-NN, SVM, regularised linear models, NNs; not trees.
3. Model Development31% of the exam
Algorithms and imbalance
Interpretability → linear/logistic or a shallow tree. Tabular accuracy → gradient-boosted trees. Segments → k-means (scale first). Rare events, no labels → isolation forest.
Imbalance: class weights (class_, scale_, weight) · oversample/SMOTE (overfit risk) · undersample (loses data) · move the threshold · score with F1, recall or PR-AUC.
Estimator vs transformer
Estimator fit( → Transformer, because it learns statistics: String, Imputer, Standard, Logistic. Transformer transform(: Vector, Tokenizer, fitted models. Pipeline is an estimator, Pipeline a transformer.
Tuning
Cross averages over folds: less variance, k× cost. Train is one hold-out: cheaper, noisier. Both refit the winner on the whole dataset as best; parallelism defaults to 1.
Grid = every combination · random = usually better per unit cost · Bayesian/TPE (Optuna, Hyperopt fmin() = usually fewer trials. Hyperopt's objective returns a loss to minimise (return -f1).
Metrics
Accuracy = balanced, equal error cost · precision = false positives cost · recall = false negatives cost · F1 = one number under imbalance · ROC-AUC = threshold-free ranking · PR-AUC = heavy imbalance · log loss = calibrated probabilities.
RMSE (target's units, punishes big misses) · MAE (robust to outliers) · R² (variance explained, can go negative). Evaluator defaults: rmse, area, f1.
Both errors high = underfit: add complexity or features. Train low, validation high = overfit: regularise, simplify, more data, early stopping.
4. Model Deployment12% of the exam
Pick the pattern
| Latency | Trigger | Output | |
|---|---|---|---|
| Batch | Minutes–hours | Scheduled job | A table |
| Streaming | Seconds | New data | Appended table |
| Real time | Milliseconds | App request | HTTP response |
Batch and streaming
One node: mlflow., then .. Distributed: predict = mlflow., then df. — on read or read. Feature lookups: fe.. SQL: ai_.
A Lakeflow pipeline is the streaming answer when the question also wants managed checkpoints, retries, expectations and autoscaling.
Endpoints
Custom model: subclass mlflow. (load_, predict), log_, register in UC, create the endpoint. A dependency missing from the logged model is a common deployment error.
served_ = {name, entity_; POST / takes dataframe_, dataframe_ or inputs. Scale to zero: no idle cost, cold start next request.
traffic_ = served_ + traffic_ (e.g. 90/10): A/B tests and canaries behind one URL, rolled back by changing the percentages.
Monitoring
Inference tables log requests and responses to Delta. A monitor with the Inference profile (problem type; timestamp, prediction and model-version columns) computes profile and drift metrics plus a dashboard, window over window, optionally against a baseline table, and per slice. Drift or falling quality is the retraining signal.
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.