Databricks Machine Learning Associate practice exam: 10 free questions
Ten questions from the course across the four sections of the exam guide: MLflow and Models in Unity Catalog, feature tables, data preparation, metrics and cross-validation, and batch, streaming and real-time deployment. Some come with Python or output to read. Answer, then read why each option is right or wrong.
- 48 scored questions
- 90 minutes
- 4 sections
- Passing score not published

The exam, from Databricks
10 free Databricks Machine Learning Associate questions
Taken from the course, at least two from every section: code and output to read, metrics to choose and deployment patterns to compare. Click an option to answer; the explanation under every option appears as soon as you do.
-
Two hours after promoting version 15 to champion, a recommendation model at a fashion retailer shows a sharp drop in click-through. Consumers load the model by
@champion. What is the FASTEST safe rollback?- Register version 14's artifacts again as version 16 and assign champion to it
- Delete version 15 from the registered model
- Retrain the model from scratch with last month's data
- Reassign the champion alias back to the previous version, 14
Show the answer and why
Answer: D
- A. It works but adds a duplicate version and extra steps compared with moving the alias.
- B. Deleting does not reassign the alias, so consumers loading @champion would fail.
- C. Retraining takes far longer and is not a rollback to a known-good version.
- D. Correct. Consumers resolve the alias at load time, so pointing it back restores the old model without code changes.
Why it matters: Because promotion is an alias move, rollback is the same operation in reverse.
-
A feature table keyed on
customer_idat a car-sharing company contains: c1 risk 0.2; c2 risk 0.5; c3 risk 0.9. The job runsfe.write_table(name=t, df=upd, mode="merge")whereupdcontains: c2 risk 0.7; c4 risk 0.4. What does the table contain afterward?- c2 0.7 and c4 0.4 only
- c1 0.2, c2 0.7, c3 0.9, c4 0.4
- c1 0.2, c2 0.5, c2 0.7, c3 0.9, c4 0.4
- c1 0.2, c2 0.5, c3 0.9, c4 0.4
Show the answer and why
Answer: B
- A. That is the result of replacing the table, not of a merge.
- B. Correct. Merge updates the existing key c2, inserts the new key c4 and leaves c1 and c3 untouched.
- C. Merge matches on the primary key, so c2 is updated rather than duplicated.
- D. Merge updates matching keys, so c2 takes the new value 0.7.
Why it matters: A merge write is an upsert keyed on the primary key: matching keys are updated, new keys inserted, others kept.
-
At a cybersecurity vendor, a data scientist must add version 5 to the existing Unity Catalog model
sec.models.phish_clf, which another user owns. Which TWO conditions must be met for the registration to succeed? (Choose TWO.)- CREATE MODEL VERSION on the model, plus USE CATALOG and USE SCHEMA
- The logged model carries a model signature
- A Model Serving endpoint is running for the model
- The current version is first moved to the Archived stage
- A champion alias already points to the new run
Show the answer and why
Answer: A and B
- A. Correct. A non-owner needs CREATE MODEL VERSION on the registered model and the usage privileges on its parents.
- B. Correct. Unity Catalog requires a signature on every new model version.
- C. Serving is independent of registration; versions can be registered without any endpoint.
- D. Stages are deprecated and not supported for models in Unity Catalog.
- E. Aliases point to existing versions, not to runs, and are not a prerequisite for registering.
Why it matters: A new UC model version needs a signature and the right privileges (ownership or CREATE MODEL VERSION, plus USE CATALOG and USE SCHEMA).
-
At an airline,
seat_class(economy, premium, business, first) is missing for 2 percent of bookings. Which imputation statistic is appropriate?- The mean of the class labels
- The median of the class labels in alphabetical order
- The mode, the most frequent class
- The standard deviation of the class counts
Show the answer and why
Answer: C
- A. Labels have no numeric meaning, so a mean cannot be computed.
- B. Alphabetical order is arbitrary and the result has no meaning.
- C. Correct. Mean and median are undefined for unordered categories; the mode is the natural single value.
- D. A standard deviation is a spread measure, not a category.
Why it matters: Use the mode for categorical features, or treat missing as its own category when the gap itself carries meaning.
-
At a food-delivery company, delivery times have Q1 = 40 minutes and Q3 = 100 minutes. Using the 1.5 x IQR rule, which delivery times are flagged as outliers among 15, 185 and 195 minutes?
- Only 195; the fences are -50 and 190
- 15 and 195, because both are far from the median
- 185 and 195, because both are above Q3 + IQR
- None, because the upper fence is 250
Show the answer and why
Answer: A
- A. Correct. IQR = 60, so the fences are 40 - 90 = -50 and 100 + 90 = 190; only 195 lies outside.
- B. 15 is above the lower fence of -50, so it is not an outlier under this rule.
- C. The rule uses 1.5 IQR, giving 190; 185 is inside the fence.
- D. 250 would be Q3 + 2.5 IQR; the 1.5 multiplier gives 190.
Why it matters: Fences are Q1 - 1.5 x IQR and Q3 + 1.5 x IQR; compute IQR = Q3 - Q1 first.
-
A bank's model blocks card payments it predicts as fraudulent. Each wrongly blocked payment angers a legitimate customer and often causes them to switch banks, while a separate rules engine already catches most real fraud. Which metric is the MOST appropriate focus for this model?
- Recall
- Accuracy
- Precision
- Mean absolute error
Show the answer and why
Answer: C
- A. Recall would push the model to block more payments, increasing the false positives the bank wants to avoid.
- B. With rare fraud, accuracy stays high no matter how many legitimate payments are blocked.
- C. Correct. Precision measures how many blocked payments were truly fraud; it is the right focus when false positives are the expensive error.
- D. MAE is a regression metric and does not apply to a block or allow decision.
Why it matters: When false positives are the costly error, optimize precision; when false negatives are costly, optimize recall.
-
A churn classifier at a SaaS company is evaluated on 1,000 customers. Exhibit (positive = churn): TP 60, FP 40, FN 20, TN 880. What is the F1 score, rounded to two decimals?
- 0.60
- 0.75
- 0.94
- 0.67
Show the answer and why
Answer: D
- A. 0.60 is the precision only; F1 combines precision with recall.
- B. 0.75 is the recall only; F1 is their harmonic mean, which is lower.
- C. 0.94 is the accuracy, (60 + 880) / 1,000, which the large number of true negatives inflates.
- D. Correct. Precision = 60/(60+40) = 0.60, recall = 60/(60+20) = 0.75, and F1 = 2 x 0.60 x 0.75 / (0.60 + 0.75) = 0.90 / 1.35 = 0.67.
Why it matters: F1 is the harmonic mean of precision and recall: here 2 x 0.60 x 0.75 / 1.35 = 0.67.
-
A data scientist at a telecom company builds
grid = ParamGridBuilder().addGrid(lr.regParam, [0.001, 0.01, 0.1, 1.0]).addGrid(lr.elasticNetParam, [0.0, 0.5, 1.0]).build()and runsCrossValidator(estimator=lr, estimatorParamMaps=grid, evaluator=ev, numFolds=5).fit(train_df). Counting the final refit on the full dataset, how many models are trained?- 60
- 61
- 12
- 17
Show the answer and why
Answer: B
- A. 60 counts only the fold models and leaves out the final refit, which the stem asks to include.
- B. Correct. 4 x 3 = 12 settings x 5 folds = 60 fold models, plus 1 refit with the best setting = 61.
- C. 12 is the number of parameter settings, before multiplying by the folds.
- D. 17 adds the 12 settings to the 5 folds instead of multiplying them.
Why it matters: Models trained = settings x folds, plus one refit if counted: 12 x 5 + 1 = 61.
-
A wind-farm operator receives sensor readings continuously from 3,000 turbines and wants failure-risk scores in a Delta table within about a minute of each reading, for dashboards and alerts. No application waits on an individual response. Which serving approach BEST fits?
- A nightly batch job over the day's readings
- A real-time endpoint that each turbine calls for every reading
- Manual scoring in a notebook whenever an alert fires
- Streaming inference on new readings as they arrive
Show the answer and why
Answer: D
- A. Nightly scoring misses the one-minute freshness requirement.
- B. No caller needs a synchronous answer, so per-request calls add cost and complexity.
- C. Manual scoring is not continuous and cannot meet the freshness target.
- D. Correct. Continuous arrivals with minute-level freshness and table output match streaming inference.
Why it matters: Streaming inference fits continuous data that needs low-latency (seconds to minutes) results written to tables rather than per-request answers.
-
A data engineer at a retailer asks why the team's client code sends
dataframe_splitrather thandataframe_recordsto a serving endpoint. Which reason is correct?- The records format is limited to one row per request
- The split format compresses the payload, so endpoints bill less per request
- Only the split format works for models registered in Unity Catalog
- The split format keeps column order, which the records format does not guarantee
Show the answer and why
Answer: D
- A. dataframe_records accepts many records per request.
- B. Format choice does not change endpoint billing.
- C. Both formats work for pandas-based models regardless of the registry.
- D. Correct. Records are key-value objects whose order is not guaranteed, so the split format is preferred.
Why it matters: dataframe_split is recommended because it preserves column ordering; dataframe_records does not guarantee it.
The four sections
| Section | Weight | Questions per 48-question course exam | Guide topics |
|---|---|---|---|
| 1. Databricks Machine Learning | 38% | 18-19 | 18 |
| 2. Data Processing | 19% | 9-10 | 9 |
| 3. Model Development | 31% | 14-15 | 15 |
| 4. Model Deployment | 12% | 5-6 | 6 |
Sections and weights from the exam guide (August 2026 edition, exam published March 1, 2025); the exam page gives the same weights and calls section 2 ML Workflows. Databricks does not number or weight the topics individually. The passing score is not published (certification FAQ).
Where candidates lose points
Counting and reading. How many models a cross-validated grid search trains, and whether the final refit is counted; an F1 score from a confusion matrix; the outlier bounds from an interquartile range; the best run from an MLflow runs table.
Choosing, not recalling. Mean, median or mode for an imputation; accuracy, precision, recall, F1 or log loss for a stated cost; batch, streaming or real-time serving for a stated latency; deploy code or deploy models.
Old names and new ones. Models in Unity Catalog use aliases such as champion and challenger, not Staging and Production stages, and new versions need a model signature. Feature Engineering in Unity Catalog replaces the workspace feature store. Each question uses today's name and the guide's name the first time it appears.
What's inside the course
Six full practice exams
Six tests of 48 questions, 288 original questions, each timed at 90 minutes and weighted 38/19/31/12 like the guide; all 48 guide objectives are covered.
Python in every exam
134 code-reading questions (20-23 per exam) and 28 exhibits: MLflow Client calls, feature lookups, Spark ML pipelines, tuning code, confusion matrices and endpoint routes.
Blind-checked 288/288
Every option explained, every API checked against the Databricks, MLflow, Spark ML and scikit-learn documentation, every key confirmed by a separate blind reviewer.
Six full exams, 288 questions, all options explained
48 questions and 90 minutes per test, like the real exam, with four multiple-response items marked Choose TWO in every exam.
Study guides for this exam
Free guides that go with these questions. All guides are on the guides page.
Passing score & exam format
48 scored questions, 90 minutes, no published cut score.
Study guideMachine Learning Associate study guide
The four sections, what the 2025 outline calls things now, and a plan.
Also on DatabricksData Analyst Associate questions
Ten free SQL, dashboard and Genie questions.
Databricks Machine Learning Associate FAQ
How many questions are on the Databricks Machine Learning Associate exam?
48 scored multiple-choice and multiple-selection questions in 90 minutes, according to the exam guide. Up to 10 unscored items may be added; they are not identified, and extra time for them is already included in the time limit.
What is the passing score?
Databricks does not publish it. Its certification FAQ says passing scores are set through statistical analysis and can change as exams are updated, so they are not published. The course uses 75% on unseen tests only as its own practice target.
Which version of the exam is live?
The guide linked from the exam page in October 2026 is titled August 2026, but its own table says the exam was published on March 1, 2025, and its 48 objectives are the same as in the March 2025 guide. The exam did not change in 2026; the document did.
What are the sections and weights?
Databricks Machine Learning 38%, Data Processing 19%, Model Development 31% and Model Deployment 12%. The exam page calls section 2 ML Workflows; the guide calls it Data Processing.
Is the code in Python?
Yes. The exam page says all machine learning code on the exam is in Python; data manipulation code that is not specific to machine learning could be in SQL. No aids are allowed.
Which languages is it offered in, and how long is it valid?
English, Japanese, Brazilian Portuguese and Korean. The certification is valid for two years; to recertify you pass the exam version that is live at that time.
Are these real Databricks exam questions?
No. All 288 course questions are original, written from the public exam guide and checked against the Databricks, MLflow, Spark ML and scikit-learn documentation. Every question was answered blind by a separate reviewer, and 288 of 288 keys matched.
Keep going: passing score and exam format · study guide · la certificación en español · Databricks Data Analyst Associate questions · Databricks Data Engineer Associate questions · all courses