Databricks Certified Machine Learning Professional - Databricks-Machine-Learning-Professional Exam Practice Test
Question 1
A Machine Learning Engineer has a computer vision model in Databricks Model Serving that obscures sensitive data from images. Internal teams use the model throughout the work week when they request access to new files. Recently model users complained that the model takes much longer in the morning. This coincides with when people arrive at work and request files for the day. When the engineer reviews the endpoint health metrics, they see P50 model latency peaks around 9AM at 20 seconds. Request rate also peaks at 9AM at 15 requests/second. The GPU utilization is over 60%, GPU memory usage over 50%, and provisioned concurrency at 4 throughout the day. What can the engineer do to reduce user wait time when request rate peaks at 9AM each morning?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 2
A data scientist wants to remove the star_rating column from the Delta table at the location path.
To do this, they need to load in data and drop the star_rating column. Which of the following code blocks accomplishes this task?
To do this, they need to load in data and drop the star_rating column. Which of the following code blocks accomplishes this task?
Correct Answer: D
Question 3
Which MLflow function logs files like plots or datasets?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 4
A machine learning engineer needs to select a deployment strategy for a new machine learning application. The feature values are not available until the time of delivery, and results are needed exceedingly fast for one record at a time. Which of the following deployment strategies can be used to meet these requirements?
Correct Answer: B
Question 5
A Data Scientist is building a product recommendation model that suggests additional items based on a customer's current shopping basket for an online merchant. The model needs to access the real-time basket contents at inference time to avoid recommending items already in the basket. The model will be deployed using Databricks Model Serving. The data scientist now wants to implement real-time feature engineering to incorporate the current basket contents into the model's prediction. Which approach will do this?
Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 6
A machine learning engineer is attempting to create a webhook that will trigger a Databricks Job job_id when a model version for model model transitions into any MLflow Model Registry stage.
They have the following incomplete code block:

Which lines of code can be used to fill in the blank so that the code block accomplishes the task?
They have the following incomplete code block:

Which lines of code can be used to fill in the blank so that the code block accomplishes the task?
Correct Answer: B
Question 7
A machine learning engineer has deployed a model recommender using MLflow Model Serving.
They now want to query the version of that model that is in the Production stage of the MLflow Model Registry. Which of the following model URls can be used to query the described model version?
They now want to query the version of that model that is in the Production stage of the MLflow Model Registry. Which of the following model URls can be used to query the described model version?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 8
A Machine Learning Engineer is considering moving their functions and unit tests from notebooks into separate Python files (e.g., modules and test scripts) to take advantage of the numerous benefits of this approach like automated execution, code reusability, and version control. Which challenge should the engineer consider with this approach?
Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 9
Which of the following is a drawback associated with using Jensen-Shannon (JS) distance for numeric feature drift detection?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 10
Which of the following describes concept drift?
Correct Answer: D
Question 11
A data scientist has developed a model model and computed the RMSE of the model on the test set. They have assigned this value to the variable rmse. They now want to manually store the RMSE value with the MLflow run.
They write the following incomplete code block:

Which of the following lines of code can be used to fill in the blank so the code block can successfully complete the task?
They write the following incomplete code block:

Which of the following lines of code can be used to fill in the blank so the code block can successfully complete the task?
Correct Answer: A
Question 12
A Machine Learning Engineer developed a dynamic pricing model in MLflow that requires values from the company's cloud database to generate predictions. At inference time the PyFunc model uses the cloud provider's Python SDK to retrieve the latest values from the database. The inference code works well in a notebook, but when the engineer deploys the model to Databricks Model Serving, they receive 401 errors saying the user is not authenticated when trying to access the database. The engineer deploys the code via the REST API with the following payload:

Their Databricks administrators store cloud credentials under a Databricks secret scope called
"cloud_creds" with key "db_key". These credentials can be used to authenticate to the cloud provider's SDK.
Which change can the engineer make so the endpoint can authenticate to the remote database while avoiding storing the access tokens in plain text?

Their Databricks administrators store cloud credentials under a Databricks secret scope called
"cloud_creds" with key "db_key". These credentials can be used to authenticate to the cloud provider's SDK.
Which change can the engineer make so the endpoint can authenticate to the remote database while avoiding storing the access tokens in plain text?
Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 13
A Data Scientist is preparing a Spark ML pipeline on a customer dataset with numeric features age, annual_income, and transaction_count, each varying widely. Because the chosen algorithm requires inputs normalized to the [0,1] range, they need to apply the appropriate Spark ML transformer to these features. Which Spark ML transformer should the Data Scientist use to scale all features to the [0,1] range?
Correct Answer: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 14
A machine learning engineer wants to move their model version model_version for the MLflow Model Registry model model from the Staging stage to the Production stage using MLflow Client client. Which of the following code blocks can they use to accomplish the task?
Correct Answer: A

