Microsoft

DP-100 Free Practice Questions — Page 23

Question 232

You train and register a machine learning model. You create a batch inference pipeline that uses the model to generate predictions from multiple data files. You must publish the batch inference pipeline as a service that can be scheduled to run every night. You need to select an appropriate compute target for the inference service. Which compute target should you use?

A. Azure Machine Learning compute instance
B. Azure Machine Learning compute cluster
C. Azure Kubernetes Service (AKS)-based inference cluster
D. Azure Container Instance (ACI) compute target
Show Answer
Correct Answer: B
Explanation:
The requirement is for a scheduled batch inference pipeline that processes multiple data files. Azure Machine Learning compute clusters are designed for batch workloads: they support job scheduling, parallel processing, and automatic scale up/down, making them cost‑effective for nightly runs. Compute instances are for interactive development, while AKS and ACI are primarily intended for real‑time (online) inference services rather than batch pipelines.

Question 233

You have an Azure Machine Learning workspace named workspace1. You must add a datastore that connects an Azure Blob storage container to workspace1. You must be able to configure a privilege level. You need to configure authentication. Which authentication method should you use?

A. Service principal
B. Account key
C. SAS token
D. Managed identity
Show Answer
Correct Answer: D
Explanation:
You need an authentication method that supports configurable privilege levels via Azure RBAC when connecting an Azure Blob Storage container to an Azure Machine Learning datastore. Managed identity enables identity-based authentication and fine-grained access control by assigning specific roles (for example, Storage Blob Data Reader/Contributor) to the workspace or compute identity. Account keys and SAS tokens are credential-based and do not provide RBAC-based privilege control, and a service principal is not the recommended or required approach for AML datastores compared to managed identity.

Question 234

You plan to create a compute instance as part of an Azure Machine Learning development workspace. You must interactively debug code running on the compute instance by using Visual Studio Code Remote. You need to provision the compute instance. What should you do?

A. Enable Remote Desktop Protocol (RDP) access.
B. Modify role-based access control (RBAC) settings at the workspace level.
C. Enable Secure Shell Protocol (SSH) access.
D. Modify role-based access control (RBAC) settings at the compute instance level.
Show Answer
Correct Answer: C
Explanation:
To debug code on an Azure Machine Learning compute instance using Visual Studio Code Remote, the connection method is SSH via the VS Code Remote - SSH extension. Therefore, SSH access must be enabled on the compute instance. RDP is not used by VS Code Remote, and RBAC changes alone do not establish the remote debugging connection mechanism.

Question 236

HOTSPOT - You are developing a two-step Azure Machine Learning pipeline by using the Azure Machine Learning SDK for Python. The pipeline must pass temporary data from the first step to the second step. You need to configure the second step to ensure that it can use the temporary data from the first step. Which class and method should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for DP-100 question 236
Show Answer
Correct Answer: Class: DatasetConsumptionConfig Method: as_mount
Explanation:
To pass temporary data between pipeline steps, the second step consumes the output of the first step using a dataset consumption configuration. Using as_mount() mounts the intermediate data so it can be accessed by the next step at runtime.

Question 237

DRAG DROP - You create an Azure Machine Learning workspace and a new Azure DevOps organization. You register a model in the workspace and deploy the model to the target environment. All new versions of the model registered in the workspace must automatically be deployed to the target environment. You need to configure Azure Pipelines to deploy the model. Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Select and Place:

Illustration for DP-100 question 237
Show Answer
Correct Answer: Create an Azure DevOps project Install the Machine Learning extension for Azure Pipelines Create a service connection Create a release pipeline
Explanation:
First, a DevOps project is required to host pipelines. The Azure Machine Learning extension must be installed to enable AML artifacts and tasks. A service connection is then created to link Azure DevOps with the Azure ML workspace. Finally, a release pipeline is configured to deploy the model automatically whenever a new model version is registered.

Question 238

