Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Certified Machine Learning Professional

Practice questions for the Certified Machine Learning Professional certification exam.

4.9★★★★★(372 ratings)
12,662 studentsAdvanced
This course covers everything you need to pass the Certified Machine Learning Professional (CERTIFIED-MACHINE-LEARNING-PROFESSIONAL) exam. Each part of this course contains real exam questions taken from the actual exam pool, with hint answers to guide your study. Practice with these questions to build confidence and master the topics needed for certification success.

What you'll learn

  • Master the core concepts for CERTIFIED-MACHINE-LEARNING-PROFESSIONAL certification
  • Practice with real exam-style questions
  • Understand platform services and architectures covered in CERTIFIED-MACHINE-LEARNING-PROFESSIONAL
  • Build confidence through timed practice exams
  • Learn from detailed hint answers and explanations
  • Pass the official CERTIFIED-MACHINE-LEARNING-PROFESSIONAL certification exam on your first try

CERTIFIED-MACHINE-LEARNING-PROFESSIONAL

Lectures2
Questions108
Duration30 week
Students12,662

$20.00

Full Free Question Bank (108 Questions)

Certified Machine Learning Professional (CERTIFIED-MACHINE-LEARNING-PROFESSIONAL) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer must implement a simple solution, using as little code as possible, to monitor a regression model and ensure that the R2 score does not exceed a specified threshold. If that threshold is exceeded, the solution must send an email to a distribution list. Which proposed solution satisfies these requirements?

AConfigure Lakehouse Monitoring using the Inference profile type. Create a SQL Alert that runs on a schedule and evaluates if the R2 score in the profile table exceeds the threshold. If so, the Alert should send an email to the configured email notification destination.
BConfigure Lakehouse Monitoring using the Inference profile type. Create a SQL Query that runs on a schedule and evaluates if the R2 score in the profile table exceeds the threshold. If so, the Alert should send an email to the configured email notification destination.
CConfigure Lakehouse Monitoring using the Inference profile type. Create a Workflow that runs on a schedule and executes a SQL query that evaluates the R2 score in the profile table. Use Workflow If/Else condition to execute a Notebook Task that sends the email if the R2 score threshold is exceeded.
DCreate a Workflow that runs on a schedule. The Workflow executes a SQL Query that calculates the R2 score. Use Workflow If/Else condition to execute a Notebook Task that sends the email if the R2 score threshold is exceeded.
Question #2Part 1Environment Architectures

A Machine Learning Engineer is configuring a cluster for a deep learning training run, with several settings to select. The cluster will be reused by other engineers on the team, and their datasets range in size from hundreds of MBs to hundreds of GBs. They must select a configuration that supports performant, stable deep learning training without excessive cost. Which configuration accomplishes this?

AUsing ML Runtime, use a moderate sized GPU VM for the driver and a variable number of memory optimized CPU VMs for the workers with autoscale enabled
BUsing ML Runtime, use a large single node, GPU-enabled VM with auto termination set to 20 minutes to reduce costs
CUsing ML Runtime, use a moderately sized CPU VM for the driver and a variable number of GPU enabled VMs for the workers with autoscale enabled
DUsing Databricks Runtime, use a moderately sized CPU VM for the driver and a variable number of GPU enabled VMs for the workers with autoscale enabled
Question #3Part 1Advanced MLflow Usage

