Courseiva
← Back to Databricks Certified Machine Learning Professional questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Databricks Certified Machine Learning Professional practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
Databricks-ML-Pro
exam code
Databricks
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related Databricks-ML-Pro topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1mediummultiple choice
Full question →

Refer to the exhibit. A data scientist is logging their model training process. Which statement accurately describes the storage location of the artifacts referenced in the code snippet?

Exhibit

MLflow.log_param('learning_rate', 0.01)
MLflow.log_metric('accuracy', 0.92)
MLflow.log_artifact('/dbfs/ml/models/weights.pt')
MLflow.log_model(model, 'model_artifact')
Question 2mediummultiple choice
Full question →

Refer to the exhibit. A data scientist is logging a Scikit-Learn model to the MLflow Model Registry. Which benefit does providing the `signature` and `input_example` offer during the deployment phase?

Exhibit

{
  "model_name": "revenue_forecast",
  "framework": "sklearn",
  "input_example": "[10, 50, 0.2]",
  "signature": "input: [float, float, float], output: float",
  "conda_env": "environment.yaml"
}
Question 3hardmultiple choice
Full question →

Refer to the exhibit. A machine learning team has updated their model serving endpoint configuration as shown in the JSON. Which deployment strategy is being implemented, and what is the primary risk associated with this specific configuration?

Exhibit

{
  "served_entities": [
    {
      "name": "churn-model-v1",
      "entity_name": "prod.ml_models.churn_prediction",
      "entity_version": "1",
      "workload_size": "Small",
      "scale_to_zero_enabled": true,
      "traffic_config": {
        "percent": 90
      }
    },
    {
      "name": "churn-model-v2",
      "entity_name": "prod.ml_models.churn_prediction",
      "entity_version": "2",
      "workload_size": "Small",
      "scale_to_zero_enabled": true,
      "traffic_config": {
        "percent": 10
      }
    }
  ]
}
Question 4mediummultiple choice
Full question →

Refer to the exhibit. Your automated CI/CD pipeline triggered a model deployment to production, but the job failed with the error shown. What is the most likely cause?

Exhibit

MLflow Run ID: a1b2c3d4e5f6
Status: FAILED
Error: [Databricks][MLflow] mlflow.exceptions.RestException: RESOURCE_DOES_NOT_EXIST: Model version with name 'customer_churn' and version '5' not found.
Question 5hardmultiple choice
Full question →

Refer to the exhibit. An administrator notices that the cost for this specific endpoint is higher than expected even when there is no traffic. Based on the exhibit, what is the most likely cause of the high idle cost?

Exhibit

GET /serving-endpoints/customer-churn/config
{
  "name": "customer-churn",
  "config": {
    "served_entities": [
      {
        "entity_name": "prod.models.churn",
        "entity_version": "5",
        "scale_to_zero_enabled": false
      }
    ]
  }
}
Question 6mediummultiple choice
Full question →

Refer to the exhibit. If the 'train_model' task fails, what happens to the 'evaluate_model' task in this Databricks Job?

Exhibit

job_config.json:
{
  "tasks": [
    {
      "task_key": "train_model",
      "notebook_task": {
        "notebook_path": "/training"
      }
    },
    {
      "task_key": "evaluate_model",
      "depends_on": [{"task_key": "train_model"}],
      "notebook_task": {
        "notebook_path": "/evaluation"
      }
    }
  ]
}
Question 7mediummultiple choice
Full question →

Refer to the exhibit. A user wants to retrieve the 'accuracy' metric from this run programmatically. Which code snippet correctly accesses this value?

Exhibit

MLflow Run Output:
Run ID: 550e8400-e29b-41d4-a716-446655440000
Status: FINISHED
Parameters: {'learning_rate': '0.01', 'epochs': '50'}
Metrics: {'accuracy': '0.88', 'loss': '0.12'}
Tags: {'mlflow.user': 'databricks_user', 'mlflow.source.name': 'train_script.py'}
Question 8mediummultiple choice
Full question →

Refer to the exhibit. An engineer is configuring a serving endpoint. Based on the configuration provided, what is the impact of the 'auto_scale' flag?

Exhibit

JSON config = {
  "retention_days": 30,
  "environment": "production",
  "auto_scale": true,
  "max_workers": 10
}
Question 9mediummultiple choice
Full question →

Refer to the exhibit. What happens to these logged metrics in MLflow when the training run completes?

Exhibit

MLflow.log_metric('rmse', 0.5)
MLflow.log_metric('rmse', 0.45)
MLflow.log_metric('rmse', 0.4)
Question 10mediummultiple choice
Full question →

Refer to the exhibit. A data scientist is preparing to log a model. What is the primary benefit of including the explicit 'signature' provided in the exhibit during the mlflow.log_model process?

Exhibit

{
  "model_name": "fraud_detection_model",
  "artifact_path": "model",
  "run_id": "d1a2b3c4d5e6f7g8h9i0",
  "signature": {
    "inputs": [{"name": "amount", "type": "double"}, {"name": "user_age", "type": "integer"}],
    "outputs": [{"name": "is_fraud", "type": "boolean"}]
  }
}
Question 11hardmultiple choice
Full question →

Refer to the exhibit. You are loading a model from the registry. What does the 'models:/MyModel/1' URI specifically represent?

Exhibit

MLflow config: mlflow.set_tracking_uri('databricks')
model_uri = 'models:/MyModel/1'
mlflow.pyfunc.load_model(model_uri)
Question 12hardmultiple choice
Full question →

Refer to the exhibit. The deployment pipeline is failing to load the model artifact in the target production environment. What is the most likely cause?

Exhibit

{
  "model": "churn_predictor",
  "run_id": "d7a8e9f0",
  "status": "READY",
  "artifacts": {
    "model_path": "/dbfs/mlflow/models/churn/1",
    "conda_env": "environment.yaml"
  }
}
Question 13hardmultiple choice
Full question →

Refer to the exhibit. A developer wants to ensure the Random Forest model can be used for automated inference at scale. Based on the provided code, what is missing to enable the model to support the 'predict' method within the Databricks Model Serving environment?

Exhibit

import mlflow
from sklearn.ensemble import RandomForestRegressor

# Configure model
model = RandomForestRegressor()

# Training logic
with mlflow.start_run():
    mlflow.sklearn.log_model(model, "model")
    # Further code...
Question 14hardmultiple choice
Full question →

Refer to the exhibit. The JSON configuration represents an existing Databricks Model Serving endpoint. You need to update this endpoint to support a traffic split between version 5 and version 6 for A/B testing. Which update strategy is correct?

Exhibit

{
  "name": "churn-model-endpoint",
  "config": {
    "served_models": [
      {
        "model_name": "churn-model",
        "model_version": "5",
        "workload_size": "Small",
        "scale_to_zero_enabled": true
      }
    ]
  }
}
Question 15mediummultiple choice
Study the full Python automation breakdown →

Refer to the exhibit. An MLOps engineer is reviewing a JSON object representing a model in the Databricks Model Registry. The engineer wants to promote this model to the 'Production' stage using the MLflow Python API. Which command is correct?

Exhibit

{
  "model_name": "revenue_forecast",
  "version": "5",
  "stage": "Staging",
  "tags": {
    "validation_status": "pending",
    "team": "finance"
  }
}

These Databricks-ML-Pro practice questions are part of Courseiva's free Databricks certification practice question bank. Courseiva provides original exam-style Databricks-ML-Pro questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.