Microsoft

DP-100 Free Practice Questions — Page 2

Question 12

You manage an Azure Machine Learning Workspace named Workspase1 and an Azure Files share named Share1. You plan to create an Azure Files datastore in Workspace1 to target Share1. You need to configure permanent access to Share1 from the Azure Files datastore. Which authorization method should you use?

A. Primary access key
B. Anonymous access
C. Account SAS key
D. User delegation SAS key
Show Answer
Correct Answer: A
Explanation:
Permanent access to an Azure Files share requires credentials that do not expire. The primary access key for the storage account provides continuous, full access to Azure Files and is supported by Azure Machine Learning datastores. SAS-based options are time-limited, and anonymous access is not appropriate for secured Azure Files access.

Question 14

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You manage an Azure Machine Learning workspace. The Python script named script.py reads an argument named training_data. The training_data argument specifies the path to the training data in a file named dataset1.csv. You plan to run the script.py Python script as a command job that trains a machine learning model. You need to provide the command to pass the path for the dataset as a parameter value when you submit the script as a training job. Solution: python script.py --training_data ${{inputs.training_data}} Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
In an Azure Machine Learning command job, the command string uses the inputs binding syntax ${{inputs.training_data}} to pass the dataset path to a script argument. Defining the input itself is done elsewhere in the job configuration, but the question only asks for the command used to pass the parameter. Therefore, the solution meets the goal.

Question 15

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure Machine Learning workspace. You plan to tune model hyperparameters by using a sweep job. You need to find a sampling method that supports early termination of low-performance jobs and continuous hyperparameters. Solution: Use the Bayesian sampling method over the hyperparameter space. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
In Azure Machine Learning hyperparameter tuning, Bayesian sampling supports continuous hyperparameters but **does not support early termination policies**. When Bayesian sampling is used, the early termination policy must be set to None. Since the goal explicitly requires support for early termination of low-performance jobs, using Bayesian sampling does not meet the requirement.

Question 16

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You manage an Azure Machine Learning workspace. The development environment for managing the workspace is configured to use Python SDK v2 in Azure Machine Learning Notebooks. A Synapse Spark Compute is currently attached and uses system-assigned identity. You need to use Python code to update the Synapse Spark Compute to use a user-assigned identity. Solution: Configure the IdentityConfiguration class with the appropriate identity type. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
In Azure ML SDK v2, updating a Synapse Spark Compute’s managed identity is done by configuring and assigning an IdentityConfiguration object. By setting the identity type to UserAssigned and specifying the user-assigned identity, the compute is updated from system-assigned to user-assigned identity. Therefore, the proposed solution meets the goal.

Question 17

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You manage an Azure Machine Learning workspace. The development environment for managing the workspace is configured to use Python SDK v2 in Azure Machine Learning Notebooks. A Synapse Spark Compute is currently attached and uses system-assigned identity. You need to use Python code to update the Synapse Spark Compute to use a user-assigned identity. Solution: Initialize the DefaultAzureCredential class. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Initializing DefaultAzureCredential only configures how the Python SDK authenticates to Azure. It does not change the identity configuration of a Synapse Spark compute. Updating a Synapse Spark compute from system-assigned to user-assigned identity requires explicitly modifying the compute/identity settings via the appropriate Azure ML or Synapse management APIs, not just initializing credentials.

Question 18

You manage an Azure Machine Learning workspace that includes a batch endpoint. You plan to deploy a model to the batch endpoint. You need to configure compute for the deployment. Which compute should you use?

A. Remote VM
B. AmlCompute instance
C. Azure Batch
D. Kubernetes cluster
Show Answer
Correct Answer: B
Explanation:
Azure Machine Learning batch endpoints run on compute clusters. The native and recommended compute type is an Azure Machine Learning compute cluster (AmlCompute). Azure Batch is a separate service, Remote VMs are not used, and while Kubernetes clusters can be supported in some scenarios, batch endpoints are typically deployed on AmlCompute clusters.

Question 19

You have an Azure Machine Learning workspace and a serverless Spark compute resource. You plan to run the same Spark session every 40 minutes. Each session runs for 15 minutes. During testing, you observe a 15-minute delay at the start of the Spark sessions. You need to reduce the delay to less than 1 minute. What should you do?

A. Configure the session timeout to be 25 minutes.
B. Increase the number of nodes to 16.
C. Enable dynamically allocated executors.
D. Enable an isolated compute.
Show Answer
Correct Answer: A
Explanation:
The delay is caused by cold start of the serverless Spark session. Because the job runs every 40 minutes and executes for 15 minutes, the session shuts down between runs and must be re-created, which takes about 15 minutes. By configuring the session timeout to 25 minutes, the Spark session remains alive between executions (40 − 15 = 25), keeping it warm and reducing startup delay to under a minute. The other options do not address session cold-start behavior.

Question 20

DRAG DROP - You set up a machine learning workflow as an automated process. You have an Owner role in an Azure subscription that contains the Azure Machine Learning workspace. You must set up an authentication method that allows an automated process to authenticate to the workspace without requiring user interaction. You need to set up the authentication for the Azure Machine Learning workspace. Which three 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. NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

Illustration for DP-100 question 20
Show Answer
Correct Answer: Create a service principal in Microsoft Entra ID by registering a new application Add a client secret, write a description for your key, and select duration Select Access Control (IAM) and grant the Contributor role for the service principal
Explanation:
For non-interactive authentication, an automated process uses a service principal. You first register an application to create the service principal, then generate a client secret for credential-based authentication, and finally assign the required RBAC role (Contributor) on the Azure Machine Learning workspace so the service principal can access and manage resources.

Question 21

HOTSPOT - You manage an Azure Machine Learning workspace named Workspace1 and an Azure Blob Storage accessed by using the URL https://storage1.blob.core.windows.net/data1. You plan to create an Azure Blob datastore in Workspace1. The datastore must target the Blob Storage by using Azure Machine Learning Python SDK v2. Access authorization to the datastore must be limited to a specific amount of time. You need to select the parameters of the AzureBlobDatastore class that will point to the target datastore and authorize access to it. Which parameters should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for DP-100 question 21
Show Answer
Correct Answer: container_name="data1" credentials=SaTokenConfiguration
Explanation:
For Azure Blob Storage, the AzureBlobDatastore must reference the blob container using the container_name parameter. To limit access to a specific time window, a Shared Access Signature (SAS) token is required, which is provided via SaTokenConfiguration rather than an account key or service principal.

Question 22

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You manage an Azure Machine Learning workspace. The development environment for managing the workspace is configured to use Python SDK v2 in Azure Machine Learning Notebooks. A Synapse Spark Compute is currently attached and uses system-assigned identity. You need to use Python code to update the Synapse Spark Compute to use a user-assigned identity. Solution: Create an instance of the MLClient class. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Creating an MLClient instance is only a prerequisite for interacting with Azure Machine Learning resources. By itself, it does not update a Synapse Spark Compute or change its managed identity. Additional code is required to modify the compute’s identity configuration, so the solution does not meet the goal.

$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.