A machine learning engineer is migrating a machine learning pipeline to Databricks Machine Learning. The pipeline must automatically refresh its model whenever it runs. The project is attached to the existing model_name model in the MLflow Model Registry. They use the following code block as part of their solution: ![Question Image](https://cdn.examcademy.com/images/questions/1783916640074-gyknzaxd.png) Which statement explains the effect of the registered_model_name=model_name parameter and argument, given that model_name already exists in the MLflow Model Registry?

AIt identifies the name of the logged model in the MLflow Experiment.
BIt avoids the need to specify the model name in the subsequent required call to mflow.register_model.
CIt registers the new version of the model_name model in the MLflow Model Registry.
DIt registers a new model called model_name in the MLflow Model Registry.
Question #4Part 1Model Lifecycle Management

A machine learning engineer has created a webhook using the following code block: ![Question Image](https://cdn.examcademy.com/images/questions/1785600362278-fz4nsp5n.png) Which of the following code blocks will cause this webhook to run the associated job?

A![](https://cdn.examcademy.com/images/questions/1785600364660-1ws875c4.png)
B![](https://cdn.examcademy.com/images/questions/1785600367600-dhyrxsl6.png)
C![](https://cdn.examcademy.com/images/questions/1785600370032-0p13gejz.png)
D![](https://cdn.examcademy.com/images/questions/1785600372258-a9wf1p5s.png)
E![](https://cdn.examcademy.com/images/questions/1785600374521-s6rp1g69.png)
Question #5Part 1Model Lifecycle Management

Which of the following lists all model stages available in the MLflow Model Registry?

ADevelopment, Staging, Production
BNone, Staging, Production
CStaging, Production, Archived
DNone, Staging, Production, Archived
EDevelopment, Staging, Production, Archived
Question #6Part 1Using Spark ML

A Data Scientist is creating a pipeline to train multiple machine-learning models. They have a dataframe containing a group column, many feature columns, and one label column. Their requirements are: - An independent model for each group - Direct use of the data in the columns without transformation - Flexibility to select from many different model types - Efficient distributed-computing capabilities They are deciding between the pyspark.ml library and pandas UDFs through groupby().ApplyInPandas() to train the models. They choose the groupBy().ApplyInPandas() approach. What is a valid reason for this choice?

AgroupBy().ApplyInPandas() can encapsulate training models using a variety of python packages such as sklearn and PyTorch.
BA function used with groupBy().ApplyInPandas() can return any python object, including custom model objects.
Cpyspark.ml models can have features defined as multiple input columns from a dataframe without transformation.
DThe groupby().ApplyInPandas()strategy can handle arbitrarily large data in each group for the same worker node size due to its distribution strategy.
Question #7Part 1Advanced MLflow Usage

A data scientist has developed a model and calculated the model's RMSE on the test set. They assigned this value to thermsevariable. They now want to manually log the RMSE value in the MLflow run. They write the following incomplete code block: Which of the following lines of code can fill the blank so that the code block successfully completes the task?

Alog_artifact
Blog_model
Clog_metric
Dlog_param
EThere is no way to store values like this.
Question #8Part 1Validation Testing

A Machine Learning Engineer has defined a model with Python notebooks in a Databricks Git folder and wants to add unit tests to their CI/CD workflow. They need a workflow that is highly automated and straightforward to maintain. Which strategy should they use?

AUse the %sh and -m shell commands to call the unit test module inside the notebook.
BUse the web terminal to run unit tests in the source code before each commit.
CUse Databricks GitHub Actions to run notebook tests before each commit.
DUse the %run magic command to call the unit test module from another notebook.
Question #9Part 1Custom Model Serving

A Data Scientist created a sales-forecasting sales-prediction model. The model is deployed to a model-serving endpoint with a schema. They need to call this model from Python and would prefer an SDK function to submit the request. Which method meets these requirements?

AImport the MLflow Deployments class and use the predict method and provide the endpoint and input parameters.
BUse the built in ai_query function and provide the endpoints and request parameters.
CImport the MLflow Deployments class and use the ai_query method and provide the endpoints and request parameters.
DMake an API request to the MODEL_VERSION_URI and provide the dataframe_split as the request parameter.
Question #10Part 1Validation Testing

A team is developing a machine learning pipeline that includes feature engineering, model training, model evaluation, and model deployment. During the last year, the project has grown substantially, with multiple contributors working on it. They currently test their pipelines and functions manually, but they want to establish an MLOps process and organize their unit tests. Which approach should they use to organize functions and unit tests?

AOrganize functions and unit tests together in multiple notebooks, grouping them by feature or component.
BWrite unit tests only after deployment to avoid slowing down development.
CPlace all functions and their corresponding unit tests in a single notebook or script.
DSeparate functions into dedicated modules and place all unit tests in a separate test suite or notebook.
Question #11Part 1Using Spark ML

A Machine Learning Engineer is working with a Spark DataFrame that contains 100 million retail-transaction rows across thousands of stores. Each store needs its own demand-forecasting model, using the same scikit-learn pipeline. The engineer wants to train and apply these models in parallel for every store without collecting the data to the driver. Which approach accomplishes this?

AUse rdd.mapPartitions() to iterate through each store and apply the model logic in Python.
BUse groupBy("store_id").applyInPandas() to train and apply the model per group using a Pandas UDF.
CUse pyspark.pandas to call .groupby("store_id").apply() and train the model on each group.
DConvert the DataFrame to a Pandas DataFrame using .toPandas() and loop through each store locally.
Question #12Part 1Deployment Strategies

A Machine Learning Engineer requires a continuous deployment pipeline for models hosted on Databricks Model Serving. The deployment automation must run after a model is trained and registered with MLflow. Its objective is to deploy the latest model version from the MLflow Model Registry only when the model can satisfy the company’s strict latency requirement (P95 < 300ms) while handling production traffic. How can the engineer confirm that new models satisfy the latency requirement when they are served in production?

AA/B test the latest model with Databricks Model Serving so that the latest model receives 5% of production traffic and the current model receives the rest. Use inference tables to calculate P95 latency and verify it is less than 300ms.
BServe the latest model on Databricks Model Serving and use a load testing client to generate requests at the production request rate. Use the load testing client to calculate P95 latency and verify it is less than 300ms.
CUse the MLflow Get Run API to retrieve the model metrics from MLflow Tracking and verify that the model_latency metric is less than 300ms.
DUse the MLflow Get Run API to retrieve the model metrics from MLflow Tracking and verify that the inference_latency metric is less than 300ms.
Question #13Part 1Custom Model Serving

A machine learning engineer wants to log and deploy a model as an MLflow pyfunc model. They have custom preprocessing that must be performed on feature variables before fitting the model or generating predictions with it. They choose to wrap this preprocessing in a custom model class, ModelWithPreprocess, where preprocessing occurs when fit and predict are called. They then log the fitted ModelWithPreprocess model as a pyfunc model. Which of the following is a benefit of this approach when the logged pyfunc model is loaded for downstream deployment?

AThe pyfunc model can be used to deploy models in a parallelizable fashion
BThe same preprocessing logic will automatically be applied when calling fit
CThe same preprocessing logic will automatically be applied when calling predict
DThis approach has no impact when loading the logged pyfunc model for downstream deployment
EThere is no longer a need for pipeline-like machine learning objects
Question #14Part 1Drift Detection and Lakehouse Monitoring

Which of the following statements defines label drift?

ALabel drift is when there is a change in the distribution of the predicted target given by the model
BNone of these describe label drift
CLabel drift is when there is a change in the distribution of an input variable
DLabel drift is when there is a change in the relationship between input variables and target variables
ELabel drift is when there is a change in the distribution of a target variable
Question #15Part 1Advanced MLflow Usage

A Data Scientist is training machine-learning models in a notebook and must track varying parameters, a key performance metric named team_metric, and a summary graphic using MLflow. They find that tracking is not working as expected and review their logging code. For the logging portion of their code, they have: ![Question Image](https://cdn.examcademy.com/images/questions/1783919316795-dbhvhjns.png) Why is the code not logging according to their requirements?

Alog_artifact is only possible for raw data not files.
BThey needed to use mlflow.log_metrics for the metrics_dict instead of mlflow.log_params for metrics to be displayed in the UI metrics tab.
Clog_artifact requires a path to a directory, not a file, so nothing was tracked for the image.
DSklearn-flavor MLflow models do not support metric tracking.
Question #16Part 1Drift Detection and Lakehouse Monitoring

A machine learning engineer has implemented numeric-drift monitoring by examining trends in the summary statistics of input variables. However, the engineer’s stakeholders want a more robust monitoring solution. Which of the following can provide a more robust drift-monitoring solution for numeric feature variables?

ANone of these can provide more robust drift monitoring than summary statistics
BStatistical tests
COversampling
DCorrelations
Question #17Part 1Drift Detection and Lakehouse Monitoring

A Data Scientist must build a sales-forecasting model that predicts each store’s sales monthly. They have been asked to configure Lakehouse Monitoring so the model can be assessed daily for potential accuracy metrics, such as RMSE. To do this, they will first configure Lakehouse Monitoring with the Inference profile type. What is the next step in this process?

ASet the problem type to Classification and ensure that Change Data Feed is configured on the monitored tables.
BSet the problem type to Regression and appropriately set the Label Column, Prediction Column, and Model ID Column.
CSet the problem type to Regression and set the Baseline Table.
DSet the problem type to Classification and set the Baseline Table.
Question #18Part 1Advanced MLflow Usage

A machine learning engineer needs to view all active MLflow Model Registry Webhooks for a particular model. They are using this code block: ![Question Image](https://cdn.examcademy.com/images/questions/1783860677266-bqwo5dx5.png) Which change must the machine learning engineer make to this code block for it to successfully complete the task?

AThere are no necessary changes
BReplace list with view in the endpoint URL
CReplace POST with GET in the call to http_request
DReplace list with webhooks in the endpoint URL
EReplace POST with PUT in the call to http_request
Question #19Part 1Advanced MLflow Usage

A machine learning engineer is migrating a machine learning pipeline to use Databricks Machine Learning. They have programmatically identified the best run from an MLflow Experiment and saved its URI in the model_uri variable and its Run ID in the run_id variable. They have also established that the model was logged under the name "model". The machine learning engineer now wants to register that model in the MLflow Model Registry with the name "best_model". Which of the following code lines can they use to register the model in the MLflow Model Registry?

Amlflow.register_model(model_uri, "best_model")
Bmlflow.register_model(run_id, "best_model")
Cmlflow.register_model(f"runs:/{run_id}/best_model", "model")
Dmlflow.register_model(model_uri, "model")
Emlflow.register_model(f"runs:/{run_id}/model")
Question #20Part 1Advanced Feature Store Concepts

Which of the following Feature Store Clientfsoperations can return a Spark DataFrame for a data set associated with a Feature Store table?

Afs.create_table
Bfs.write_table
Cfs.get_table
DThere is no way to accomplish this task with fs
Efs.read_table
Question #21Part 1Scaling and Tuning

A Machine Learning Engineer is training a large-scale gradient-boosting model with SparkML on a cluster of machines. After several iterations, the training job fails because memory overflows on one executor node. Cluster resources are limited to executor nodes that each have 16 CPU cores and 64 GB of RAM. The engineer wants to continue model training without changing hyperparameters or reducing the dataset size. They understand Spark’s architecture well and want to leverage its advantages. Which approach will enable the Machine Learning Engineer to resolve this issue?

AIncrease the number of executor nodes and replicate the entire model on each node, then implement data parallelism to train on different mini-batches simultaneously.
BIncrease the number of executor nodes and implement data parallelism by partitioning the dataset across executors so each node trains the model on a subset of data.
CIncrease the number of executor nodes and replicate the entire model on each node, then apply model parallelism to train different parts of the model in parallel.
DIncrease the number of executor nodes and implement model parallelism by splitting the gradient boosting model across executors so each node trains a part of the model.
Question #22Part 1Custom Model Serving

A Machine Learning Engineer is developing a script to score a large batch of customer data with a SparkML RandomForestClassificationModel registered in Unity Catalog. They want to follow commonly accepted coding best practices for this model. Which approach best meets their needs?

ALoad the model using MLflow’s mlflow.spark.load_model method, then perform batch predictions with RandomForestClassificationModel.transform().
BProvide the URI of the registered Unity Catalog model to Spark’s DataFrame predict method to perform batch predictions.
CLoad the model using MLflow’s mlflow.pyfunc.spark_udf method, then perform batch predictions with RandomForestClassificationModel.transform().
DProvide the URI of the registered Unity Catalog model to the Databricks ai_query function to perform batch predictions.
Question #23Part 1Advanced MLflow Usage

A data scientist needs to track runs for a random forest model. Across each run, the scientist changes the number of trees and the maximum tree depth in the forest. They write the following code: Which Python object type mustparamsbe an instance of?

Aarray
BPySpark DataFrarne
Cdict
Dlist
Question #24Part 1Scaling and Tuning

A Data Scientist is building a fraud-detection model with a massive, imbalanced dataset of more than 100 terabytes. They selected SparkML’s Logistic Regression and must optimize its hyperparameters. Because of the dataset’s size and the need for robust evaluation, they are evaluating strategies for hyperparameter tuning and model selection within the Spark ecosystem. They require the most computationally and time-efficient method to tune the SparkML Logistic Regression model and assess its performance. Which approach accomplishes this?

AImplementing a custom grid search using nested loops in PySpark, training the model on the full dataset for each combination, and evaluating with MulticlassClassificationEvaluator.
BUtilizing SparkML’s CrossValidator with a ParamGridBuilder and a BinaryClassificationEvaluator for distributed processing.
CExporting the dataset to a single machine, converting it to a Pandas DataFrame, and then using scikit-learn’s GridSearchCV for hyperparameter tuning and evaluation.
DManually trying different hyperparameter combinations and evaluating the model using BinaryClassificationEvaluator on a small, local sample of the data.
Question #25Part 1Using Spark ML

A machine learning engineer needs to load data from the first version of a Delta table at a location path. Which of the following code lines can be used to complete this task?

Aspark.read.format("delta").option("version", 0).load(path)
Bspark.read.format("delta").option("versionAsOf", 0).load(path)
Cspark.read.format("delta").option("versionAsOf", 1).load(path)
Dspark.read.format("delta").option("version", 1).load(path)
Question #26Part 1Deployment Strategies

Which tool can support real-time deployments by packaging software together with its own application, tools, and libraries?

AClick
BStructured Streaming
CDocker
DFlask
Question #27Part 1Drift Detection and Lakehouse Monitoring

A machine learning engineer is monitoring categorical input variables in a production machine learning application. The engineer suspects that, for one particular value in a categorical input variable, missing values are becoming more common in more recent data. Which of the following tools can the machine learning engineer use to evaluate this theory?

AKolmogorov-Smirnov (KS) test
BOne-way Chi-squared Test
CTwo-way Chi-squared Test
DJenson-Shannon distance
ENone of these
Question #28Part 1Custom Model Serving

A Machine Learning Engineer is using Databricks Asset Bundles (DABs) to configure a model serving endpoint. Which two parameters can be configured?

Amax provisioned concurrency
Benvironment variables
Cmax latency
DCPU type
Etimeout duration
Question #29Part 1Custom Model Serving

A Data Scientist is developing a product-recommendation model for an online merchant that proposes additional items from a customer’s current shopping basket. To prevent recommending items already in the basket, the model must access the real-time basket contents during inference. The model will be deployed with Databricks Model Serving. The data scientist now needs to implement real-time feature engineering so that the current basket contents are incorporated into the model’s prediction. Which approach accomplishes this?

ACreate a custom pyfunc model that processes the basket contents as part of the model’s predict() method.
BWrite basket data to a feature table and publish to the online store for low-latency access.
CStore basket data in a Delta table and configure automatic feature lookup during model serving.
DImplement feature preprocessing in a separate microservice that feeds the model serving endpoint.
Question #30Part 1Scaling and Tuning

A Data Scientist uses Spark ML to train a model that detects fraudulent transactions (1: fraudulent, 0: non-fraudulent). To maximize the model’s overall AUC (ROC) score, the Data Scientist wants to tune hyperparameters for a Random Forest classifier. Because of budget limitations, the tuning must be completed efficiently to prevent excessive compute costs. Which approach meets these requirements?

A![](https://cdn.examcademy.com/images/questions/1785604126945-8vj2iqzm.png)
B![](https://cdn.examcademy.com/images/questions/1785604129148-1h3my9ey.png)
C![](https://cdn.examcademy.com/images/questions/1785604131454-5aasmv2p.png)
D![](https://cdn.examcademy.com/images/questions/1785604135192-ulgedfuk.png)
Question #31Part 1Validation Testing

A Machine Learning Engineer has trained a credit-scoring model and must assess fairness metrics across distinct customer segments while retaining different levels of granularity for business reporting. They need to calculate metrics such as precision, recall, and demographic parity at the individual-feature level (credit_score_range, income_bracket) and for intersectional slices (feature combinations). The model outputs reside in a Delta table containing prediction probabilities and actual default labels. The engineer wants to systematically assess model performance across these feature slices and granularities. Which approach accomplishes this?

ACreate Lakehouse Monitoring with slicing expressions for individual features and intersection conditions.
BImplement custom MLflow evaluation functions that iterate through all possible feature combinations.
CUse Unity Catalog metric views with dimensions defined for each feature and measures for the fairness metrics.
DBuild separate Spark DataFrames for each slice and compute metrics using standard DataFrame operations.
Question #32Part 1Deployment Strategies

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

AThe inference of batch processed records as soon as a trigger is hit
BThe inference of all types of records in real-time
CThe inference of batch processed records as soon as a Spark job is run
DThe inference of incrementally processed records as soon as trigger is hit
EThe inference of incrementally processed records as soon as a Spark job is run
Question #33Part 1Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer needs to track the quality and stability of a machine learning model’s predictions over time. They have a Delta table, retail_inference_log, that stores each model prediction together with input features, a timestamp, and, when available, the true label. They must detect data drift and monitor model-performance trends with Databricks Lakehouse Monitoring, ensuring alerts are triggered when the prediction or input-feature distribution changes significantly. Which approach will configure monitoring for this use case?

ACreate a monitor with the Inference profile on the retail_inference_log table, specifying the timestamp column and the columns for model inputs, predictions, and labels. Configure the monitor to compute drift and performance metrics over time windows.
BCreate a monitor with the Inference profile on the retail_inference_log table, and specify a recent batch of production data as the baseline table for drift detection. Use this recent production data to compare against new data for drift and performance monitoring.
CCreate a monitor with the Snapshot profile on the retail_inference_log table, so that metrics are calculated over the entire table each time the monitor runs and therefore is able to compare new values with previous ones to compute data drift.
DCreate a monitor with the Time Series profile on the retail_inference_log table, specifying the timestamp column and including model input, prediction columns and the true label column. This will track drift in features and predictions over time, and model performance could also be tracked using a custom metric.
Question #34Part 1Advanced Feature Store Concepts

A machine learning engineer developed a model and registered it by using the FeatureStoreClient fs. The model has the model URI model_uri. The engineer now must run batch inference on the training set logged with the model, but some feature values in the spend column have since changed and are present in the customer-level Spark DataFrame spark_df. The customer_id column is the primary key of both spark_df and the training set used to train and log the model. Which code block can compute predictions for the training set while replacing its previous spend values with the new values from spark_df?

Afs.score_batch(model_uri, spark_df)
Bfs.score_model(model_uri, spark_df)
Cdf = fs.get_updated_feature(spark_df, model=uri)fs.score_batch(model_uri, df)
Ddf = fs.get_updated_features(spark_df)fs.score_batch(model_uri, df)
Question #35Part 1Custom Model Serving

A Machine Learning Engineer must deploy a custom model with Databricks Model Serving. The model needs an external tokenizer file (such as a vocabulary or pre-trained tokenizer) to work correctly. They must ensure that this tokenizer file is included with the model so it is available while the model is being served. How should the tokenizer file be packaged as part of the model deployment?

AInclude tokenizer file as part of the model’s software dependencies by adding it to the conda_env specification.
BUse the code_paths parameter in mlflow.pyfunc.log_model() to include the tokenizer file, assuming it’s part of the custom Python logic needed by the model.
CAccess the tokenizer file directly from Volumes at model inference time, which requires pre-provisioning access to the Volume for every model serving endpoint.
DUse the artifacts parameter in mlflow.pyfunc.log_model() to package the tokenizer file, referencing its path in Volumes.
Question #36Part 1Advanced Feature Store Concepts

A machine learning engineer developed a model and registered it by using the FeatureStoreClient fs. The model has model URI model_uri. The engineer must now run batch inference on the customer-level Spark DataFrame spark_df, but it lacks several static features that were used to train the model. The customer_id column is the primary key of spark_df and of the training set used to train and log the model. Which code block can compute predictions for spark_df when the missing feature values can be located in the Feature Store by searching for features using customer_id?

Adf = fs.get_missing_features(spark_df, model_uri)fs.score_model(model_uri, df)
Bfs.score_model(model_uri, spark_df)
Cdf = fs.get_missing_features(spark_df, model_uri)fs.score_batch(model_uri, df)
Ddf = fs.get_missing_features(spark_df)fs.score_batch(model_uri, df)
Efs.score_batch(model_uri, spark_df)
Question #37Part 1Advanced Feature Store Concepts

A Machine Learning Engineer is developing a fraud-detection model that must use both precomputed features from a feature table and real-time calculated features based on user-location data provided with every inference request. The engineer created a Python UDF named calculate_distance in Unity Catalog at main.fraud_detection.calculate_distance, which calculates the distance between a transaction location and the user's current location. The feature table main.fraud_detection.user_features stores historical user-spending patterns and has the primary key user_id. The engineer has written the following code to implement this scenario: ![Question Image](https://cdn.examcademy.com/images/questions/1783916626435-h1pzch5y.png) Which benefit of this implementation approach makes it appropriate for the real-time fraud-detection use case?

AThe Unity Catalog registry automatically creates REST API endpoints for UDF functions used in feature computation.
BThe FeatureLookup function avoids the need for joining the full table main.fraud_detection.user_features with training_set increasing efficiency.
CThe model automatically performs feature lookup and computation during inference without additional serving code.
DThe FeatureFunction caches computed distance values in the online store to improve inference latency for location pairs.
Question #38Part 1Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer has deployed a classification fraud-detection model with inference tables enabled. The model categorizes credit-card transactions as “fraud” or “legitimate”. The inference table includes a merchant_category feature containing four-digit codes that categorize businesses by the goods or services they offer. After configuring a Lakehouse Monitor with an Inference Log profile, they observe two important monitoring results: 1. Overall model accuracy remains constant at 92%. 2. Drift metrics indicate that the merchant_category feature has significant drift during the past month. The engineer wants to determine whether this feature drift is making the model perform worse specifically at fraud detection, rather than affecting only overall performance. Which Lakehouse Monitor metrics should they examine to make this determination?

ACheck the overall accuracy metric in the profile metrics table and compare js_distance values for merchant_category in the drift metrics table.
BLook at precision and recall for the “fraud” class in the profile metrics table, and examine the ks_test_p_value for merchant_category in the drift metrics table.
CAnalyze mean_prediction_probability across all classes in the profile metrics table and cross-reference with wasserstein_distance for merchant_category.
DReview prediction_count trends in the profile metrics table and validate using chi_square_test_p_value for merchant_category in the drift metrics table.
Question #39Part 1Deployment Strategies

A Machine Learning Engineer is designing a model-deployment pattern for their entire company. Because the datasets are sensitive, data scientists cannot access production data in the prod catalog. Instead, they perform development work against a downsampled, desensitized dev catalog. At present, models trained against the dev catalog are deployed directly to production. Recently, a data scientist compared the model’s training metrics with production metrics and observed a substantial decline in production performance. Which deployment-process change will minimize the difference between training and production data while preserving security standards?

AUse synthetic data generation to create a dev catalog that matches prod catalog statistical properties. Scientists train their model on the dev data and check their code into Git. After tests are passed, the model is deployed to production.
BThe training and inference data must be the same. Grant data scientists read only access to the prod catalog for model training. Scientists train their model on the prod data and check their training and inference code into Git. After tests are passed, the model is deployed to production.
CData scientists develop against the dev catalog. When ready, they check their code into Git. After tests are passed, the training code is run with user permissions against the production catalog. After training code execution, the model is deployed to production.
DData scientists develop against the dev catalog. When ready, they check their code into Git. After tests are passed, the training code is run using a prod Service Principal’s permission against the production catalog. After training code execution, the model is deployed to production.
Question #40Part 1Drift Detection and Lakehouse Monitoring

After a data scientist discovers that a column is missing from a production feature set stored as a Delta table, the machine learning engineering team must determine when the column was removed from the feature set. Which of the following SQL commands can accomplish this task?

AVERSION
BDESCRIBE
CHISTORY
DDESCRIBE HISTORY
ETIMESTAMP
Question #41Part 1Advanced MLflow Usage

A data scientist developed and logged a Spark ML random forest model, then ended their Spark session and terminated their cluster. After launching a new cluster, they want to examine the featureImportances of the original model object. Which code line can restore the model object so that featureImportances is available?

Aclient.list_artifacts(run_id)["feature-importances.csv"]
Bmlflow.spark.load_model(model_uri)
Cmlflow.load_model(model_uri)
Dclient.pyfunc.load_model(model_uri)
Question #42Part 1Advanced Feature Store Concepts

A Machine Learning Engineer is developing a feature pipeline and model that require certain features to be calculated with sub-second latency. These features rely on specific user information in the request, along with other collected features that can be retrieved at lower latency. The engineer is concerned with satisfying the one-second latency requirement for feature calculation and with possible train/inference skew that could affect model performance. Which solution is appropriate for this use case?

AUse a custom pyfunc model registered with the FeatureStoreClient. Have a method to calculate the low latency features from all inputs to update the input feature dataframe at the start of the predict method.
BUse a streamed dataset of features to create an online feature table for low latency feature lookup, register the model with these features.
CUse point-in-time feature lookup tables to ensure data is not arriving before the output label to avoid data leakage.
DUse a custom database hosted inside a served model in Databricks Model Serving to perform feature lookups and calculations of the sub second latency features and return these results.
Question #43Part 1Drift Detection and Lakehouse Monitoring

A Data Scientist must manage wind-turbine data. Each day, they ingest signals from every turbine and save them in an aggregate Unity Catalog table. To find turbines that need repair, the Data Scientist runs a clustering algorithm on the numeric turbine data every night. Although the model performs well, the scientist is concerned that the signal distribution could shift over time and degrade model performance. How can the scientist use Lakehouse Monitoring’s Kolmogorov-Smirnov (KS) Test metric to receive an alert when the signal distribution deviates from the initial evaluation dataset?

ASet up a “Time series profile” monitor on the signals table. Track the consecutive ks_test metrics for the numeric columns over time. Set up a SQL Alert to send an email when the ks_test statistic is small (< .05) and the pvalue is large (>.90).
BSet up a “Time series profile” monitor on the signals table with the evaluation dataset as the baseline table. Track the difference from the baseline ks_test metrics for the numeric columns over time. Set up a SQL Alert to send an email when the ks_test statistic is large (> .15) and the pvalue is small (<.25).
CSet up a “Time series profile” monitor on the signals table. Track the consecutive ks_test metrics for the numeric columns over time. Set up a SQL Alert to send an email when the ks_test statistic is large (> .15) and the pvalue is small (<.25).
DSet up a “Time series profile” monitor on the signals table with the evaluation dataset as the baseline table. Track the difference from the baseline ks_test metrics for the numeric columns over time. Set up a SQL Alert to send an email when the ks_test statistic is small (< .05) and the pvalue is large (>.90).
Question #44Part 1Environment Architectures

A machine learning engineering team wants to create a continuous data-preparation pipeline for a machine learning application. The team wants the data to be completely processed and prepared for inference as a sequence of equally sized batches. Which of the following tools can provide this type of continuous processing?

ASpark UDFs
BStructured Streaming
CMLflow
DDelta Lake
EAutoML
Question #45Part 1Advanced MLflow Usage

A data scientist is using MLflow to track machine-learning experiments. After finishing a run with run ID run_id for the experiment with experiment ID exp_id, the data scientist needs to programmatically retrieve the metrics logged for run_id. They have an active MLflow Client client and an active Spark session spark. Which code line can be used to return the logged metrics for run_id?

Aclient.qet_run(exp_id.run_id).data.metrics
B![](https://cdn.examcademy.com/images/questions/1783896086372-yih54tyq.png)
Cclient.get_run(run_id).data.metrics
Dspark.read.format("mlflow-run").load(run_id)
Question #46Part 1Drift Detection and Lakehouse Monitoring

A Data Scientist must analyze drift-detection results from Databricks Lakehouse Monitoring. The system has produced both profile-metrics and drift-metrics tables. The scientist must identify baseline drift in numerical features by comparing current data with a baseline from 6 months earlier. Which combination of table columns and values indicates baseline drift for a numerical feature?

Awindow_cmp pointing to baseline time window and tv_distance > 0.5 with any drift_type value.
Bdrift_type = "BASELINE", chi_squared_test.p_value < 0.05, and js_distance > 0.2.
Cdrift_type = "BASELINE", ks_test.p_value < 0.05, and wasserstein_distance > 0.1.
Dlog_type = "BASELINE" in profile metrics table with population_stability_index > 0.2 in drift metrics table.
Question #47Part 1Deployment Strategies

A machine learning engineer is developing a fraud-detection machine learning application. When a credit-card transaction occurs, the machine learning application must immediately process the data and generate a prediction to decide whether to approve the transaction based on the probability that it is fraudulent. Which deployment strategy can be used to satisfy these requirements?

AEdge/on-device
BReal-time
CBatch
DStreaming
Question #48Part 1Environment Architectures

A Machine Learning Engineer must build a time-series model. In Databricks, they have created isolated environments in separate workspaces for development, staging, and production. To manage the model, they plan to use a “deploy code” strategy. They are concerned that the model trained in development may not stay consistent across environments because the installed dependencies differ. What can they do to ensure the model is trained with the same packages?

AUse the same Databricks Runtime (DBR) version across environments and define dependencies in a lock file that is installed as part of the job.
BUse custom init scripts that install the necessary packages as part of the job.
CUse MLflow to track the model parameters and metrics in development, then export the same training conditions in staging and production.
DUse Databricks Repos to store the model code and install the required libraries in the notebook.
Question #49Part 1Using Spark ML

A Data Scientist is building a Spark ML pipeline for a customer dataset containing the numeric features age, annual_income, and transaction_count, all of which vary widely. Because the selected algorithm requires inputs normalized to the [0,1] range, they must apply the appropriate Spark ML transformer to these features. Which Spark ML transformer should the Data Scientist use to scale every feature to the [0,1] range?

AMaxAbsScaler
BRobustScaler
CMinMaxScaler
DStandardScaler
Question #50Part 1Advanced MLflow Usage

A machine learning engineer has built a machine learning pipeline that produces a scikit-learn model and calculates the RMSE rmse, MAE mae, and R-squared r2 values for the test set. They now need to log these values to the MLflow run. The values are held in the metrics dictionary. They execute the following code block: ![Question Image](https://cdn.examcademy.com/images/questions/1783896079592-39qw8xcy.png) The code block results in an error. Which change to the code block will successfully complete the task?

AReplace mlflow.log_metric with mlflow.sklearn.log_metric
BReplace metrics with model
CReplace log_metric with log_metrics
DReplace metrics with rmse, mae, r2
Question #51Part 1Drift Detection and Lakehouse Monitoring

Which of the following is a straightforward, low-cost approach for monitoring drift in numeric features?

AJensen-Shannon test
BSummary statistics trends
CChi-squared test
DNone of these can be used to monitor feature drift
EKolmogorov-Smirnov (KS) test
Question #52Part 1Advanced MLflow Usage

A data scientist uses MLflow to track a machine-learning experiment. During every MLflow run, they perform hyperparameter tuning. The data scientist wants a single parent run for the tuning process and a child run for every unique combination of hyperparameter values. They are using this code block: ![Question Image](https://cdn.examcademy.com/images/questions/1784035104911-lf9phttb.png) The code block does not nest the MLflow runs as expected. Which change must the data scientist make to the code block so that the child runs are successfully nested under the parent run in MLflow?

AIndent the child run blocks within the parent run block
BAdd the nested=True argument to the parent run
CRemove the nested=True argument from the child runs
DProvide the same name to the run_name parameter for all three run blocks
EAdd the nested=True argument to the parent run and remove the nested=True arguments from the child runs
Question #53Part 1Drift Detection and Lakehouse Monitoring

Which of the following is a disadvantage of using Jensen-Shannon (JS) distance to detect drift in numeric features?

AAll of these reasons
BJS requires a manual threshold or cutoff determinations
CJS is not robust when working with large datasets
DNone of these reasons
Question #54Part 1Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer deployed a customer-churn prediction model to production three months earlier. The model provides real-time predictions through a Databricks endpoint with inference logging enabled. They have observed declining model accuracy in recent weeks and suspect drift in customer demographic data. They need to implement monitoring that tracks model-performance degradation and input-feature drift over time. Which monitoring profile type should they use?

ACustom profile - Create a hybrid monitoring approach combining snapshot and time series profiles to capture both baseline comparisons and temporal trends.
BInference profile - Monitor the inference table to track model performance metrics, prediction drift, and input feature drift across time windows.
CTime series profile - Monitor the inference table using timestamp-based windows to track model performance and input drift over time.
DSnapshot profile - Monitor the complete inference table to compare current model performance against the baseline established at deployment.
Question #55Part 1Validation Testing

A Machine Learning Engineer is developing a Databricks ML pipeline to predict customer churn. The pipeline must include automated feature engineering, model training, evaluation, and deployment to a REST API endpoint with MLflow. What is the main purpose of an integration test for this pipeline?

ATo verify that the pipeline can process a variety of data formats, even if some stages are skipped or bypassed
BTo ensure that the pipeline’s performance meets latency and scalability requirements under simulated production loads
CTo monitor the model’s performance after it has been deployed into the production environment
DTo ensure the pipeline runs with all components working together and data flowing correctly between stages
Question #56Part 1Advanced MLflow Usage

A Data Scientist is training a complex gradient-boosted model for fraud detection. The model applies dynamic threshold tuning during training and produces custom feature-drift visualizations. To support reproducibility and collaboration, they must programmatically track: - Custom metrics (for example, adjusted_f1 for threshold variations) - Hyperparameters from nested configuration files - Drift-visualization plots as PDFs Which approach implements this tracking in MLflow?

AEnable mlflow.autolog() at the beginning of the code and rely on it to automatically detect and log custom metrics, parameters, and visualization files.
BStore hyperparameters in a YAML file, save metrics to a CSV, and use mlflow.log_artifact() to upload both to the tracking server as artifacts.
CWrite all custom metrics and parameters to stdout during training and configure MLflow’s tracking server to scrape these outputs.
DUse mlflow.log_metric("adjusted_f1", value),mlflow.log_params(nested_config), and mlflow.log_artifact("drift_plot.pdf") within an active MLflow run context, while enabling mlflow.autolog() to capture model-specific metadata automatically.
Question #57Part 1Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer uses Lakehouse Monitoring to track the performance of their credit scoring model. The current profile metrics table has three aggregate metrics: - adefault_risk_score - payment_history_score - credit_utilization_score They must: 1. Create a composite risk rating that combines these three scores with weights of 0.5, 0.3, and 0.2, respectively. 2. Monitor drift of this composite score against an established baseline. Which approach should be used to fulfill both requirements within Lakehouse Monitoring?

ACreate two separate aggregate metrics: one for the composite score calculation and another for drift detection.
BUse a scheduled notebook to calculate the composite score and manually insert both the score and drift values into the profile metrics table.
CCreate a derived metric for the composite_risk_rating calculation and create a drift metric on this derived metric.
DCreate an aggregate metric for composite_risk_rating and configure a separate drift metric to monitor changes.
Question #58Part 1Scaling and Tuning

A retail company wants to more accurately distribute products by improving forecasts of each SKU’s sales in every store. A Data Scientist proposes scaling the existing forecasting model so it produces an individual forecast for every SKU and Store ID combination. They have a cluster with 12 executors available to run this workload. The current model is written with Pandas and the Prophet forecasting library, using a Python function that takes a Pandas Data Frame containing historical sales data as a parameter to train the forecasting model. For the next iteration, they want to make this approach more efficient with the least effort while using all available resources. Which approach accomplishes this?

A1. Rewrite the function using the Generalized Linear Regression models available in Spark MLlib, which allows parameterizing to reflect a similar behavior to that of Prophet;2. Perform a GROUP BY on the Spark DataFrame with the training data to group by Store and SKU;3. Apply the Spark UDF to the grouped DataFrame with the apply function,
B1. Use a Spark query to identify all combinations of SKU and Store ID;2. Run a loop through every combination calling the existing Python function using Spark repartition(12) function so it distributes across all available executors.
C1. Decorate the existing training function with the @pandas_udf;2. On the Spark DataFrame with all training data perform a GROUP BY by Store and SKU;3. Apply the decorated function to the grouped DataFrame with the apply function.
D1. Use Spark repartition(12) to scale across all executors;2. Run to Pandas to convert the repartitioned DataFrame to Pandas so it can run on the original existing function;3. Add the Store ID and SKU to the Prophet model as exogenous variables.
Question #59Part 1Validation Testing

A Machine Learning Engineer plans to deploy a new change to the existing model-training pipeline for a social media app. Currently, they use the Databricks Feature Store to create a training set for training their LightGBM model, which is then used in a Pandas UDF for batch inference to recommend potential friends to users. They updated the feature-engineering pipeline to include an additional feature function that computes the number of mutual friends a user has. Which test should they add to quickly determine whether something has broken in the test environment?

AImplement an integration test that runs the entire pipeline from feature engineering to model inference in the production environment.
BAdd a unit test that verifies the new mutual friends feature function correctly calculates expected values on a fake dataset.
CAdd a unit test that verifies the new mutual friends feature function correctly calculates expected values on live data.
DImplement an integration test that runs the feature engineering pipeline in the production environment.
Question #60Part 1Environment Architectures

A Machine Learning Engineer must establish a new enterprise-wide Databricks environment for more than one hundred machine learning practitioners. Key requirements include robust governance across all data assets, clear project isolation, effective cost management, and streamlined MLOps for reproducibility and collaboration across diverse machine learning projects. Which initial setup strategy should be implemented to satisfy these requirements?

AEstablish one primary workspace and use legacy Hive Metastore table ACLs for data access control. Depend on Git integration as the sole mechanism for collaboration and versioning of ML projects allowing users to install libraries directly on all-purpose clusters that they manage individually or in teams.
BImplement multiple workspaces, potentially segmented by department or major project domains. Enforce the use of Unity Catalog for centralized data governance lineage, and discovery. Standardize ML model development lifecycle with MLflow Tracking and Model Registry, and implement cluster policies to control resource allocation and costs.
CCreate a single large shared workspace for all users. Grant admin privileges to team leads for user management and rely on users to manually tag clusters for cost attribution. Encourage the use of shared notebooks for collaboration.
DProvision individual workspaces for each data scientist to ensure maximum autonomy and isolation. Use separate cloud storage containers per workspace for data and allow users to configure and manage their own clusters without restrictions.
Question #61Part 2Scaling and Tuning

A Data Scientist needs fine-grained forecasts of clients’ energy consumption by type (that is, residential, industry, commercial, and others) and location at the district level. The data scientist already has a scikit-learn model that was tested on a small data subset and wants to apply it for this fine-grained forecasting. They have a cluster with eight executors available to perform the work. The existing function is named forecast_consumption, and the Spark DataFrame that contains historic data is named history_df; client_type is the client-type column and district_id is the district-ID column. Which code block would correctly complete this task with the least effort while using all available resources?

A![](https://cdn.examcademy.com/images/questions/1785604267994-mau6pxtc.png)
B![](https://cdn.examcademy.com/images/questions/1785604270018-75xjk7t3.png)
C![](https://cdn.examcademy.com/images/questions/1785604273065-fdro3iqh.png)
D![](https://cdn.examcademy.com/images/questions/1785604275447-c7ycccr4.png)
Question #62Part 2Deployment Strategies

A Data Scientist must run inference on a continuously updated Delta table named sales_data by using an MLflow-registered Spark ML pipeline model (catalog.prod.sales_forecaster). Predictions must be written to the Delta table forecast_results, which must be updated with low latency by leveraging a cluster with three executors. They want to maximize efficient cluster usage while doing so. Which approach meets these needs?

A![](https://cdn.examcademy.com/images/questions/1785604135858-yn7sszqx.png)
B![](https://cdn.examcademy.com/images/questions/1785604138995-ap35cedb.png)
C![](https://cdn.examcademy.com/images/questions/1785604141701-7wptz9j3.png)
D![](https://cdn.examcademy.com/images/questions/1785604144028-sx6kw93d.png)
Question #63Part 2Advanced MLflow Usage

Which of the following is a benefit of using the python_function (pyfunc) model flavor rather than the built-in, library-specific model flavors?

Apython_function provides no benefits over the built-in library-specific model flavors
Bpython_function can be used to deploy models in a parallelizable fashion
Cpython_function can be used to deploy models without worrying about which library was used to create the model
Dpython_function can be used to store models in an MLmodel file
Epython_function can be used to deploy models without worrying about whether they are deployed in batch, streaming, or real-time environments
Question #64Part 2Drift Detection and Lakehouse Monitoring

Concept drift occurs when which element changes?

AThe relationship between input variables and target variables
BThe distribution of an input variable
CThe distribution of the predicted target given by the model
DThe distribution of a target variable
Question #65Part 2Validation Testing

Which tool can automatically initiate a testing Job when a new version of an MLflow Model Registry model is registered?

AMLflow Model Registry UI
BMLflow Client API
CMLflow Model Registry Webhooks
DMLflow REST API
Question #66Part 2Advanced Feature Store Concepts

A Data Scientist has a Unity Catalog feature table named feature_table. For feature_table, the data scientist ran a Python notebook that calculates features from raw data in an upstream UC-managed Delta table and then writes them to feature_table. As new data arrives, it must be added to feature_table as quickly as possible while retaining the table's existing features. They want to automate updates to feature_table while also optimizing cost. They created the following code in a notebook and want to automate that notebook in Databricks. ![Question Image](https://cdn.examcademy.com/images/questions/1783920547794-hyr6pl1s.png) They will use the notebook code to update feature_table and then run the notebook as a job. Which job approach best meets their goals and requirements?

AA job on an interactive cluster that has a scheduled trigger on it that runs the job daily at a set time.
BA job on automated compute that has a scheduled trigger on it that runs the job daily at a set time.
CA job on automated compute that has a table update trigger configured on the job.
DA Job on an interactive cluster that has a table update trigger configured on the job.
Question #67Part 2Advanced MLflow Usage

Which of the following Databricks-managed MLflow capabilities serves as a centralized model store?

AModels
BModel Registry
CModel Serving
DFeature Store
EExperiments
Question #68Part 2Advanced MLflow Usage

A data scientist wants to move from manually using MLflow logging to MLflow Autologging for every machine-learning library used in a notebook. They start by adding mlflow.autolog() at the beginning of the following code block: ![Question Image](https://cdn.examcademy.com/images/questions/1783916644306-00wtah5r.png) The data scientist now wants to identify which line of code initiates the MLflow Autologging process. Which line in the code block above starts the MLflow Autologging process?

Amlflow.log_metric("training_mse", mse)
Bmlflow.sklearn.log_model(rf_model, "rf_model")
Cwith mlflow.start_run(run_name="ML Project") as run:
Drf_model = rf.fit(X_train, y_train)
Question #69Part 2Advanced MLflow Usage

A machine learning engineer created a webhook using the following code block: Which code block triggers this webhook to run the associated job?

AB.
CD.
Question #70Part 2Advanced MLflow Usage

A machine-learning engineering manager has asked every engineer on their team to add text descriptions to each model project in the MLflow Model Registry. They are starting with the model project "model" and want to add the text stored in the model_description variable. The team is using the following line of code: ![Question Image](https://cdn.examcademy.com/images/questions/1783861424703-6qd950ly.png) Which change does the team need to make to the preceding code block to complete the task?

AReplace update_registered_model with update_model_version
BThere no changes necessary
CReplace description with artifact
DReplace client.update_registered_model with mlflow
EAdd a Python model as an argument to update_registered_model
Question #71Part 2Deployment Strategies

A Machine Learning Engineer has a production AI model that predicts fraudulent transactions in real time. The model is integrated into critical business workflows, and any outage could lead to significant financial loss and regulatory penalties. The engineer must deploy a new, improved model version to production to replace the current model. The bank’s fairness policy requires all transactions to be exposed to the same model at any given time. Additionally, the deployment must satisfy these requirements: - **Zero downtime:** The fraud-detection service must stay continuously available to users and downstream systems. - **Immediate rollback:** If the new model causes problems, the previous version must be restored instantly. Which deployment strategy satisfies these requirements?

ACanary
BRolling
CShadow
DBlue-Green
Question #72Part 2Drift Detection and Lakehouse Monitoring

Which of the following is a reason to use Jensen-Shannon (JS) distance instead of a Kolmogorov-Smirnov (KS) test for detecting drift in numeric features?

AAll of these reasons
BJS is not normalized or smoothed
CNone of these reasons
DJS is more robust when working with large datasets
EJS does not require any manual threshold or cutoff determinations
Question #73Part 2Using Spark ML

A data scientist is developing a model to predict which communication channel—Phone, SMS, Email, or Post—is most likely to be effective for a particular customer. Which model type is appropriate for this task?

ALinear Regression
BARIMA
CLogistic Regression
DSoftmax Classifier
Question #74Part 2Drift Detection and Lakehouse Monitoring

Which of the following can be used to compare the relative prevalence of particular values in a single categorical variable across two datasets or time periods?

AContingency tables
BNumber of unique values
CMode
DJensen-Shannon distance
Question #75Part 2Scaling and Tuning

A Data Scientist is developing a set of models to predict small IoT-device sensor failures in a large manufacturing plant. Specifically, the task is to predict whether a sensor will fail within the next 7 days based on its current and recent status. Hundreds of these sensors exist across the plant, with distinct profiles that require a model to be trained for each sensor. Each individual sensor dataset is small, but together they constitute big data. Experiments using individual sensor datasets have shown that a simple linear model has excellent predictive power for this task. The Data Scientist must define an efficient, best-practice approach for training and prediction. Which approach is suitable for this use case?

AUse applyInPandas to train a model per sensor, and mapInPandas to make predictions once in production.
BUse mapInPandas to train a model per sensor, and applyInPandas to make predictions once in production.
CUse a pandas_UDF to train a model per sensor, and applyInPandas to make predictions once in production.
DUse applyInPandas to tram a model per sensor, and a pandas_UDF to make predictions once in production.
Question #76Part 2Drift Detection and Lakehouse Monitoring

A machine learning engineer is implementing a concept-drift monitoring solution and plans to use these steps: 1. Deploy a model to production and calculate predicted values. 2. Obtain the observed (actual) label values. 3. _____ 4. Run a statistical test to determine whether changes occur over time. Which of the following should be performed as Step #3?

AObtain the observed values (actual) feature values
BMeasure the latency of the prediction time
CRetrain the model
DNone of these should be completed as Step #3
ECompute the evaluation metric using the observed and predicted values
Question #77Part 2Advanced MLflow Usage

A machine learning engineer needs to delete an active MLflow Model Registry Webhook with webhook ID webhook_id for a particular model. They are using this code block: ![Question Image](https://cdn.examcademy.com/images/questions/1783916642821-kvx1k5fs.png) Which modification must the machine learning engineer make to this code block for it to successfully complete the task?

AReplace list with delete in the endpoint URL
BThere are no necessary changes
CReplace list with webhooks in the endpoint URL
DReplace DELETE with POST in the call to http_request
Question #78Part 2Automated Retraining

A Machine Learning Engineer must use Databricks to deploy a recommendation model. They want to make sure the model automatically retrains whenever significant data drift is detected in customer purchase patterns. The engineer has configured Lakehouse Monitoring to track data-distribution and model-accuracy metrics. The engineer wants to create an automated retraining workflow triggered by these alerts. Which approach will make sure the model is automatically retrained when data drift or performance degradation is detected?

AConfigure SQL alerts on the monitoring tables to detect anomalies in data drift metrics, then use a webhook notification to trigger the existing model training job workflow.
BSchedule a daily batch job to retrain the model regardless of data changes to ensure freshness.
CManually check the monitoring dashboards weekly and trigger retraining if performance degradation is observed.
DUse the APPEND mode to update the model registry with new versions without retraining.
Question #79Part 2Advanced Feature Store Concepts

A Machine Learning Engineer is developing a model with features derived from streaming clickstream data in Databricks. To maintain consistent feature values between training and real-time inference, the engineer must ensure features are computed in exactly the same manner in both environments. They must also avoid offline-online skew in feature computation. Which approach meets these requirements?

AUse an MLflow PyFunc model to encapsulate and reuse the exact same feature computation code during both training and inference.
BCache features in-memory and use custom scripts to merge them at inference.
CImplement separate preprocessing pipelines for training and inference, keep documentation synchronized.
DUse batch-computed features for training but real-time-computed features at inference to match production performance.
Question #80Part 2Custom Model Serving

A Machine Learning Engineer has deployed a custom XGBoost model to a Databricks serving endpoint named “fraud-detection-v2” and must integrate it with three distinct systems: a real-time web application, a batch SQL analytics pipeline, and a Python microservice. Each system needs a different query method to preserve optimal performance and satisfy architectural constraints. Which combination of querying methods is most suitable for the three integration scenarios?

AWeb application: ai_query function, SQL pipeline: REST API, Python microservice: MLflow Deployments SDK.
BWeb application: REST API, SQL pipeline: ai_query function, Python microservice: MLflow Deployments SDK.
CWeb application: REST API, SQL pipeline: MLflow Deployments SDK, Python microservice: ai_query function.
DWeb application: MLflow Deployments SDK, SQL pipeline: ai_query function, Python microservice: REST API.
Question #81Part 2Custom Model Serving

A Machine Learning Engineer is developing an application that needs low-latency data lookups in response to a user’s question after a RAG-based search. They want to ensure users receive the most recent data possible for urgent requests, so the data must be no more than a few minutes late. The underlying data is a large table that can contain hundreds of gigabytes of data. Which data-serving approach best suits this use case?

AOnline tables with snapshot sync mode
BA fast database hosted in MLflow model serving
COnline tables with continuous sync mode
DOnline tables with triggered mode and a time series key
Question #82Part 2Using Spark ML

A Data Scientist is building an MLlib Pipeline to predict customer churn. The data includes a categorical feature named vehicle_type, and the Data Scientist wants to one-hot encode this feature for logistic-regression models. During inference, the Pipeline must skip rows that contain an unseen category. Which method correctly transforms the categorical feature?

A![](https://cdn.examcademy.com/images/questions/1785604276410-mklzv9fz.png)
B![](https://cdn.examcademy.com/images/questions/1785604278467-z5ajwd1i.png)
C![](https://cdn.examcademy.com/images/questions/1785604280721-ytxotqv1.png)
D![](https://cdn.examcademy.com/images/questions/1785604282748-8oeywhri.png)
Question #83Part 2Validation Testing

Within a continuous integration and continuous deployment (CI/CD) process for machine learning pipelines, which event commonly triggers automated testing?

AThe launch of a new cost-efficient SQL endpoint
BCI/CD pipelines are not needed for machine learning pipelines
CThe arrival of a new feature table in the Feature Store
DThe launch of a new cost-efficient job cluster
EThe arrival of a new model version in the MLflow Model Registry
Question #84Part 2Model Lifecycle Management

A machine learning engineer is trying to create a webhook that triggers a Databricks Job job_id whenever a model version for model model transitions into any MLflow Model Registry stage. They have the following incomplete code block: ![Question Image](https://cdn.examcademy.com/images/questions/1783860668798-ud15xvul.png) Which of the following code lines can fill the blank so that the code block completes this task?

A"MODEL_VERSION_CREATED"
B"MODEL_VERSION_TRANSITIONED_TO_PRODUCTION"
C"MODEL_VERSION_TRANSITIONED_TO_STAGING"
D"MODEL_VERSION_TRANSITIONED_STAGE"
E"MODEL_VERSION_TRANSITIONED_TO_STAGING", "MODEL_VERSION_TRANSITIONED_TO_PRODUCTION"
Question #85Part 2Advanced MLflow Usage

A machine learning engineer needs to log feature-importance data from a CSV file located at importance_path with an MLflow run for model model. Which of the following code blocks accomplishes this within an existing MLflow run block?

A![](https://cdn.examcademy.com/images/questions/1784035104797-q4j6nr7i.png)
B![](https://cdn.examcademy.com/images/questions/1784035110503-i3ahodtw.png)
Cmlflow.log_data(importance_path, "feature-importance.csv")
Dmlflow.log_artifact(importance_path, "feature-importance.csv")
ENone of these code blocks tan accomplish the task.
Question #86Part 2Drift Detection and Lakehouse Monitoring

Which of the following represents an obstacle associated with streaming machine-learning applications?

AEnd-to-end fault tolerance
BOut-of-order data
CNone of these
DAll of these
Question #87Part 2Advanced MLflow Usage

A machine learning engineer is migrating a Hyperopt-based hyperparameter-tuning process from manual MLflow logging to MLflow Autologging. They notice that not every detail and object is logged automatically, so some items will need to be logged manually. Which of the following must be manually logged when using nested runs with Hyperopt and MLflow Autologging?

ATrial models
BTrial status
CBest trial evaluation metric
DHyperparameter values
EEvaluation metrics
Question #88Part 2Scaling and Tuning

A Machine Learning Engineer must digitize millions of historical documents covering 200+ years, with widely differing handwriting styles, fonts, languages, document conditions, and paper types. To accomplish this, the engineer wants to train thousands of specialized OCR models to extract text. Document counts vary greatly, so they need an efficient method for this parallel model-training task. Which approach best suits these requirements?

AUse Scikit-learn’s ML library within a Pandas UDF to parallelize training across data partitions. Use groupby.applyInPandas.
BUse Ray map_in_batches to allocate resources based on the various sizes of models and data volumes.
CUse Spark MLlib with custom Spark UDFs to distribute across partitions.
DUse Spark for data preprocessing and orchestrate parallel model training jobs through Databricks workflows.
Question #89Part 2Advanced MLflow Usage

A data scientist has created a scikit-learn random forest model but has not yet logged the model with MLflow. They have created a model signature, model_signature, and several example input records, input_records. Which code block can be used to log all this information?

A![](https://cdn.examcademy.com/images/questions/1783917738733-px6dk9gl.png)
Bmlflow.sklearn.log_model(model, "model")mlflow.log_signature(model_signature)mlflow.log_input(input_records)
CThere is no way to log a model signature.
D![](https://cdn.examcademy.com/images/questions/1783917743356-b6i38x1j.png)
Question #90Part 2Advanced Feature Store Concepts

A data scientist has calculated updated feature values for every primary-key value in the Feature Store table features. They have also calculated feature values for some new primary-key values. The updated values are contained in the DataFrame features_df. They want to replace all data in features with the newly calculated data. Which of the following code blocks can they use to complete this task with the Feature Store Client fs?

A![](https://cdn.examcademy.com/images/questions/1785600330361-uu7t972g.png)
B![](https://cdn.examcademy.com/images/questions/1785600332759-vofge2ix.png)
C![](https://cdn.examcademy.com/images/questions/1785600335372-3bx9so26.png)
D![](https://cdn.examcademy.com/images/questions/1785600338046-otghbwld.png)
E![](https://cdn.examcademy.com/images/questions/1785600340671-ge8eegcv.png)
Question #91Part 2Advanced MLflow Usage

Which of the following MLflow Model Registry scenarios requires using an HTTP Webhook?

AStarting a testing job when a new model is registered
BUpdating data in a source table for a Databricks SQL dashboard when a model version transitions to the Production stage
CSending an email alert when an automated testing Job fails
DNone of these use cases require the use of an HTTP Webhook
ESending a message to a Slack channel when a model version transitions stages
Question #92Part 2Custom Model Serving

Which of the following deployment paradigms can centrally generate predictions for a single record with extremely fast results?

AStreaming
BBatch
CEdge/on-device
DNone of these strategies will accomplish the task.
EReal-time
Question #93Part 2Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer must create monitors for various table types in their Databricks environment. In particular, they need to create a monitor for an inference table that tracks model performance for a classification problem. They have an inference table named ml_models.production.credit_risk_predictions with these columns: - request_timestamp: timestamp for each prediction request - customer_features: model input features - predicted_risk_score: model predictions - actual_default: ground-truth labels (optional) - model_version: identifier of the model version used Which code snippet correctly creates an InferenceLog monitor for this table?

A![](https://cdn.examcademy.com/images/questions/1785604268624-qnhv0lgt.png)
B![](https://cdn.examcademy.com/images/questions/1785604270639-tl7mg8jl.png)
C![](https://cdn.examcademy.com/images/questions/1785604273663-6l0a0jp7.png)
D![](https://cdn.examcademy.com/images/questions/1785604276049-pc8w7xx5.png)
Question #94Part 2Advanced MLflow Usage

A data scientist is using MLflow to track machine-learning experiments. After completing a series of runs for the experiment with experiment ID exp_id, the data scientist wants to programmatically access 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 code lines can obtain run-level results for exp_id in a Spark DataFrame?

Aclient.list_run_infos(exp_id)
Bspark.read.format("delta").load(exp_id)
CThere is no way to programmatically return row-level results from an MLflow Experiment.
Dmlflow.search_runs(exp_id)
Espark.read.format("mlflow-experiment").load(exp_id)
Question #95Part 2Advanced MLflow Usage

A Machine Learning Engineer must develop a custom PyFunc model that needs external configuration files and pre-trained weights stored in Unity Catalog volumes. The model must be registered in Unity Catalog with catalog name production, schema ml_models, and model name text_classifier. The engineer has the required USE CATALOG, USE SCHEMA, and CREATE MODEL privileges on the target schema. The configuration file is at /Volumes/production/ml_models/configs/model_config.json, and the weights file is at /Volumes/production/ml_models/weights/model.pk1. They must log the custom PyFunc model with the required artifacts and register it in Unity Catalog. Which code approach accomplishes this?

AUse mlflow.pyfunc.log_model() with the registered_model_name parameter set to the three-level name and include artifacts in the log_model call.
BUse mlflow.sklearn.log_model() with custom artifacts, then register using mlflow.set_registry_uri(“databricks-uc”) before registration.
CUse mlflow.pyfunc.log_model() with the artifacts parameter to include both files, then call mlflow.register_model() with the three-level model name.
DUse mlflow.pyfunc.save_model() with artifacts parameter, then call mlflow.models.register_model() with Unity Catalog URI.
Question #96Part 2Drift Detection and Lakehouse Monitoring

Feature drift happens when which element changes?

AThe distribution of the predicted target given by the model
BThe distribution of an input variable
CThe distribution of a target variable
DThe relationship between input variables and target variables
Question #97Part 2Using Spark ML

A Data Scientist is creating a machine-learning pipeline to classify raw text with a Logistic Regression model in Spark, using Spark MLlib Pipelines. The pipeline contains three stages: a Tokenizer (to split raw text into tokens), a HashingTF (to convert tokens into hashes), and Logistic Regression itself (to classify the texts). The Spark DataFrame containing training data is named trainingDF, and the one containing test data is named testDF. To accomplish this, they use the following incomplete code: ![Question Image](https://cdn.examcademy.com/images/questions/1785604129040-qftfokc1.png) Which option correctly identifies: (i) The full command to train the model; (ii) The full command to run prediction on the test data; (iii) The type of the model object returned by the model-training command.

A![](https://cdn.examcademy.com/images/questions/1785604131384-zmjod9mt.png)
B![](https://cdn.examcademy.com/images/questions/1785604135064-68ddg7a1.png)
C![](https://cdn.examcademy.com/images/questions/1785604138337-etiep9w4.png)
D![](https://cdn.examcademy.com/images/questions/1785604141958-5bthu98a.png)
Question #98Part 2Advanced MLflow Usage

A data scientist configured a machine learning pipeline to automatically log feature-importance data from a CSV during each run. They now need to view the feature-importance data in Databricks. Which Databricks location displays this data?

AThe MLflow Model Registry Model page
BThe Artifacts section of the MLflow Experiment page
CThe Artifacts section of the MLflow Run page
DThe Data section of the MLflow Run page/span>
Question #99Part 2Advanced Feature Store Concepts

A data scientist wants to inspect the data in the Feature Store tabletablein thedevdatabase as a Spark DataFrame. They have access to the Feature Store Clientfs. Which line of code can be used to get the data fromtableas a Spark DataFrame?

Afs.get_table("table)
Bfs.read_table("dev.table")
Cfs.create_table("dev.table")
Dfs.get_table("dev.table")
Question #100Part 2Model Lifecycle Management

A machine learning engineer is manually refreshing a model in an existing machine learning pipeline. The pipeline uses the MLflow Model Registry model "project". The machine learning engineer wants to add a new version of the model to "project". Which of the following MLflow operations can the machine learning engineer use to complete this task?

Amlflow.register_model
BMlflowClient.update_registered_model
Cmlflow.add_model_version
DMlflowClient.get_model_version
EThe machine learning engineer needs to create an entirely new MLflow Model Registry model
Question #101Part 2Drift Detection and Lakehouse Monitoring

A Machine Learning Engineer is monitoring a Databricks model-serving endpoint that has begun to exhibit occasional latency spikes during periods of high traffic. The engineer uses the Databricks metrics export API to gather latency percentiles (P50, P99). The objective is to use these metrics to identify and diagnose performance issues. How should the engineer use these latency metrics to obtain insight into endpoint performance?

ACompare P50 and P99 latency to assess both typical and worst-case response times, investigating when P99 latency diverges from P50.
BAnalyze average latency values to summarize overall performance and check for increases during high traffic periods.
CReview P50 latency to evaluate the most common response time and correlate this with changes in request rate.
DMonitor P99 latency to focus on the slowest responses and use this to determine if certain requests are experiencing delays.
Question #102Part 2Advanced Feature Store Concepts

A Data Scientist is developing a predictive-maintenance model for a vehicle fleet. They have two tables in their feature store: 1. A sensor_readings feature table containing continuously streamed IoT data (for example, engine_temp and oil_pressure). This is a time-series table with vehicle_id as a primary key and ts as a timestamp key. 2. A maintenance_logs ground-truth table that records when a vehicle component failed. This table contains vehicle_id and the exact failure_ts timestamp. The objective is to create a training dataset by joining sensor_readings with maintenance_logs to train a model that predicts failures. They need to join the feature data and ground-truth data in a way that ensures point-in-time correctness and prevents data leakage during model training. Which approach accomplishes this?

APerform an inner join on vehicle_id and select the sensor reading with the timestamp that is closest to the failure_ts, whether it occurred before or after the failure.
BJoin the tables on vehicle_id and then manually filter to only include sensor readings that were recorded in the hour immediately preceding the failure_ts.
CPerform an “AS OF” join, using the failure_ts from the maintenance logs to look up the latest sensor reading values that were recorded at or before that specific timestamp.
DFor each failure, calculate the average of all sensor readings for that vehicle on the day of the failure and join that to the maintenance_logs table.
Question #103Part 2Deployment Strategies

A machine learning engineer must provide machine learning model predictions in real time. However, the feature values required to calculate those predictions are available one week before query time. Which benefit does a batch-serving deployment provide in this scenario compared with a real-time-serving deployment that computes predictions at query time?

ABatch serving has built-in capabilities in Databricks Machine Learning
BThere is no advantage to using batch serving deployments over real-time serving deployments
CComputing predictions in real-time provides more up-to-date results
DTesting is not possible in real-time serving deployments
EQuerying stored predictions can be faster than computing predictions in real-time
Question #104Part 2Drift Detection and Lakehouse Monitoring

A Data Scientist must monitor a production-deployed classification model using Databricks Lakehouse Monitoring. The model predicts loan approvals, and the data scientist needs to check for bias by comparing model performance for applicants younger than 25 with applicants aged 25 or older. The inference logs are stored in a Delta table at loan_inference_log_path. The relevant columns are: - age (integer) - prediction (integer: 1 for approved, 0 for denied) - label (integer: 1 for approved, 0 for denied) - timestamp (timestamp of inference) The data scientist needs to assess fairness metrics, including predictive parity and equal opportunity, for the protected group (age &lt; 25) and detect drift in these metrics at weekly intervals. Which code snippet correctly configures the monitor to assess drift and fairness metrics by age group?

A![](https://cdn.examcademy.com/images/questions/1785604274741-ct2cdpvf.png)
B![](https://cdn.examcademy.com/images/questions/1785604276928-4ecantjk.png)
C![](https://cdn.examcademy.com/images/questions/1785604279221-r1soxswf.png)
D![](https://cdn.examcademy.com/images/questions/1785604281710-iethunhq.png)
Question #105Part 2Automated Retraining

A Machine Learning Engineer has automated a model-retraining job in Databricks. Every scheduled run trains multiple candidate models using new sales data and logs all runs in MLflow. The objective is to select and register the highest-performing model at the end of each cycle to maintain optimal forecast accuracy. Which approach meets this objective?

ARegister the first model that has an evaluation metric better than the previously deployed model.
BRegister the best model based on the primary evaluation metric.
CRegister the model with the lowest training loss regardless of validation metrics.
DRegister all models from the run since all of them are trained on newer data and hence will be more accurate.
Question #106Part 2Advanced Feature Store Concepts

A data scientist ran the following code line to create a Feature Store table: ![Question Image](https://cdn.examcademy.com/images/questions/1783916644527-godk6ba1.png) Which statement accurately describes the data in the Feature Store table new_table?

AThe data in new_table is the values in column customer_id from df
BThe data in new_table is exactly the same as the data in df
CThe data in new_table is the customer-related features from df
DThere is no data in new_table
Question #107Part 2Automated Retraining

A machine learning engineer operates a machine learning pipeline whose predictions are updated annually. The final prediction dataset has millions of rows and is accessed irregularly. Which solution should the machine learning engineer use to remain cost-efficient?

ACloud-based object storage
BCloud-based in-memory instance of a Spark DataFrame
CCloud-based low latency database
DOn-premises low-latency database
Question #108Part 2Scaling and Tuning

A Data Scientist has built a PyTorch model and wants to use Ray for distributed hyperparameter optimization. They can access a multi-node Databricks cluster and have configured it to run Ray on Spark. They must carry out distributed hyperparameter optimization with Ray using minimal setup. Which approach accomplishes this?

AUse Ray Task to perform the distributed optimization. Create a python function that contains the optimization logic and trigger multiple execution of the Task with the remote function.
BUse Ray Actor to perform the distributed optimization. Create a python class that contains the optimization logic and trigger multiple execution of the Actor with the remote function.
CUse Ray Tune to perform the distributed optimization. In ray.tune.tuner.Tuner method, add the tuning configuration such as search space and objective function as parameters.
DUse Ray Train to perform the distributed optimization. In ray.train.torch.TorchTrainer method, add the tuning configuration such as search space and objective function as parameters.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!