Free Databricks Certified Machine Learning Associate Exam Practice Questions
200 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the Databricks Certified Machine Learning Associate Exam practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1Which practice preserves the version history of ML pipeline code as it moves between environments?
- A.Store pipeline code in a Git repository.Correct answer: A
- B.Store pipeline code only in model tags.
- C.Store pipeline code only in prediction tables.
- D.Store pipeline code only in endpoint logs.
Explanation: The documentation states, "Use Git for version control. Pipelines and code should be stored in Git for version control." Git versions the pipeline source. Tags label models, prediction tables store outputs, and endpoint logs record requests rather than code revisions.
Reference: MLOps workflows on Databricks — Access control and versioning
2Which extra summary rows does DataFrame.summary() include by default beyond count, mean, standard deviation, minimum and maximum?
- A.Skewness and kurtosis
- B.Approximate 25%, 50% and 75% percentilesCorrect answer: B
- C.Every distinct category and its frequency
- D.Pairwise correlations for every column
3A labeled dataset records each building's sale price as a real number. Which learning task matches predicting that target?
- A.Clustering
- B.RegressionCorrect answer: B
- C.Categorical frequency encoding
- D.Binary classification
Explanation: The reference states, "The target values y which are real numbers for regression tasks" A continuous price target is a regression target; clustering lacks supervised targets and classification predicts discrete classes.
Reference: scikit-learn getting started guide — Fitting and predicting: estimator basics
4A finite table of stored records must be scored as one scheduled overnight workload for a morning report. Which inference pattern processes that workload as a group?
- A.Synchronous request-response inference for each user interaction
- B.Scheduled batch inference over the tableCorrect answer: B
- C.Continuous inference as new source events arrive
- D.Scheduled model retraining to update fitted parameters
Explanation: The reference states, "Batch or streaming inference is generally the most cost-effective option for higher throughput, higher latency use cases." A: Interactive inference handles request-time inputs. B: Correct finite scheduled group processing. C: Continuous streaming is driven by arriving events. D: Retraining learns a model rather than applying the fitted model to produce batch predictions.
Reference: Databricks: MLOps workflows — 5 Inference: batch or streaming
5A pipeline's feature computation, training, inference, and monitoring each pass isolated tests. What should staging integration tests establish?
- A.That the training estimator maximizes a validation metric.
- B.That the pipelines function correctly together.Correct answer: B
- C.That each function passes its isolated unit tests again.
- D.That one training stage achieves its throughput target.
Explanation: The reference states, "Integration tests run all pipelines (including feature engineering, model training, inference, and monitoring) to ensure that they function correctly together." A: Model-quality evaluation is a separate check. B: Integration tests exercise interactions across pipelines. C: Repeating isolated unit tests does not test interactions. D: Benchmarking one stage does not test the integrated workflow.
Reference: MLOps workflows on Databricks — Staging stage, Integration tests
6Which call requests an approximate 90th percentile in a Spark DataFrame summary?
- A.df.summary(0.90)
- B.df.describe('90%')
- C.df.summary('90%')Correct answer: C
- D.df.select('90%').count()
Explanation: The reference states, "arbitrary approximate percentiles specified as a percentage (e.g., 75%)" summary accepts percentage strings as statistics. describe takes column names, and selecting a column named 90% does not calculate a percentile.
Reference: PySpark DataFrame.summary API — DataFrame.summary, available statistics
7A model must predict exactly one of three named failure categories from labeled sensor records. Which task matches?
- A.Density estimation without labels
- B.Continuous-target regression
- C.Multiclass classificationCorrect answer: C
- D.Feature normalization
Explanation: The reference states, "integers for classification (or any other discrete set of values)." The target is a discrete category. Unsupervised density estimation, continuous regression and preprocessing do not express that supervised prediction task.
Reference: scikit-learn getting started guide — Fitting and predicting: estimator basics
8A web application needs a prediction during each incoming request using features supplied with that request. Which Databricks interface supports this interaction?
- A.A scheduled batch job that writes predictions before user requests arrive
- B.A streaming job that only processes events from a message queue
- C.A Model Serving REST endpoint invoked with each request's featuresCorrect answer: C
- D.A nightly SQL report reading previously computed predictions
Explanation: The reference states, "Each model you serve is available as a REST API that you can integrate into your web or client application." A: Precomputation does not score newly supplied request features. B: A message-stream consumer is a different interaction interface. C: REST serving scores request inputs for the application. D: A nightly report does not provide request-time model computation.
Reference: Databricks: Deploy models using Model Serving — What is Model Serving?
9An offline release comparison must assess a challenger against the production champion. Which evaluation uses a comparable basis for both models?
- A.Score each model only on its own training records.
- B.Compare the challenger's training score with the champion's held-out score.
- C.Evaluate both models against the same held-out dataset.Correct answer: C
- D.Choose a separate dataset favorable to each model.
Explanation: The reference states, "An offline comparison evaluates both models against a held-out data set and tracks results using the MLflow Tracking server." A: Training scores can favor memorization and differ in data. B: Different training/test roles are not comparable. C: The same held-out dataset supplies a common evaluation basis. D: Favorable separate datasets confound model and data differences.
Reference: MLOps workflows on Databricks — Production stage: Compare Challenger to Champion
10How should an engineer restrict Spark summary output to the age and income columns?
- A.df.summary('age', 'income')
- B.df.describe('count', 'mean')
- C.df.select('count', 'mean').summary()
- D.df.select('age', 'income').summary()Correct answer: D
Exam Review
About Databricks Certified Machine Learning Associate Exam
Databricks Certified Machine Learning Associate Exam · US
Key exam facts
- Provider
- Databricks develops and owns the certification examination; delivery is online proctored or at a test center.
- Format
- Proctored examination with multiple-choice and multiple-selection questions; online or test center.
- Exam questions
- Total questions: 48–58; Scored questions: 48; Unscored questions: 0–10; The total includes the scored and unscored questions.
- Time limit
- 90 minutes, including time already allowed for unscored items.
- Passing score
- Not published. Databricks sets passing scores through statistical analysis and may change them when exams are updated; no numeric threshold or scoring scale is published.
- Exam fee
- USD 200 per examination attempt, plus applicable taxes required by local law; no free retakes.
Topics covered
Databricks Machine Learning (38%)
- Identify the best practices of an MLOps strategy
- Identify the advantages of using ML runtimes
- Identify how AutoML facilitates model/feature selection.
- Identify the advantages AutoML brings to the model development process
- Identify the benefits of creating feature store tables at the account level in Unity Catalog in Databricks vs at the workspace level
- Create a feature store table in Unity Catalog
- Write data to a feature store table
- Train a model with features from a feature store table.
- Score a model using features from a feature store table.
- Describe the differences between online and offline feature tables
- Identify the best run using the MLflow Client API.
- Manually log metrics, artifacts, and models in an MLflow Run.
- Identify information available in the MLflow UI
- Register a model using the MLflow Client API in the Unity Catalog registry
- Identify benefits of registering models in the Unity Catalog registry over the workspace registry
- Identify scenarios where promoting code is preferred over promoting models and vice versa
- Set or remove a tag for a model
- Promote a challenger model to a champion model using aliases
Data Processing (19%)
- Compute summary statistics on a Spark DataFrame using .summary() or dbutils data summaries
- Remove outliers from a Spark DataFrame based on standard deviation or IQR
- Create visualizations for categorical or continuous features
- Compare two categorical or two continuous features using the appropriate method
- Compare and contrast imputing missing values with the mean or median or mode value
- Impute missing values with the mode, mean, or median value
- Use one-hot encoding for categorical features
- Identify and explain the model types or data sets for which one-hot encoding is or is not appropriate.
- Identify scenarios where log scale transformation is appropriate
Model Development (31%)
- Use ML foundations to select the appropriate algorithm for a given model scenario
- Identify methods to mitigate data imbalance in training data
- Compare estimators and transformers
- Develop a training pipeline
- Use Hyperopt's fmin operation to tune a model's hyperparameters
- Perform random or grid search or Bayesian search as a method for tuning hyperparameters.
- Parallelize single node models for hyperparameter tuning
- Describe the benefits and downsides of using cross-validation over a train-validation split.
- Perform cross-validation as a part of model fitting.
- Identify the number of models being trained in conjunction with a grid-search and cross-validation process.
- Use common classification metrics: F1, Log Loss, ROC/AUC, etc
- Use common regression metrics: RMSE, MAE, R-squared, etc.
- Choose the most appropriate metric for a given scenario objective
- Identify the need to exponentiate log-transformed variables before calculating evaluation metrics or interpreting predictions
- Assess the impact of model complexity and the bias variance tradeoff on model performance
Model Deployment (12%)
- Identify the differences and advantages of model serving approaches: batch, realtime, and streaming
- Deploy a custom model to a model endpoint
- Use pandas to perform batch inference
- Identify how streaming inference is performed with Delta Live Tables
- Deploy and query a model for realtime inference
- Split data between endpoints for realtime interference
How to prepare
Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.
These independent practice questions are not actual exam items and do not guarantee a passing result.
Frequently asked questions
What is the exam format?
Proctored examination with multiple-choice and multiple-selection questions; online or test center.
How many questions are on the exam?
Total questions: 48–58; Scored questions: 48; Unscored questions: 0–10; The total includes the scored and unscored questions.
How long is the exam?
90 minutes, including time already allowed for unscored items.
What is the passing score?
Not published. Databricks sets passing scores through statistical analysis and may change them when exams are updated; no numeric threshold or scoring scale is published.
How much does the exam cost?
USD 200 per examination attempt, plus applicable taxes required by local law; no free retakes.
Official sources and references
- Databricks Machine Learning Associate Exam Guide
page 1, Purpose of this Exam Guide
- Databricks Machine Learning Associate Exam Guide
page 3, Section 1
- Databricks Machine Learning Associate Exam Guide
page 4, Section 2
- Databricks Machine Learning Associate Exam Guide
page 4, Section 3
- Databricks Machine Learning Associate Exam Guide
page 5, Section 4
- Databricks Machine Learning Associate Exam Guide
page 2, Number of scored items
- Databricks Machine Learning Associate Exam Guide
page 2, Registration fee
- Databricks Machine Learning Associate Exam Guide
page 2, Time limit
- Databricks Machine Learning Associate Exam Guide
page 2, Delivery method
- Databricks Certification FAQ
Databricks Certifications, Exam Scoring and Results
Confirm current exam arrangements with the exam provider.