About the Exam

The Databricks Certified Machine Learning Associate exam assesses basic machine learning tasks on Databricks. It covers Databricks Machine Learning capabilities including AutoML, Unity Catalog, and selected MLflow features, along with data exploration, feature engineering, model training, tuning, evaluation, selection, and deployment. It is aimed at people with hands-on experience using Databricks Machine Learning, and passing demonstrates the ability to complete basic machine learning work on the platform.

Exam Topics

  • Databricks Machine Learning25%
  • Data Processing25%
  • Model Development25%
  • Model Deployment25%

How to Use This Practice Exam

  1. Browse — Read each question, select your answer, and reveal the explanation.
  2. Exam Mode — Simulate real exam conditions with a timed session and score report.
  3. Learn Mode — Spaced repetition schedules questions you struggle with for long-term retention.

Download the Full Exam PDF

Get every question and answer in a clean, printable PDF built for offline study. Purchase once, keep permanent access, and re-download the latest version anytime.

Last updated August 2, 2026

Topic filter
Question status
Question sort
Questions per page

QuestionQ1

VerifiedModel Development

A data scientist was taught during training to always apply 5-fold cross-validation in their model-development workflow. A colleague notes that, when (k > 2), there are situations in which a train-validation split may be preferable to k-fold cross-validation.

Which of the following represents a potential advantage of using a train-validation split rather than k-fold cross-validation in this situation?

Explanation

K-fold cross-validation trains and validates a model for each of the (k) folds, whereas a train-validation split requires one training run and one validation evaluation per candidate configuration. When (k > 2), the split can therefore reduce computation by requiring fewer model fits.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ2

VerifiedModel Development

A data scientist is using MLflow to optimize a complex deep-learning model with these hyperparameters:

  • learning_rate: continuous (range: 0.0001 to 0.1)
  • num_layers: discrete (range: 2 to 10)
  • dxopout_rate: continuous (range: 0.1 to 0.5)
  • batch_size: discrete (range: 32 to 256)

The model requires about 2 hours to train for one hyperparameter setting, and the data scientist has a 24-hour tuning time budget.

Which hyperparameter-tuning method is appropriate for this scenario?

Explanation

Tree-structured Parzen Estimator (TPE) is a sequential, Bayesian-style optimization method that accommodates continuous and discrete hyperparameters and uses results from completed trials to prioritize promising configurations. With only about 12 sequential trials available, this is substantially more efficient than grid or exhaustive search and typically more sample-efficient than unguided random search. MLflow supports tracking trials from hyperparameter optimization libraries, including Optuna; its documentation describes each trial as one execution using a single parameter combination.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ3

VerifiedDatabricks Machine Learning

Which of the following tools can facilitate Bayesian hyperparameter tuning for distributed Spark ML machine-learning models?

Explanation

Hyperopt supports Bayesian hyperparameter optimization using the Tree of Parzen Estimators (TPE) algorithm. Its Spark documentation identifies Hyperopt as applicable to distributed machine-learning algorithms such as Apache Spark MLlib, using the default Trials class.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ4

VerifiedDatabricks Machine Learning

A data scientist is calculating feature importance as part of an MLflow run. The feature-importance values are stored in the pandas DataFrame importance_df and written as a CSV to the DBFS location importance_path. They want to log these values with their active MLflow run.

Which of the following lines of code can the data scientist use to log the feature-importance values with their active MLflow run?

Explanation

mlflow.log_artifact logs a local file or directory to the currently active MLflow run. Since the feature-importance data has been saved as a CSV at importance_path, that path can be passed to log_artifact. A DataFrame is not a numeric metric and cannot be passed directly to mlflow.log_metric.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ5

VerifiedDatabricks Machine Learning

Which of the following is an advantage of using vectorized pandas UDFs rather than standard PySpark UDFs?

Explanation

Vectorized pandas UDFs use Apache Arrow to transfer column data in batches and apply operations to Pandas Series or DataFrames. Processing batches rather than individual rows reduces Python and serialization overhead, improving performance for suitable workloads.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!
Know a question that should be here? Contribute to this exam
Back home