Microsoft

DP-100 Free Practice Questions — Page 16

Question 159

You create an Azure Machine Learning workspace. You are implementing hyperparameter tuning for a model training from a notebook. You must configure a Bandit termination policy that provides the following outcome: If the value of the primary metric of AUC is 0.8 at the point of evaluation intervals, any run with the primary metric value below 0.66 will be terminated. You need to identify which Bandit termination policy configuration to use. What should you identify?

A. Set slack_amount to 0.2.
B. Set slack_factor to 0.1.
C. Set slack_factor to 0.2.
D. Set slack_amount to 0.1.
Show Answer
Correct Answer: C
Explanation:
In a Bandit termination policy with a maximize goal, slack_factor defines the allowable relative drop from the best run: runs are terminated if metric < best_metric / (1 + slack_factor). With best AUC = 0.8 and slack_factor = 0.2, the cutoff is 0.8 / 1.2 ≈ 0.66, matching the requirement. slack_amount is an absolute difference and would not yield this threshold.

Question 160

DRAG DROP - You create an Azure Machine Learning workspace. You are training a classification model with no-code AutoML in Azure Machine Learning studio. The model must predict if a client of a financial institution will subscribe to a fixed-term deposit. You must preview the data profile in Azure Machine Learning studio once the dataset is created. You need to train 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.

Illustration for DP-100 question 160
Show Answer
Correct Answer: Create a tabular dataset. Create a compute cluster. Create an experiment. Create an automated ML job.
Explanation:
AutoML classification requires a tabular dataset, which also enables data profile preview. The compute cluster must exist before running training. An experiment is used to track runs, and finally the automated ML job is created to train the model.

Question 161

HOTSPOT - You create an Azure Machine Learning workspace and install the MLflow library. You need to log different types of data by using the MLflow library. Which method 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 161
Show Answer
Correct Answer: matplotlib plot: log_figure boolean value: log_metric
Explanation:
In MLflow, matplotlib figures are logged with log_figure(). Boolean values are logged as metrics (converted to 0/1) using log_metric().

Question 162

HOTSPOT - You are designing a machine learning solution. You have the following requirements: • Use a training script to train a machine learning model. • Build a machine learning proof of concept without the use of code or script. You need to select a development tool for each requirement. Which development tool 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 162
Show Answer
Correct Answer: Use a training script to train a machine learning model: Azure Machine Learning SDK for Python (Run configuration) Build a machine learning proof of concept without the use of code or script: Designer
Explanation:
Training with a script requires a code-based approach, which is provided by the Azure Machine Learning SDK using a run configuration. Building a proof of concept without writing code is best achieved with the Azure Machine Learning Designer, which offers a drag-and-drop interface.

Question 163

HOTSPOT - You train classification and regression models by using automated machine learning. You must evaluate automated machine learning experiment results. The results include how a classification model is making systematic errors in its predictions and the relationship between the target feature and the regression model’s predictions. You must use charts generated by automated machine learning. You need to choose a chart type for each model type. Which chart types 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 163
Show Answer
Correct Answer: Classification: Confusion matrix Regression: Predicted vs. true
Explanation:
A confusion matrix reveals systematic classification errors across classes. The predicted vs. true chart shows the relationship between actual target values and regression predictions, highlighting accuracy and bias.

Question 164

You manage an Azure Machine Learning workspace by using the Azure CLI ml extension v2. You need to define a YAML schema to create a compute cluster. Which schema should you use?

A. https://azuremlschemas.azureedge.net/latest/computeInstance.schema.json
B. https://azuremlschemas.azureedge.net/latest/amlCompute.schema.json
C. https://azuremlschemas.azureedge.net/latest/vmCompute.schema.json
D. https://azuremlschemas.azureedge.net/latest/kubernetesCompute.schema.json
Show Answer
Correct Answer: B
Explanation:
In Azure Machine Learning CLI v2, a compute *cluster* is defined using the **amlCompute** resource type. The corresponding YAML schema for creating and managing scalable AML compute clusters is `amlCompute.schema.json`. The other schemas apply to different compute types: computeInstance (single-user VM), vmCompute (attached VM), and kubernetesCompute (AKS/Arc Kubernetes).

Question 165

DRAG DROP - You have an existing GitHub repository containing Azure Machine Learning project files. You need to clone the repository to your Azure Machine Learning shared workspace file system. 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. 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 165
Show Answer
Correct Answer: From the terminal window in the Azure Machine Learning interface, run the ssh-keygen command. From the terminal window in the Azure Machine Learning interface, run the cat ~/.ssh/id_rsa.pub command. Add a public key to the GitHub account. From the terminal window in the Azure Machine Learning interface, run the git clone command.
Explanation:
Generate an SSH key pair, display the public key, register it with GitHub for authentication, then clone the repository into the Azure Machine Learning workspace.

Question 166

DRAG DROP - You create an Azure Machine Learning workspace. You need to use the shared file system of the workspace to store a clone of a private Git repository. 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.

Illustration for DP-100 question 166
Show Answer
Correct Answer: Create a compute instance. Run the ssh-keygen command. Copy the public key to GitHub. Run the git clone command.
Explanation:
A compute instance provides access to the workspace shared file system. An SSH key pair is generated locally, the public key is added to GitHub for authentication, and then the private repository can be cloned via SSH into the shared storage.

Question 167

You use the Azure Machine Learning SDK for Python v1 and notebooks to train a model. You create a compute target, an environment, and a training script by using Python code. You need to prepare information to submit a training run. Which class should you use?

A. ScriptRun
B. ScriptRunConfig
C. RunConfiguration
D. Run
Show Answer
Correct Answer: B
Explanation:
In Azure Machine Learning SDK for Python v1, the class used to prepare all the information required to submit a training run—such as the training script, compute target, environment, and arguments—is ScriptRunConfig. It encapsulates the run configuration and is passed to an Experiment to submit the training job.

Question 168

You create an Azure Machine Learning workspace. You use Azure Machine Learning designer to create a pipeline within the workspace. You need to submit a pipeline run from the designer. What should you do first?

A. Create an experiment.
B. Create an attached compute resource.
C. Create a compute cluster.
D. Select a model.
Show Answer
Correct Answer: A
Explanation:
In Azure Machine Learning Designer (v2), when you submit a pipeline run, the first required step in the submission flow is to select an existing experiment or create a new one. The UI does not allow you to proceed to runtime and compute selection until an experiment is chosen. While a compute cluster is required to actually run the pipeline, it is selected after the experiment during submission, so creating or selecting an experiment is the first action.

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