Exam Information
Free practice questions with explanations
Databricks Databricks-Machine-Learning-Professional Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice MLOps
A retail company runs a champion-challenger setup in Unity Catalog. A data scientist has registered a new model version and wants it promoted to the Champion alias in the prod catalog only after a successful integration test has run in the test environment. The CI pipeline must not hold production credentials for the test workspace, and every promotion must be auditable. Which approach best satisfies these requirements?
Correct Answer: BExplanationUnity Catalog models are promoted across environments by copying registered model versions between catalogs, with the promotion step running where the prod permissions live. A promotion job inside the prod workspace that pulls the approved version from the test catalog and sets the Champion alias keeps credentials scoped and leaves an audit trail in Unity Catalog. Copying from a notebook without a gated trigger skips the test dependency, a cross-workspace call from test to prod would require prod credentials in the test environment, and manual re-registration removes auditability and repeatability.
-
2 Question 2 Order list MLOps
A team needs to add unit tests for a feature engineering function that is defined in a Databricks notebook and reused across training and inference jobs. The tests must run automatically before any model training run in the dev environment. Arrange the steps in the order they must be performed.
Drag the steps into the correct order, or use the arrows.
- Configure the training job to depend on the successful completion of the test job.
- Run the tests from a CI job or a Repos-based notebook before the training job is triggered.
- Move the feature engineering function into a Python module in a Git-backed Repo folder so it can be imported.
- Write pytest unit tests that call the function with small hand-built pandas DataFrames and assert expected outputs.
Correct Answer:- Move the feature engineering function into a Python module in a Git-backed Repo folder so it can be imported.
- Write pytest unit tests that call the function with small hand-built pandas DataFrames and assert expected outputs.
- Run the tests from a CI job or a Repos-based notebook before the training job is triggered.
- Configure the training job to depend on the successful completion of the test job.
ExplanationUnit tests can only import logic that lives outside the notebook, so the function must first be moved into a module under version control. Tests are then written against that module using small deterministic inputs. The test run must be wired into the pipeline, and the training job is made dependent on it so a failing test blocks training. Writing tests before refactoring is impossible because there is nothing importable to test, and gating training before the tests exist would mean the gate has nothing to check.
-
3 Question 3 Single choice MLOps
A healthcare analytics team has a feature pipeline, a training job, a batch evaluation step, and a model-serving endpoint. They want an integration test that runs in the test workspace on every merge and catches breaking changes between stages, including schema drift in the feature table that the training job reads. The test must not promote anything to production. Which design best meets this requirement?
Correct Answer: CExplanationAn integration test should exercise the real chain of feature engineering, training, evaluation, deployment, and inference in the test workspace, with assertions at each boundary so schema drift is caught where it enters. Mocked unit tests cannot reveal interface breakage between stages, and evaluating a production model does not exercise the upstream pipeline at all. Deploying to production with zero traffic violates the requirement that nothing reaches production from this test.
-
4 Question 4 Multiple choice Model Development
A telecom company is building a churn model on 4 billion call-detail records stored in Delta tables. The team uses SparkML for feature transformation and wants to perform distributed hyperparameter tuning with cross-validation while keeping the trial results visible in MLflow. The data scientists want to avoid collecting the training data onto the driver. Which TWO actions are most appropriate? (Choose two.)
Correct Answer: A, BExplanationSparkML's CrossValidator operates on a Pipeline and keeps the data distributed, and MLflow autologging for SparkML records the tuning parent and child runs so trial results remain visible. Converting to pandas with toPandas breaks the requirement to avoid driver-side collection at this scale. Running Optuna on the driver with a SparkML estimator and logging afterwards loses per-trial tracking, and pandas UDFs fitting models without tracking discard the requirement for visible results.
-
5 Question 5 Single choice Model Development
A logistics company trains a SparkML GBTRegressor to estimate delivery times. Predictions are needed hourly for 80 million shipments and stored in a Delta table. A data scientist proposes using a single-node scikit-learn model exported as a pickle and applied with a pandas UDF. The team lead asks which approach is most appropriate for the batch scoring requirement and which constraint decides it. Which answer is best?
Correct Answer: AExplanationA SparkML model transforms Spark DataFrames in parallel across executors, which suits an 80-million-row hourly batch job already sitting in a distributed pipeline. Switching to a single-node model adds a conversion and serialization path without a scaling benefit, and the claim that pandas UDFs are slower across all batch sizes is not the deciding factor here. Loading a model on the driver would bottleneck the scoring of 80 million rows, and hourly batch scoring is not a streaming requirement.
-
6 Question 6 Dropdown Model Development
A bank's data science team is tuning a SparkML logistic regression model for fraud detection with a heavily imbalanced label. They need to evaluate the model using area under the precision-recall curve rather than the default metric, and they want the evaluator to read the probability column that the model produces. Complete the evaluator configuration by selecting the correct value for each blank.
Choose the correct value for each blank.
evaluator = BinaryClassificationEvaluator(labelCol='is_fraud', rawPredictionCol='', metricName='')Correct Answer:evaluator = BinaryClassificationEvaluator(labelCol='is_fraud', rawPredictionCol='rawPrediction', metricName='areaUnderPR')
ExplanationBinaryClassificationEvaluator reads raw scores from rawPredictionCol, and rawPrediction is the column it is designed to consume for both areaUnderROC and areaUnderPR. The metric name areaUnderPR is the precision-recall variant the imbalanced fraud case calls for. Setting the column to prediction would feed hard class labels into a ranking metric, and accuracy and f1 are not metric names this evaluator supports.
-
7 Question 7 Drag and drop Scaling and Tuning
A media company runs distributed hyperparameter tuning for a recommendation model on a Databricks cluster. Their requirements are to parallelize trials across workers with a native Ray integration, to use Optuna's pruning and search algorithms while keeping trial metrics in MLflow, and to scale a per-group forecasting workload using pandas functions across executors. Match each requirement to the approach that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Per-group forecasting fitted independently across Spark executorsParallel hyperparameter trials on a Ray cluster inside DatabricksOptuna search and pruning with per-trial metrics recorded in MLflowapplyInPandas grouped map pandas functionSpark MLlib CrossValidator with a PipelineOptuna study with MLflow tracking for each trialRay Tune integration on a Ray-on-Spark clusterDelta Live Tables expectationsCorrect Answer:- Parallel hyperparameter trials on a Ray cluster inside Databricks → Ray Tune integration on a Ray-on-Spark cluster
- Optuna search and pruning with per-trial metrics recorded in MLflow → Optuna study with MLflow tracking for each trial
- Per-group forecasting fitted independently across Spark executors → applyInPandas grouped map pandas function
ExplanationRay Tune runs distributed trials on a Ray cluster that Databricks can launch on Spark, which is the native route for Ray-based tuning. Optuna's study handles the search and pruning, and logging each trial to MLflow keeps metrics visible. A grouped pandas function such as applyInPandas fits one independent model per group across executors. CrossValidator is a SparkML tuner, not a Ray or Optuna integration, and Delta Live Tables expectations govern data quality rather than model training.
-
8 Question 8 Single choice Model Deployment
A ride-sharing platform serves a fraud scoring model through Databricks Model Serving at 3,000 requests per second. The team plans a rollout of model version 7 over version 6 and wants to limit blast radius, keep the ability to roll back instantly, and avoid running double capacity for long. Which deployment strategy and implementation best fits these constraints?
Correct Answer: DExplanationDatabricks Model Serving supports multiple served entities behind one endpoint with configurable traffic percentages, so a canary rollout exposes version 7 to a small share of the 3,000 requests per second and rolls back by reducing its traffic to zero. Blue-green would require double capacity for the whole cutover, which conflicts with the cost constraint. An in-place update causes downtime, and an offline shadow batch job does not exercise the live serving path or limit blast radius in production.
-
9 Question 9 Order list Model Deployment
A pricing team has packaged a custom PyFunc model that wraps a third-party tokenizer and needs to be served through Databricks Model Serving with governed access. The model must be registered in Unity Catalog and called by applications using the MLflow Deployments SDK. Arrange the steps in the order they must be performed.
Drag the steps into the correct order, or use the arrows.
- Send scoring requests to the endpoint using the MLflow Deployments SDK predict client.
- Grant the application's service principal EXECUTE on the registered model in Unity Catalog.
- Log the PyFunc model with the custom tokenizer artifact and register it to a Unity Catalog model in the target catalog and schema.
- Create a serving endpoint that references the registered model name and version and wait until it reports ready.
Correct Answer:- Log the PyFunc model with the custom tokenizer artifact and register it to a Unity Catalog model in the target catalog and schema.
- Create a serving endpoint that references the registered model name and version and wait until it reports ready.
- Grant the application's service principal EXECUTE on the registered model in Unity Catalog.
- Send scoring requests to the endpoint using the MLflow Deployments SDK predict client.
ExplanationThe model must first be logged with its artifacts and registered in Unity Catalog, since the endpoint references a registered model version. The endpoint is then created and must be ready before it can accept traffic. Access is granted on the Unity Catalog model so the calling identity is authorised, and only then can the SDK issue predictions. Granting access before registration is impossible because the securable does not yet exist, and querying before the endpoint is ready would fail.
-
10 Question 10 Single choice Model Deployment
A genomics lab serves a custom PyFunc model that loads a 6 GB reference index at startup. After deployment, the endpoint shows intermittent request timeouts during the first minutes after a scale-up event, while steady-state latency is acceptable. The team must keep the configuration on managed Model Serving and must not change the model's accuracy. What is the best first action?
Correct Answer: AExplanationThe symptom points to cold-start cost on new containers, which the team can address by reviewing load behaviour and provisioning capacity so new instances are warm before they receive traffic, all within managed serving and without changing accuracy. Moving to batch changes the access pattern the business needs, and dropping the index breaks the accuracy requirement. Pinning a single container removes the ability to scale and does not address the cold start when traffic grows.
-
11 Question 11 Single choice Environment Architectures
A financial services firm must isolate its development, test, and production machine learning environments. Data scientists in development need read access to a masked copy of production data, the test environment must run integration tests against production-like schemas, and production model deployment must be restricted to a CI service principal. Auditors require that no individual user can write to the production catalog directly. Which environment architecture best meets these requirements?
Correct Answer: CExplanationSeparate workspaces paired with separate catalogs give hard isolation, and privileges can be scoped so the CI service principal alone holds write access to production, satisfying the audit requirement. A masked data share feeds development without exposing raw production data. A single workspace with schema-level read access does not isolate environments and leaves more room for accidental writes, and granting MANAGE to developers directly violates the auditors' requirement. Cluster policies control compute, not data write access to catalogs.
-
12 Question 12 Multiple choice Model Development
A marketing analytics team trains a SparkML model on 900 GB of clickstream data and must decide how to scale the workload. Training time is dominated by the shuffle during feature joins, and the team's budget does not allow a single very large node. Which TWO changes are most likely to reduce training time within the budget? (Choose two.)
Correct Answer: B, CExplanationAdding worker nodes adds parallelism for the shuffle stages, and aligning shuffle partitions with the cluster's core count avoids idle cores and oversized tasks, both within a horizontal scaling budget. A single very large node cannot perform the shuffle across 900 GB without spilling, and collapsing a Delta table to one file eliminates read parallelism. Disabling adaptive query execution removes a feature that often helps, rather than reducing shuffle cost.
-
13 Question 13 Dropdown Validation Testing
An insurance company's ML engineers want unit tests for a risk-scoring helper that normalizes premium inputs, stored in a Python module in a Repo. They run the tests from a Databricks notebook in the dev workspace using pytest and need the notebook to import the module from the repository root and fail the job if any test fails. Complete the commands by selecting the correct value for each blank.
Choose the correct value for each blank.
import pytest; import sys; sys.path.append(''); exit_code = pytest.main(['', '-q']); assert exit_code == 0Correct Answer:import pytest; import sys; sys.path.append('/Workspace/Repos/dev/risk-models'); exit_code = pytest.main(['tests/', '-q']); assert exit_code == 0
ExplanationRepos files are available on the driver at their /Workspace/Repos path, so appending that repository root to sys.path makes the helper module importable. Pointing pytest at tests/ collects the unit test directory, and pytest.main returns zero only when everything passes, so the assert fails the job otherwise. A temporary directory holds no code, and DBFS paths are not importable as normal Python paths in this way.
-
14 Question 14 Single choice Model Development
A utility company trains a model in a Databricks notebook and wants a reproducible hyperparameter search. The search space includes learning rate and tree depth, and the team needs the best run identified by validation AUC to be retrievable later from MLflow, even if the job is rerun on a different cluster. Which implementation best meets these requirements?
Correct Answer: BExplanationPersisting the Optuna study in shared storage keeps the search state across reruns and clusters, while logging each trial to an MLflow experiment preserves parameters and AUC for later retrieval. Fixing the seed makes the sampler reproducible. An in-memory study disappears with the driver, an unseeded random search is not reproducible, and recording only a final AUC in a text file loses the trial-level record the team needs.
-
15 Question 15 Single choice MLOps
A logistics company's model lifecycle pipeline moves models from dev to test to prod. A recent incident was caused by a model version that passed unit tests on sample data but failed in production because the inference code assumed a column order the training data no longer had. The team wants the earliest reliable detection at the lowest cost. Which test type and stage should they add?
Correct Answer: CExplanationThe failure came from a interaction between stages, namely training data layout and the inference contract, which only an integration test on production-like data in the test environment surfaces before release. A hand-written fixture in dev reproduces the unit-level assumption that already passed, a production canary detects the problem only after customers are affected, and a monthly manual review is too slow and expensive to be the earliest reliable check.
These are 15 of the 60 questions in the full Databricks-Machine-Learning-Professional pack.
Get All 60 QuestionsGet all 60 questions & answers
Full access options for Databricks Databricks-Machine-Learning-Professional
Self-study
PDF Version
- 60 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
- 60 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
- 60 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-Professional Exam (Databricks Certified Machine Learning Professional) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.