HOTSPOT - You use an Azure Machine Learning workspace. You create the following Python code: For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for DP-100 question 238 Illustration for DP-100 question 238
Show Answer
Correct Answer: No Yes Yes
Explanation:
1) An environment is explicitly provided (myenv), so a default environment is not created. 2) No compute_target is specified; by default, ScriptRunConfig runs on local compute. 3) ScriptRunConfig is configured to run train.py from the directory specified by project_folder.

Question 239

You develop a machine learning project on a local machine. The project uses the Azure Machine Learning SDK for Python. You use Git as version control for scripts. You submit a training run that returns a Run object. You need to retrieve the active Git branch for the training run. Which two code segments should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. details = run.get_environment()
B. details.properties['azureml.git.branch']
C. details.properties['azureml.git.commit']
D. details = run.get_details()
Show Answer
Correct Answer: B, D
Explanation:
To retrieve the active Git branch, you first obtain the run metadata by calling run.get_details(), which returns a dictionary containing run information. The Git integration details are stored in the properties section of that dictionary, where the active branch is available under the key 'azureml.git.branch'. Therefore, using run.get_details() followed by accessing details.properties['azureml.git.branch'] retrieves the active Git branch.

Question 240

HOTSPOT - You are the owner of an Azure Machine Learning workspace. You must prevent the creation or deletion of compute resources by using a custom role. You must allow all other operations inside the workspace. You need to configure the custom role. How should you complete the configuration? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for DP-100 question 240
Show Answer
Correct Answer: Actions: Microsoft.MachineLearningServices/workspaces/*/read Microsoft.MachineLearningServices/workspaces/*/write NotActions: Microsoft.MachineLearningServices/workspaces/computes/*/write Microsoft.MachineLearningServices/workspaces/computes/*/delete
Explanation:
Grant full read/write access at the workspace level, then explicitly exclude compute write and delete operations. Azure RBAC evaluates effective permissions as Actions minus NotActions, which prevents creating or deleting compute resources while allowing all other workspace operations.

Question 241

You use Azure Machine Learning to train a model based on a dataset named dataset1. You define a dataset monitor and create a dataset named dataset2 that contains new data. You need to compare dataset1 and dataset2 by using the Azure Machine Learning SDK for Python. Which method of the DataDriftDetector class should you use?

A. run
B. get
C. backfill
D. update
Show Answer
Correct Answer: A
Explanation:
To compare a baseline dataset (dataset1) with a new dataset (dataset2) for data drift using the Azure Machine Learning SDK for Python, you use the run method of the DataDriftDetector class. The run method performs an ad-hoc drift analysis between the reference and target datasets and generates the drift metrics and report. The backfill method is used only for historical, time-based drift analysis, not for a direct comparison of two datasets.

Question 242

You use an Azure Machine Learning workspace. You have a trained model that must be deployed as a web service. Users must authenticate by using Azure Active Directory. What should you do?

A. Deploy the model to Azure Kubernetes Service (AKS). During deployment, set the token_auth_enabled parameter of the target configuration object to true
B. Deploy the model to Azure Container Instances. During deployment, set the auth_enabled parameter of the target configuration object to true
C. Deploy the model to Azure Container Instances. During deployment, set the token_auth_enabled parameter of the target configuration object to true
D. Deploy the model to Azure Kubernetes Service (AKS). During deployment, set the auth.enabled parameter of the target configuration object to true
Show Answer
Correct Answer: A
Explanation:
Users must authenticate using Azure Active Directory, which requires token-based authentication. In Azure Machine Learning (v1), Azure AD authentication for deployed web services is supported when deploying to Azure Kubernetes Service (AKS) by enabling token-based auth. This is done by setting token_auth_enabled=True in the AKS deployment configuration. Azure Container Instances do not support Azure AD token authentication for web services, and auth_enabled refers to key-based authentication, not Azure AD.

$19

Get all 477 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.