Exam Information
Free practice questions with explanations
Databricks Databricks-Machine-Learning-Associate Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 12
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Drag and drop Model Development (weight: 31%)
A data scientist is comparing estimators and transformers while building a model for a retailer that must train on a cluster with limited memory. The team needs each Spark ML component to be used correctly within the pipeline. Match each component to its role.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Logistic regression fitted on training features to learn coefficientsVectorAssembler that combines numeric columns into a single feature vectorImputer that learns the median of each column from training dataTransformer that maps one DataFrame to another without learning parametersEstimator that produces a model when its fit method is calledEstimator that only applies a fixed scaling at transform timeEstimator whose fit method produces a fitted transformerTransformer that learns coefficients from the training labelsCorrect Answer:- Logistic regression fitted on training features to learn coefficients → Estimator that produces a model when its fit method is called
- VectorAssembler that combines numeric columns into a single feature vector → Transformer that maps one DataFrame to another without learning parameters
- Imputer that learns the median of each column from training data → Estimator whose fit method produces a fitted transformer
ExplanationLogistic regression is an estimator because it learns parameters from the labeled training data and returns a model when fit is called. VectorAssembler has no parameters to learn and simply reshapes columns, which makes it a transformer. The Imputer learns medians during fit and returns a fitted transformer that applies them. The distractors invert these roles: transformers do not learn coefficients, and an estimator is defined by learning, not by applying fixed scaling.
-
2 Question 2 Single choice Databricks Machine Learning (weight: 38%)
A data platform team is deciding where to create a feature table that will be used by several data science teams across two Databricks workspaces attached to one Unity Catalog metastore. The team wants governance and lineage to be consistent across workspaces. An engineer proposes creating the table in each workspace's default feature store separately. Which approach is correct, and why?
Correct Answer: AExplanationFeature tables created in Unity Catalog are governed objects in the metastore, so a single table is discoverable and secured across every attached workspace, and lineage is tracked against one canonical asset. Duplicating the table per workspace fragments governance and lets definitions drift between teams. Sharing a notebook does not share data governance, and DBFS workspace storage is not the governed approach for cross-workspace features. The claim that a feature table is readable only by its creating workspace is false for Unity Catalog tables.
-
3 Question 3 Multiple choice Model Deployment (weight: 12%)
A logistics company runs a Delta Live Tables pipeline that ingests shipment events continuously and must score each event with a registered model within seconds of arrival. The architecture must avoid rescoring the full history on each update and must keep scoring logic in a single maintained place. Which TWO implementation choices meet these requirements? (Choose two.)
Correct Answer: D, EExplanationA streaming table in Delta Live Tables reads only new increments from the source, so each event is scored once as it arrives, and a Spark UDF from the registered model applies inference inside that stage. Loading the model by its registry URI during processing picks up the promoted version without hardcoding weights, keeping the logic in one place. The nightly full rescore violates the seconds-latency and no-full-history requirements. Duplicating logic across notebooks breaks single maintenance, and exporting weights to CSV bypasses the registry and its version control.
-
4 Question 4 Single choice Model Development (weight: 31%)
A data scientist is tuning a gradient boosted classifier on a dataset of 2 million rows with 300 features. Each trial takes roughly 40 minutes on a single node. The team has a fixed budget of 60 trial runs, and the search space has continuous and conditional hyperparameters. Hyperopt's fmin is being used with SparkTrials. The lead engineer wants the search to make intelligent use of previous trial results rather than sampling blindly. Which search strategy should the data scientist configure, and what is the most appropriate way to run it?
Correct Answer: BExplanationTree-structured Parzen Estimator (hyperopt.tpe.suggest) builds a probabilistic model from completed trials and proposes promising next points, which suits a small trial budget with conditional spaces. SparkTrials distributes trials across the cluster, and its parallelism parameter should be sized to available workers so that trials run concurrently without starving resources. Random search ignores past results, so it wastes the limited budget. A full grid over continuous and conditional parameters is infeasible to cover within 60 trials. Plain Trials runs sequentially on the driver, which ignores the cluster and the 60-trial timeline.
-
5 Question 5 Drag and drop Databricks Machine Learning (weight: 38%)
A machine learning platform team is standardising feature management across three workspaces that share a single Unity Catalog metastore. Analysts need to reuse customer features in training and serve the same features to low-latency applications. Match each requirement to the feature store capability that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Record which feature table versions and columns a registered model was trained onMake a customer feature table discoverable and governed for all workspaces sharing the metastoreServe feature values with low latency to a real-time application outside the batch training pathPublish the table to an online feature store for low-latency lookupsCreate the feature table in Unity Catalog at the account levelExport the features to a CSV file in cloud object storage nightlyTrain the model with FeatureLookup so lineage is captured in the model artifactStore the features as a Delta table in a single workspace's DBFS pathCorrect Answer:- Make a customer feature table discoverable and governed for all workspaces sharing the metastore → Create the feature table in Unity Catalog at the account level
- Serve feature values with low latency to a real-time application outside the batch training path → Publish the table to an online feature store for low-latency lookups
- Record which feature table versions and columns a registered model was trained on → Train the model with FeatureLookup so lineage is captured in the model artifact
ExplanationUnity Catalog-backed feature tables provide cross-workspace discovery and governance when created at the account level, which is the reason the workspace-scoped DBFS option fails the sharing requirement. Online feature tables serve low-latency point lookups, while offline tables are for batch training, so publishing to an online store is the right match. FeatureLookup in training records the feature table dependencies alongside the logged model, giving lineage. A nightly CSV export breaks lineage and governance and is not a low-latency serving mechanism.
-
6 Question 6 Dropdown Model Deployment (weight: 12%)
A retail company has trained a demand forecasting model and needs to score a 900 GB partitioned Delta table once per night. The results feed a dashboard that refreshes at 06:00, and the job must not keep a serving endpoint running overnight to control cost. The data engineer is writing the batch inference code that loads the registered model from the MLflow Model Registry and applies it to the table. Complete the code by selecting the correct value for each blank.
Choose the correct value for each blank.
import mlflow
model_uri = "models:/retail.forecast.demand/"
score_udf = mlflow.pyfunc.spark_udf(spark, model_uri=model_uri, result_type="double")
preds = spark.read.table("retail.sales.daily").withColumn("forecast", score_udf(*feature_cols))
preds.write.mode("overwrite").option("", "true").saveAsTable("retail.sales.forecasts")Correct Answer:import mlflow
model_uri = "models:/retail.forecast.demand/champion"
score_udf = mlflow.pyfunc.spark_udf(spark, model_uri=model_uri, result_type="double")
preds = spark.read.table("retail.sales.daily").withColumn("forecast", score_udf(*feature_cols))
preds.write.mode("overwrite").option("overwriteSchema", "true").saveAsTable("retail.sales.forecasts")ExplanationThe registry alias champion pins the scoring job to whichever version the team has promoted, which is the current recommended approach over stages. Using a Spark UDF from pyfunc distributes batch scoring across the cluster, suited to a 900 GB table, and no endpoint needs to stay running. overwriteSchema is the Delta option that permits the overwrite to replace the table schema when the forecast column is added. mergeSchema would be used for appends that evolve the schema, not for an overwrite, and checkpointLocation applies to streaming writes rather than this batch save.
-
7 Question 7 Single choice ML Workflows (weight: 19%)
A logistics analyst is preparing a delivery-time dataset in a Spark DataFrame. The column delivery_minutes is strongly right-skewed with a few extreme values from failed deliveries that were rerouted for days. The analyst plans to train a linear regression model, which assumes a roughly symmetric residual distribution, and needs the model to remain robust to the extreme values rather than to be driven by them. Which preprocessing approach is most appropriate, and what should be done first?
Correct Answer: DExplanationRight-skewed durations with a long tail are a classic case for a log transform, which compresses large values and brings the distribution closer to symmetric. Because the extreme values come from failed deliveries rather than measurement noise, the IQR fence removal is a defensible first step, computed before transforming so the fences reflect the raw distribution. A log transform does not remove outliers, so relying on it alone leaves the rerouted records distorting the fit. Replacing values with the mean ignores the skew and still injects synthetic values at the tail. One-hot encoding a continuous target into bins is not an appropriate way to linearise it and discards information.
-
8 Question 8 Multiple choice Databricks Machine Learning (weight: 38%)
A data scientist logs an experiment with MLflow inside a notebook on a Databricks cluster. The team wants to later find the best run from the experiment by a validation metric, register the chosen model in Unity Catalog, and avoid any accidental duplication of model versions when the notebook is rerun. Which TWO actions meet these requirements? (Choose two.)
Correct Answer: B, CExplanationThe MLflow Client API's search_runs supports ordering on a metric, which gives a programmatic and reproducible way to identify the best run. Registering with a three-level catalog.schema.model name targets the Unity Catalog registry, and registering from a run's model URI links the version to its source run. Logging without a stable run identity creates unmanaged duplicate versions, and two-level names resolve to the workspace registry, which conflicts with the Unity Catalog requirement. Choosing the run manually and copying paths is not reproducible and is not the API-based method the requirement asks for.
-
9 Question 9 Order list Model Deployment (weight: 12%)
A healthcare analytics team must serve a custom classification model to a mobile application with p95 latency under 200 milliseconds. The model is already registered in Unity Catalog. Arrange the steps in the correct order to deploy the model to a real-time serving endpoint and verify it responds to requests.
Drag the steps into the correct order, or use the arrows.
- Confirm the request returns predictions and review endpoint metrics for latency against the 200 millisecond target
- Create a model serving endpoint that references the registered model version and its workload configuration
- Wait for the endpoint state to show the configuration is ready before sending traffic
- Send a test scoring request with a sample JSON payload to the endpoint invocation URL
Correct Answer:- Create a model serving endpoint that references the registered model version and its workload configuration
- Wait for the endpoint state to show the configuration is ready before sending traffic
- Send a test scoring request with a sample JSON payload to the endpoint invocation URL
- Confirm the request returns predictions and review endpoint metrics for latency against the 200 millisecond target
ExplanationThe endpoint must be created before anything can be scored, and it references a specific registered model version that is already in Unity Catalog. Creation is followed by waiting for the endpoint to reach a ready state, since requests sent earlier fail. Only then does a test payload go to the invocation URL to confirm the response shape. Checking latency metrics against the 200 millisecond target closes the loop, because verifying one successful response alone does not prove the latency requirement is met.
-
10 Question 10 Single choice Model Development (weight: 31%)
A bank is building a fraud classifier where only 0.4 percent of 5 million transactions are fraudulent. The data scientist is evaluating candidate models in a Spark ML pipeline and must pick the most appropriate metric to compare them. The business states that missing fraud is far more costly than reviewing a legitimate transaction, but reviewers have limited capacity and the precision of flagged cases must be reported to leadership. Which metric should be used as the primary selection criterion?
Correct Answer: AExplanationWith 0.4 percent positives, accuracy is dominated by the majority class and a model that never flags fraud scores above 99 percent, so it cannot be the selection criterion. F1 balances precision, which leadership wants reported, against recall on the fraud class, which the costly-miss concern demands, and it remains informative when positives are rare. ROC AUC is less sensitive to prevalence but can look strong while precision on flagged cases is poor, so it misrepresents reviewer workload. RMSE is a regression metric applied to probabilities and does not reflect the classification trade-off the business describes.
-
11 Question 11 Dropdown Model Development (weight: 31%)
A machine learning engineer is building a training pipeline for a churn model. The pipeline includes an imputer, a string indexer, and a logistic regression estimator. The engineer must make the estimator train only after the transformers have fitted and must ensure the same preprocessing is applied at scoring time. The engineer is writing the pipeline definition in PySpark. Complete the code by selecting the correct value for each blank.
Choose the correct value for each blank.
from pyspark.ml import
pipeline = (stages=[imputer, indexer, lr])
model = pipeline.fit(train_df)
predictions = model.(test_df)Correct Answer:from pyspark.ml import Pipeline
pipeline = Pipeline(stages=[imputer, indexer, lr])
model = pipeline.fit(train_df)
predictions = model.transform(test_df)ExplanationPipeline chains transformers and estimators so that calling fit on the pipeline fits each estimator in stage order and returns a PipelineModel, which bundles the fitted imputer and indexer with the trained model. The fitted PipelineModel's transform method applies the identical preprocessing to new data before scoring, which prevents train-serve skew. CrossValidator tunes parameters rather than chaining stages, and Transformer is an abstract base type not used for construction. fit on the model would attempt to re-estimate parameters on the test set, which is data leakage, and predict_proba is not a Spark ML method.
-
12 Question 12 Single choice ML Workflows (weight: 19%)
A marketing team is preparing a categorical feature preferred_channel with 2,500 distinct values for a gradient boosted tree model in Spark ML. Some values appear only a handful of times. The engineer proposes one-hot encoding every value before training. Constraints: the pipeline must remain under 4 GB of driver memory and the team needs interpretable feature importance. Which action is the best choice?
Correct Answer: BExplanationTree models split on indexed category codes, so a string indexer with rare levels consolidated into an other bucket controls cardinality without the explosion of 2,500 sparse columns that one-hot encoding would create. This keeps memory within the driver limit and gives importance scores over meaningful channel groups. One-hot encoding high-cardinality features is a poor fit here, since it inflates dimensionality and dilutes importance across dummy columns. Dropping the feature discards signal without evidence, and string length is an arbitrary proxy unrelated to the channel's meaning.
These are 12 of the 74 questions in the full Databricks-Machine-Learning-Associate pack.
Get All 74 QuestionsGet all 74 questions & answers
Full access options for Databricks Databricks-Machine-Learning-Associate
Self-study
PDF Version
- 74 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 74 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 74 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the Databricks-Machine-Learning-Associate Exam (Databricks Certified Machine Learning Associate Exam) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.