Free DP-100 Exam Braindumps
Designing and Implementing a Data Science Solution on Azure Questions 196–200 (page: 41)

Updated On: 10-Feb-2026

You plan to run a script as an experiment using a Script Run Configuration. The script uses modules from the scipy library as well as several Python packages that are not typically installed in a default conda environment.
You plan to run the experiment on your local workstation for small datasets and scale out the experiment by running it on more powerful remote compute clusters for larger datasets.
You need to ensure that the experiment runs successfully on local and remote compute with the least administrative effort.
What should you do?

  1. Do not specify an environment in the run configuration for the experiment. Run the experiment by using the default environment.
  2. Create a virtual machine (VM) with the required Python configuration and attach the VM as a compute target. Use this compute target for all experiment runs.
  3. Create and register an Environment that includes the required packages. Use this Environment for all experiment runs.
  4. Create a config.yaml file defining the conda packages that are required and save the file in the experiment folder.
  5. Always run the experiment with an Estimator by using the default packages.

Answer(s): C

Explanation:

If you have an existing Conda environment on your local computer, then you can use the service to create an environment object. By using this strategy, you can reuse your local interactive environment on remote runs.


Reference:

https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-environments



You write a Python script that processes data in a comma-separated values (CSV) file.
You plan to run this script as an Azure Machine Learning experiment.
The script loads the data and determines the number of rows it contains using the following code:
You need to record the row count as a metric named row_count that can be returned using the get_metrics method of the Run object after the experiment run completes.
Which code should you use?

  1. run.upload_file(T3 row_count', './data.csv')
  2. run.log('row_count', rows)
  3. run.tag('row_count', rows)
  4. run.log_table('row_count', rows)
  5. run.log_row('row_count', rows)

Answer(s): B

Explanation:

Log a numerical or string value to the run with the given name using log(name, value, description=''). Logging a metric to a run causes that metric to be stored in the run record in the experiment. You can log the same metric multiple times within a run, the result being considered a vector of that metric.
Example: run.log("accuracy", 0.95)
Incorrect Answers:
E: Using log_row(name, description=None, **kwargs) creates a metric with multiple columns as described in kwargs. Each named parameter generates a column with the value specified. log_row can be called once to log an arbitrary tuple, or multiple times in a loop to generate a complete table.
Example: run.log_row("Y over X", x=1, y=0.4)


Reference:

https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.run



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 are creating a new experiment in Azure Machine Learning Studio.
One class has a much smaller number of observations than the other classes in the training set.
You need to select an appropriate data sampling strategy to compensate for the class imbalance.
Solution: You use the Synthetic Minority Oversampling Technique (SMOTE) sampling mode.
Does the solution meet the goal?

  1. Yes
  2. No

Answer(s): A

Explanation:

SMOTE is used to increase the number of underepresented cases in a dataset used for machine learning. SMOTE is a better way of increasing the number of rare cases than simply duplicating existing cases.


Reference:

https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/smote



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 are creating a new experiment in Azure Machine Learning Studio.
One class has a much smaller number of observations than the other classes in the training set.
You need to select an appropriate data sampling strategy to compensate for the class imbalance.
Solution: You use the Stratified split for the sampling mode.
Does the solution meet the goal?

  1. Yes
  2. No

Answer(s): B

Explanation:

Instead use the Synthetic Minority Oversampling Technique (SMOTE) sampling mode.
Note: SMOTE is used to increase the number of underepresented cases in a dataset used for machine learning. SMOTE is a better way of increasing the number of rare cases than simply duplicating existing cases.


Reference:

https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/smote



You are creating a machine learning model.
You need to identify outliers in the data.
Which two visualizations can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  1. Venn diagram
  2. Box plot
  3. ROC curve
  4. Random forest diagram
  5. Scatter plot

Answer(s): B,E

Explanation:

The box-plot algorithm can be used to display outliers.
One other way to quickly identify Outliers visually is to create scatter plots.


Reference:

https://blogs.msdn.microsoft.com/azuredev/2017/05/27/data-cleansing-tools-in-azure-machine-learning/



Viewing page 41 of 102
Viewing questions 201 - 205 out of 432 questions


Post your Comments and Discuss Microsoft DP-100 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!