databricks Machine Learning Associate · Practice questions

Section 4: Model Deployment Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

Which component should trigger an alert when a monitored metric, such as drift on a key feature, exceeds a threshold?

  1. A SQL alert on the drift metrics table — Correct
  2. A Git commit hook
  3. A Unity Catalog grant
  4. A cluster policy

Correct answer

A SQL alert on the drift metrics table

Explanation

Monitor metric tables can be queried by alerts that notify teams or start jobs.

Question 2

Which Databricks capability detects drift in features and predictions of an inference table over time?

  1. Data profiling with an inference profile — Correct
  2. Git folders
  3. The SQL warehouse query history
  4. Unity Catalog lineage

Correct answer

Data profiling with an inference profile

Explanation

Data profiling computes profile and drift metrics over time for tables, including inference tables.

Question 3

A real-time model serving endpoint needs user features with low-latency lookups. What should be set up?

  1. Copy the features into the model's artifact folder before deployment
  2. Publish the feature table to an online feature store — Correct
  3. Use fe.score_batch on each incoming request
  4. Query the offline Delta feature table from the endpoint with a SQL warehouse for each request

Correct answer

Publish the feature table to an online feature store

Explanation

Online stores provide low-latency feature lookup for served models logged with feature metadata.

Question 4

Which statement about inference tables for a Model Serving endpoint is correct?

  1. They replace the model registry
  2. They store the model's training data
  3. They are only available for batch inference
  4. They log requests and responses to a Delta table — Correct

Correct answer

They log requests and responses to a Delta table

Explanation

Inference tables capture payloads, which can be joined with labels and monitored.

Question 5

A model is deployed as batch inference with spark_udf. Which statement is correct?

  1. The model runs only on the driver
  2. Executors load the model and score partitions in parallel — Correct
  3. Predictions are computed by the SQL warehouse
  4. The model must be converted to SQL first

Correct answer

Executors load the model and score partitions in parallel

Explanation

spark_udf distributes model inference across executors.

Question 6

A custom model needs preprocessing logic not supported by built-in flavors. How can it be deployed to Model Serving?

  1. Upload a Docker image directly to Unity Catalog
  2. Custom models cannot be served
  3. Wrap it in a custom pyfunc PythonModel and serve it — Correct
  4. Write the logic in a SQL alert

Correct answer

Wrap it in a custom pyfunc PythonModel and serve it

Explanation

Custom pyfunc models wrap arbitrary Python logic and are served like other MLflow models.

Question 7

A team wants 10% of production traffic sent to a challenger model and 90% to the champion on the same endpoint. What should be configured?

  1. Create two endpoints and ask clients to pick randomly
  2. Serve both on one endpoint with a 90/10 split — Correct
  3. Use batch inference for the challenger only
  4. Register both versions under one alias

Correct answer

Serve both on one endpoint with a 90/10 split

Explanation

Endpoints can serve multiple served entities with configurable traffic percentages for A/B testing or canary releases.

Question 8

A monitor shows that the distribution of the feature income shifted significantly in the last two weeks, but labels are not yet available. What is the best next step?

  1. Delete the monitor
  2. Ignore it, because drift never affects performance
  3. Investigate the cause and assess retraining once labels arrive — Correct
  4. Immediately roll back to a model trained five years ago

Correct answer

Investigate the cause and assess retraining once labels arrive

Explanation

Drift is a signal to investigate; performance should be confirmed with labels before retraining or rollback decisions.

Question 9

Which statement about Model Serving endpoint permissions is correct?

  1. Endpoint permissions such as CAN QUERY — Correct
  2. Anyone with SELECT on a table can query any endpoint
  3. Endpoints cannot be secured
  4. Endpoints are public by default

Correct answer

Endpoint permissions such as CAN QUERY

Explanation

Endpoints have their own access control lists.

Question 10

A payment app must score each transaction for fraud within 100 ms while the customer waits. Which deployment approach fits?

  1. Manual scoring in a notebook
  2. Real-time Model Serving — Correct
  3. Nightly batch scoring
  4. Weekly streaming job

Correct answer

Real-time Model Serving

Explanation

Low-latency, per-request predictions require real-time serving.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz