Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Databricks Databricks-Machine-Learning-Associate Dumps 2026 with Free Practice Questions and Answers

Practise for the Databricks Certified Machine Learning Associate Exam with 12 original questions, each with an answer and explanation.

Topics: Databricks Machine Learning, Model Development, ML Workflows and Model Deployment.

Includes single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

Databricks-Machine-Learning-Associate Practice Set Details

Exam Code
Databricks-Machine-Learning-Associate
Questions On This Page
12
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
74
Certification
Machine Learning Associate
12 questions

Databricks Databricks-Machine-Learning-Associate Exam Questions and Answers by Topic

Databricks Machine Learning

38% of the exam

6 practice questions on this topicWhat this topic covers

Question 1

Added

Multiple Answers

A team is preparing a reproducible training run for a regulated model in a Databricks workspace. The model must be registered in Unity Catalog, and its parameters, evaluation metrics, and serialized model must remain associated with the training run for audit review. The team already has an active MLflow run and a fitted scikit-learn estimator. Workspace administrators have not granted the team permission to create Unity Catalog catalog objects, but a governed catalog and schema already exist and the team has the required privileges to create a registered model there. Which actions should the team take? (Choose two.)

Correct answer: A, C

Logging the fitted estimator during the active run records the model artifact and associates it with that run; supplying a Unity Catalog model name enables registration in the governed registry. Logging parameters and metrics through MLflow tracking APIs preserves the corresponding run metadata for auditability. Creating a catalog is unnecessary and the team lacks that privilege. A workspace file is not a substitute for logging a model artifact as part of the run. Ending the run before logging prevents the model from being logged to that active run.

Question 2

Added

Single Answer

A retailer's data science team trains demand models in several Databricks workspaces. The team needs centrally governed feature definitions that can be discovered and reused across those workspaces, while access remains controlled by Unity Catalog. The platform team wants to avoid maintaining separate workspace-level feature tables and does not require low-latency online serving for this project. Which design best meets the requirement?

Correct answer: B

A Unity Catalog feature table can be governed and discovered across workspaces that share the metastore, subject to Unity Catalog permissions. That avoids duplicated workspace-local definitions and supports the stated offline training use. Workspace tables require synchronization and duplicate governance. An online table is intended for low-latency serving rather than serving as the authoritative offline training source. MLflow model registration tracks model versions, not reusable feature definitions.

Question 3

Added

Multiple Answers

A regulated insurer is standardizing model development on Databricks. Its workloads use supported libraries, need a managed environment with ML-oriented packages, and must be reproducible across development and production. The team also uses the MLflow UI and wants to reduce package setup work. It cannot move workloads to a different cloud service or use an unsupported runtime version. Which two advantages of Databricks Runtime for Machine Learning directly address these needs? (Choose two.)

Correct answer: B, D

The ML runtime reduces environment assembly by providing popular ML libraries and dependencies, and it integrates ML tooling such as MLflow into Databricks workflows. These are direct advantages for the insurer's supported, reproducible development environment. Runtime selection does not automatically create deployment endpoints. It also cannot guarantee identical behavior across arbitrary later versions, and it does not replace workspace, cluster, or data access controls.

Question 4

Added

Single Answer

A team has completed several experiments in a shared MLflow experiment and needs to programmatically select the run with the lowest validation RMSE before registering its model. Some runs were terminated early and lack the metric; all completed candidate runs logged the metric under the same name. The team wants to use the MLflow Client API rather than manually inspect the UI. Which approach is best?

Correct answer: A

The MLflow Client API's search_runs supports filtering and ordering runs by logged metrics, allowing the team to rank candidate runs by ascending validation RMSE. Runs without the metric are excluded by the metric filter. get_run retrieves an individual run, not all experiment runs for ranking. Recency does not establish model quality. Metric-history length reflects logging frequency, not the lowest validation error.

Question 5

Added

Order List

A team must create an offline feature table in Unity Catalog, populate it from a Spark DataFrame, and use the stored features to train a model with feature lineage available for later scoring. The team has already prepared the source DataFrame and confirmed that the catalog and schema exist. Arrange the remaining steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Write the prepared feature DataFrame to the feature table
  2. Train a model using the feature table lookup or training set API
  3. Log the trained model with feature metadata for feature-aware scoring
  4. Create the Unity Catalog feature table with its primary key and feature schema
Correct answer:
  1. Create the Unity Catalog feature table with its primary key and feature schema
  2. Write the prepared feature DataFrame to the feature table
  3. Train a model using the feature table lookup or training set API
  4. Log the trained model with feature metadata for feature-aware scoring

The table must exist before the prepared rows can be written to it. Once populated, its keys and feature values can be used to construct training data and fit the model. Logging the trained model with feature metadata preserves the feature relationships needed by feature-aware scoring. Writing before creating the table fails unless a supported table-creation write operation is used, which is not the sequence specified here; training before populating it cannot use the intended stored feature values.

Question 6

Added

Single Answer

A platform team is defining a repeatable MLOps process for models owned by several teams. Models must be traceable from training data and parameters through evaluation and release, with controlled promotion and the ability to reproduce a prior candidate. Teams currently save model files to personal storage locations and promote them by copying files manually. Which change is the best next step?

Correct answer: C

MLflow tracking records experiment parameters, metrics, artifacts, and model runs, while the Unity Catalog model registry provides governed model versions and controlled lifecycle operations. Together they improve traceability, reproducibility, and promotion compared with manual file copying. A shared volume with metric-bearing filenames lacks structured run lineage and registry governance. Notebook variables are transient and do not establish reproducible release records. Feature tables store feature data, not model release versions.

ML Workflows

