Databricks Databricks-Machine-Learning-Associate Practice Exam Questions & Answers
Databricks Databricks-Machine-Learning-Associate Exam Details
Key details for this exam, checked against the published exam outline
- Exam Code
- Databricks-Machine-Learning-Associate
- Full Name
- Databricks Certified Machine Learning Associate Exam
- Issuing Body
- Databricks
- Question Format (Our Bank)
- Multiple Choice
- Delivery
- Online proctored
- Eligibility
- 6+ months of hands-on experience performing machine learning tasks
- Validity
- 2 years
- Full Question Set
- 74 questions Get All Questions
Free Databricks-Machine-Learning-Associate Practice Questions
Answer each question, then see the correct answer and why it is right
Question 1 Domain 3 Model Development
A data scientist applies 3-fold cross-validation while tuning hyperparameters for a regression model. The root-mean-squared-error values computed on each validation fold are listed below:
* 10.0
* 12.0
* 17.0
Which value represents the overall cross-validation root-mean-squared error?
The overall cross-validation RMSE is found by taking the mean of the RMSE values from each validation fold. With fold RMSE values of 10.0, 12.0, and 17.0, the overall figure is the average of these three numbers:
OverallCVRMSE=10.0+12.0+17.03=39.03=13.0OverallCVRMSE=310.0+12.0+17.0=339.0=13.0
Hence, the correct answer is 13.0, which represents the mean RMSE across every fold. Reference:
Cross-validation in Regression (Understanding Cross-Validation Metrics).
Question 2 Domain 3 Model Development
A data scientist has built two linear regression models. The first model treats price as its label, while the second model treats log(price) as its label. After comparing each model's label predictions with the actual price values to compute RMSE, the data scientist finds that the RMSE of the second model is much larger than that of the first model.
Which of the following proposed explanations for this difference cannot be correct?
Root Mean Squared Error (RMSE) is a widely adopted standard for judging how accurate regression models are. The claim that it is invalid is wrong. Here is an overview of why the remaining statements are or are not valid:
Transformations and RMSE Calculation: When predictions come from a transformed label, such as log, they must be mapped back to the original scale before RMSE is computed so the evaluation remains accurate. Errors in this conversion step can produce misleading RMSE values.
Accuracy of Models: Based only on the information provided, it is impossible to say with certainty which model is more accurate unless their RMSE values are properly rescaled to the original price scale.
Appropriateness of RMSE: RMSE is fully valid for regression problems because it measures how closely a model predicts the outcome, and it is reported in the same units as the dependent variable.
Reference
'Applied Predictive Modeling' by Max Kuhn and Kjell Johnson (Springer, 2013), especially the sections covering model evaluation metrics.
Question 3 Domain 3 Model Development
A machine learning engineer wants to increase the scale of a machine learning pipeline by spreading its feature engineering work across a cluster.
Which of these feature engineering tasks would be the least efficient to parallelize?
Of the listed options, computing the exact median to fill missing feature values is the least efficient to distribute. The exact median depends on the full data distribution, which is costly in a distributed setting. Unlike the mean or mode, determining the median requires ordering the data or keeping track of the complete distribution, which is more demanding and often forces the data to be reshuffled across partitions.
Reference
Get the complete Databricks-Machine-Learning-Associate question set
$20$40
Question 4 Domain 3 Model Development
A data scientist has built a linear regression model where the label is log(price). After running inference with this model, the predicted values and the actual label values are stored in the Spark DataFrame preds_df.
To assess the model, they run this code block:
regression_evaluator.setMetricName("rmse").evaluate(preds_df)
What modification should the data scientist make so that the RMSE can be interpreted on the same scale as price?
Because the model predicts log-transformed prices, the predictions must be mapped back to the original price scale before the RMSE is calculated, so the result can be compared with price. Exponentiating the predictions accomplishes this before the RMSE is computed. The RMSE should be calculated on the same scale as the original data to provide a meaningful measure of error.
Databricks documentation on regression evaluation: Regression Evaluation
Question 5 Domain 1 Databricks Machine Learning
A data scientist aims to tune the hyperparameters of a scikit-learn model efficiently and has chosen the fmin operation from the Hyperopt library for this task. However, the resulting model lacks accuracy. The scientist believes the objective_function supplied as an argument to fmin is the source of the problem.
They use the following code block to create the objective_function:

