Databricks Certified-Machine-Learning-Professional

Page:    1 / 12   
Total 60 questions | Updated On: Apr 24, 2024
Question 1

A machine learning engineer wants to log and deploy a model as an MLflow pyfunc model. They have custom preprocessing that needs to be completed on feature variables prior to fitting the model or computing predictions using that model. They decide to wrap this preprocessing in a custom model class ModelWithPreprocess, where the preprocessing is performed when calling fit and when calling predict. They then log the fitted model of the ModelWithPreprocess class as a pyfunc model.

Which of the following is a benefit of this approach when loading the logged pyfunc model for downstream deployment?


Answer: E
Question 2

A machine learning engineer is in the process of implementing a concept drift monitoring solution. They are planning to use the following steps:

1. Deploy a model to production and compute predicted values

2. Obtain the observed (actual) label values

3. _____

4. Run a statistical test to determine if there are changes over time

Which of the following should be completed as Step #3?


Answer: D
Question 3

A machine learning engineer has developed a random forest model using scikit-learn, logged the model using MLflow as random_forest_model, and stored its run ID in the run_id Python variable. They now want to deploy that model by performing batch inference on a Spark DataFrame spark_df.

Which of the following code blocks can they use to create a function called predict that they can use to complete the task?


Answer: D
Question 4

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?


Answer: A
Question 5

Which of the following statements describes streaming with Spark as a model deployment strategy?


Answer: E
Page:    1 / 12   
Total 60 questions | Updated On: Apr 24, 2024

Quickly grab our Certified-Machine-Learning-Professional product now and kickstart your exam preparation today!

Name: Certified Machine Learning Professional
Exam Code: Certified-Machine-Learning-Professional
Certification: Databricks Certified Associate
Vendor: Databricks
Total Questions: 60
Last Updated: Apr 24, 2024