19% of the exam

2 practice questions on this topicWhat this topic covers

Question 7

Added

Single Answer

An analytics team is cleaning a numeric transaction-amount column with a long right tail and a small number of extreme values. The business requires retaining normal high-value transactions, and the distribution is not close to normal. The team plans to remove outliers using a robust rule rather than a fixed business threshold. Which approach is most appropriate?

Correct answer: C

The interquartile range is robust to skew and extreme observations. Fences based on Q1, Q3, and a multiple of the IQR can identify unusually distant values without relying on a normal-distribution assumption. A mean-and-standard-deviation rule is sensitive to the very extremes being evaluated and is less suitable for this skewed distribution. Replacing all values above the median discards meaningful variation, while one-hot encoding a continuous amount is not an appropriate outlier treatment.

Question 8

Added

Dropdown

A Spark pipeline has a categorical column named payment_type with a small, known set of string values. The team needs numeric one-hot features while ensuring unseen categories at scoring time do not cause the pipeline to fail. Complete the relevant estimator configuration.

Choose the correct value for each blank.

StringIndexer(inputCol="payment_type", outputCol="payment_type_index", handleInvalid=); OneHotEncoder(inputCols=["payment_type_index"], outputCols=["payment_type_vec"], handleInvalid=)
Correct answer:

StringIndexer(inputCol="payment_type", outputCol="payment_type_index", handleInvalid="keep"); OneHotEncoder(inputCols=["payment_type_index"], outputCols=["payment_type_vec"], handleInvalid="keep")

Setting handleInvalid to keep on StringIndexer maps unseen labels to an additional index instead of failing. OneHotEncoder with handleInvalid set to keep accommodates invalid indices in its output rather than raising an error. Using error would fail on an unseen value, which violates the scoring requirement. Skip discards affected rows, changing the scoring population instead of representing the unexpected category.

Model Development

31% of the exam

3 practice questions on this topicWhat this topic covers

Question 9

Added

Drag And Drop

A marketplace is selecting approaches for three distinct prediction tasks. It needs a method that aligns with each task's target and operational constraint. Match each task to the most appropriate approach.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Group products with no existing labels to support exploratory assortment analysis
Estimate the remaining delivery time in minutes from historical labeled deliveries
Predict whether a customer will default; defaults are rare and missing them is costly
Regression using a continuous target
Binary classification with class weighting
Clustering using an unsupervised method
Correct answer:
  • Predict whether a customer will default; defaults are rare and missing them is costly → Binary classification with class weighting
  • Estimate the remaining delivery time in minutes from historical labeled deliveries → Regression using a continuous target
  • Group products with no existing labels to support exploratory assortment analysis → Clustering using an unsupervised method

Default prediction has a binary target and a costly minority class, so class weighting can make errors on rare defaults matter more during training. Delivery time is a numeric continuous target, making regression appropriate. The product grouping task has no labels and seeks structure in the observations, which calls for unsupervised clustering. Treating defaults as regression loses the intended classification target, while clustering cannot directly provide supervised delivery-time estimates or the requested default probability.

Question 10

Added

Single Answer

A fraud team compares a shallow decision tree with a logistic regression model using a validation set. Only 0.4% of transactions are fraudulent, and the operational team will review a limited number of alerts each day. The model must prioritize the highest-risk transactions; overall accuracy is already high for a trivial all-legitimate classifier. Which evaluation approach is most useful for selecting a model and operating threshold?

Correct answer: A

With a rare positive class and a fixed review budget, the team needs to evaluate how many alerted transactions are truly fraudulent and how many fraud cases are found at the operational alert volume. Precision and recall at capacity-relevant thresholds directly inform that decision. Accuracy can be high while detecting almost no fraud. Log loss can assess probability quality but does not by itself select the operational ranking threshold and alert volume. R-squared is a regression metric, not appropriate for this classification task.

Question 11

Added

Single Answer

A team is tuning a Spark ML pipeline with a parameter grid containing four values for a tree-depth parameter and three values for a regularization parameter. It uses three-fold cross-validation and fits the estimator once more on the full training data after selecting the best parameter combination. There are no invalid parameter combinations or early stopping. How many estimator model fits are performed?

Correct answer: A

The grid contains 4 times 3, or 12, parameter combinations. Three-fold cross-validation fits each combination once per fold, giving 12 times 3, or 36, validation fits. Spark ML CrossValidator then fits the best parameter map on the full input dataset, adding one final estimator fit for 37 total. Twelve counts combinations but ignores folds, 36 omits the final fit, and 39 incorrectly adds a separate full-data fit for every grid combination.

Model Deployment

12% of the exam

1 practice question on this topicWhat this topic covers

Question 12

Added

Single Answer

A subscription service scores a nightly snapshot of several million accounts. The result is used by a next-day campaign, so second-level response time is unnecessary. The current scoring code uses a pandas-compatible model, and the organization wants to avoid keeping a continuously available endpoint running for a workload that executes once per day. Which approach best fits?

Correct answer: D

A scheduled pandas batch inference job matches a large, periodic workload where results are needed the next day rather than in real time. It avoids paying for continuously available serving infrastructure and can process the snapshot in bulk. A real-time endpoint is designed for request-response latency and adds unnecessary serving overhead here. Delta Live Tables streaming is intended for ongoing stream processing, not a once-daily snapshot. Multiple endpoints add deployment and routing complexity without meeting a stated need.

More Databricks Practice Questions

Get the Full Databricks Databricks-Machine-Learning-Associate Dumps as PDF and Practice Test

12 questions are free on this page and the full set has 74. It comes as a PDF and an online practice test, with 90 days of free updates.