Certified Machine Learning Professional Practice Test

Certified Machine Learning Professional Practice Test practice questions, page 3 of 9, with answer review and explanations.

Question 11

A data scientist is utilizing MLflow to track their machine learning experiments. After completing a series of runs for the experiment with experiment ID exp_id, the data scientist wants to programmatically work with the experiment run data in a Spark DataFrame. They have an active MLflow Client client and an active Spark session spark. Which of the following lines of code can be used to obtain run-level results for exp_id in a Spark DataFrame?

  1. client.list_run_infos(exp_id)
  2. spark.read.format("delta").load(exp_id)
  3. There is no way to programmatically return row-level results from an MLflow Experiment.
  4. mlflow.search_runs(exp_id)
  5. spark.read.format("mlflow-experiment").load(exp_id)

Question 12

A data scientist has developed and logged a scikit-learn random forest model model, and then they ended their Spark session and terminated their cluster. After starting a new cluster, they want to review the feature_importances_ of the original model object. Which of the following lines of code can be used to restore the model object so that feature_importances_ is available?

  1. mlflow.load_model(model_uri)
  2. client.list_artifacts(run_id)["feature-importances.csv"]
  3. mlflow.sklearn.load_model(model_uri)
  4. This can only be viewed in the MLflow Experiments UI
  5. client.pyfunc.load_model(model_uri)

Question 13

Which of the following is a simple statistic to monitor for categorical feature drift?

  1. Mode
  2. None of these
  3. Mode, number of unique values, and percentage of missing values
  4. Percentage of missing values
  5. Number of unique values

Question 14

Which of the following is a probable response to identifying drift in a machine learning application?

  1. None of these responses
  2. Retraining and deploying a model on more recent data
  3. All of these responses
  4. Rebuilding the machine learning application with a new label variable
  5. Sunsetting the machine learning application

Question 15

A data scientist has computed updated feature values for all primary key values stored in the Feature Store table features. In addition, feature values for some new primary key values have also been computed. The updated feature values are stored in the DataFrame features_df. They want to replace all data in features with the newly computed data. Which of the following code blocks can they use to perform this task using the Feature Store Client fs?