Databricks Certified Machine Learning Professional practice questions
Free practice, with shuffled choices and an explanation behind every answer. A little practice, a clearer next step.
Loading your practice…
From the videos
These questions come from the course videos. Information as of November 2026.
Databricks Machine Learning Professional sample questions
10 of the 188 questions, as plain text. Start a session above for shuffled choices, a score and the reason behind every choice.
An on-demand feature function returns no value for a request. What does the model receive in Model Serving?
- NaN
- None
- Zero
- An error, and no prediction
Show the answer
NaN
A missing on demand value reaches the model as NaN online, while batch scoring gives None. “None” is what batch scoring gives, not Model Serving. “Zero” is not filled in for you. And “An error, and no prediction” is wrong, since the request still reaches the model.
In development, how can a data scientist try a pipeline before opening a pull request?
- Run it against the production tables
- Deploy it to the production workspace
- Skip all tests until the staging stage
- Run it on a sample of the data
Show the answer
Run it on a sample of the data
In development, unit tests and runs on samples of data give quick feedback before any pull request. “Run it against the production tables” would risk changing production data. “Deploy it to the production workspace” would skip review and staging. And “Skip all tests until the staging stage” would find simple bugs far too late.
What does the response of an invocation hold?
- A predictions field, one per input row
- A metrics field with the model’s accuracy
- The run id of the training run
- A copy of the model’s input example
Show the answer
A predictions field, one per input row
The response holds a predictions field, with one prediction for each row, in the same order. “A metrics field with the model’s accuracy” is not part of a scoring response. “The run id of the training run” is not part of a scoring response either. And “A copy of the model’s input example” is only stored with the model.
A confusion matrix plot, made with matplotlib, must be attached to the run. Which call fits?
- mlflow.log_figure(fig, "confusion.png")
- mlflow.log_param("confusion", fig)
- mlflow.log_metric("confusion", fig)
- mlflow.set_tag("confusion", fig)
Show the answer
mlflow.log_figure(fig, "confusion.png")
Log figure saves a figure as an image artifact of the run. “mlflow.log_param("confusion", fig)” would only store a short value, not an image. “mlflow.log_metric("confusion", fig)” would only accept a number. And “mlflow.set_tag("confusion", fig)” would only store a short text label.
A time series profile is created on a table with three years of data. What does the first run analyze?
- All three years of data
- Only the data added after creation
- The last full calendar year
- Only the last thirty days
Show the answer
Only the last thirty days
The first run of a time series or inference profile looks back thirty days, and later refreshes process the new data. “All three years of data” is wrong, since the first run only looks back thirty days. “Only the data added after creation” is wrong, since the first run also covers the previous thirty days. And “The last full calendar year” is not the rule, which is thirty days.
The error rate of an endpoint shows more 4xx errors, while 5xx errors stay flat. What is the likely source?
- A crash inside the model
- Malformed requests from a client
- Too little memory on the replicas
- A failed update of the endpoint
Show the answer
Malformed requests from a client
The four hundreds are client errors, like a bad request, while the five hundreds would point to the server. “A crash inside the model” would raise five hundred errors. “Too little memory on the replicas” would also show up as server errors, or as latency. And “A failed update of the endpoint” would leave the old configuration serving.
The fraud model returns a probability, but the checkout needs a decision and a reason code. Where does that conversion belong?
- In load_context, once at startup
- In the predict method of a custom PyFunc
- In the pip_requirements of the model
- In the input example of the model
Show the answer
In the predict method of a custom PyFunc
Predict runs on every request, so it can turn the probability into a decision and a reason, with the same logic everywhere. “In load_context, once at startup” only runs once when the model loads, not for each request. “In the pip_requirements of the model” is a list of packages, with no logic. And “In the input example of the model” is only a sample of the inputs, used for the signature.
Why log the evaluation run even when the champion stays?
- So the challenger is promoted later by itself
- So the team can see why no promotion happened
- To free space in the model registry
- To reset the drift alert
Show the answer
So the team can see why no promotion happened
A logged run keeps both scores and the decision, so the team can review it. “So the challenger is promoted later by itself” is wrong, since nothing promotes it automatically. “To free space in the model registry” is unrelated to logging a run. And “To reset the drift alert” would not change the state of an alert.
Which token does Databricks recommend for a production client that calls an endpoint?
- A personal token of a workspace user
- The password of a service account
- A machine-to-machine OAuth token
- No token, since endpoints are public
Show the answer
A machine-to-machine OAuth token
Databricks recommends machine to machine OAuth tokens for production clients. “A personal token of a workspace user” would tie production to one person. “The password of a service account” is not how clients authenticate to an endpoint. And “No token, since endpoints are public” is wrong, since every call needs authentication.
The number of trees must be an integer between 100 and 1,000. Which call defines it?
- trial.suggest_float("n_trees", 100, 1000)
- trial.suggest_categorical("n_trees", [100, 1000])
- trial.suggest_int("n_trees", 100, 1000)
- study.optimize("n_trees", 100, 1000)
Show the answer
trial.suggest_int("n_trees", 100, 1000)
Suggest int samples whole numbers in a range, which suits a count of trees. “trial.suggest_float("n_trees", 100, 1000)” would sample decimal values, not whole numbers. “trial.suggest_categorical("n_trees", [100, 1000])” would only choose between the two listed values. And “study.optimize("n_trees", 100, 1000)” is not how optimize works, since it runs the objective, and defines no parameter.
Original practice questions written for Cert Espresso, not real exam questions.