Which of the following changes does the data scientist need to make to their objective_function in order to produce a more accurate model?
Hyperopt's fmin is designed to locate the minimum of the objective function. Because cross_val_score is being used to compute the R2 score, which indicates the share of variance in a dependent variable accounted for by one or more independent variables in a regression model, larger values are preferable. Yet fmin works by minimizing, so to match that behavior, the function should return the negative R2 (-r2). Minimizing the negative R2 therefore amounts to maximizing R2, which can produce a more accurate model.
Reference
Hyperopt Documentation: http://hyperopt.github.io/hyperopt/
Scikit-Learn documentation on model evaluation: https://scikit-learn.org/stable/modules/model_evaluation.html
Question 6 Domain 3 Model Development
Spark ML's linear regression implementation begins by trying to solve the problem with matrix decomposition, yet this approach performs poorly on big datasets that contain many variables.
What technique does Spark ML rely on to parallelize the fitting of a linear regression model on large-scale data?
When datasets are large, Spark ML applies iterative optimization methods to spread the training of a linear regression model across the cluster. In particular, Spark MLlib makes use of approaches such as Stochastic Gradient Descent (SGD) and Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) to repeatedly refine the model parameters. These techniques suit distributed computing settings well, since they process data in mini-batches and update the model step by step, which lets them handle large-scale data efficiently.
Databricks documentation covering linear regression: Linear Regression in Spark ML
Question 7 Domain 3 Model Development
A data scientist is working with a Spark DataFrame named spark_df. The goal is to build a new Spark DataFrame made up solely of the spark_df rows whose price column holds a value above 0.
Which of the following code snippets achieves this objective?
Selecting rows of a Spark DataFrame by a condition is done with the filter method paired with a column expression. In PySpark, spark_df.filter(col('price') > 0) keeps only the rows where the 'price' column exceeds 0, which makes it the correct choice. The col function builds column-based expressions. The remaining options either use syntax that is not valid for Spark DataFrames or belong to other frameworks such as pandas. Reference:
PySpark DataFrame API documentation (Filtering DataFrames).
Question 8 Domain 4 Model Deployment
Which term describes the technique that converts categorical features into a collection of binary indicator feature variables?
The technique that turns categorical features into a set of binary indicator columns is called one-hot encoding. Each category value is given its own new binary column, which allows models that accept only numerical input to use the data. Since this approach does not impose any artificial ranking between categories, it is applied frequently without creating a misleading ordinal relationship. Source:
Feature Engineering Techniques (One-Hot Encoding).
Practice every Databricks-Machine-Learning-Associate question in the full set, each one with its verified answer and a detailed explanation
Get Full AccessWhat the Databricks Databricks-Machine-Learning-Associate Exam Covers
Exam domains verified against the Official Databricks Databricks-Machine-Learning-Associate exam guide, last checked November 2026.
Domain 1 Databricks Machine Learning
38%Master MLOps best practices and ML runtimes, including AutoML for model selection and feature engineering. Learn to create and manage feature store tables in Unity Catalog, log and track models with MLflow, and register models in the Unity Catalog registry for improved governance compared to workspace-level registries.
Above Practice Question from this Domain: Q5
Domain 2 ML Workflows
19%Build end-to-end ML workflows using Databricks tools and AutoML. Develop feature stores, manage model experiments with MLflow Client API, and promote models through development and production environments using aliases and tags.
Domain 3 Model Development
31%Select appropriate algorithms and build training pipelines using Spark ML transformers and estimators. Master hyperparameter tuning with Hyperopt and grid or Bayesian search, apply cross-validation techniques, and evaluate models using classification metrics like F1 and ROC/AUC and regression metrics like RMSE and MAE.
Domain 4 Model Deployment
12%Deploy models to endpoints for batch, real-time, and streaming inference. Use pandas for batch predictions, deploy custom models for real-time serving, and understand how Delta Live Tables support streaming inference workflows.
Above Practice Question from this Domain: Q8
Databricks-Machine-Learning-Associate Exam FAQ
Common questions about the exam itself
What hands-on experience do I need before taking the Databricks Machine Learning Associate exam?
How difficult is the Databricks Machine Learning Associate exam compared to other entry-level data certifications?
Which exam domain do most candidates find most challenging?
How long should I realistically spend preparing for this exam?
What happens on exam day for the Databricks Machine Learning Associate test?
What is the retake policy if I do not pass the Databricks Machine Learning Associate exam?
How long does the Databricks Machine Learning Associate certification stay valid?
What job role does the Databricks Machine Learning Associate certification map to?
How does the Databricks Machine Learning Associate exam relate to other Databricks certifications?
Other Databricks Exams
Free practice questions for more Databricks certification exams
