exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 21 discussion

Actual exam question from Microsoft's DP-100
Question #: 21
Topic #: 3
[All DP-100 Questions]

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?

  • A. Do not specify an environment in the run configuration for the experiment. Run the experiment by using the default environment.
  • B. 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.
  • C. Create and register an Environment that includes the required packages. Use this Environment for all experiment runs.
  • D. Create a config.yaml file defining the conda packages that are required and save the file in the experiment folder.
  • E. Always run the experiment with an Estimator by using the default packages.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
scipio
Highly Voted 3 years, 5 months ago
C is correct. You may use a yml file to create the Environment and then register it to be used everywhere. If you put the file in the experiment folder you need to create the env every run, against the "least administrative effort" requirement
upvoted 21 times
...
dija123
Highly Voted 2 years, 11 months ago
Selected Answer: C
C is correct
upvoted 5 times
...
evangelist
Most Recent 5 months ago
C is the correct answer
upvoted 1 times
...
PI_Team
1 year, 3 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
esimsek
1 year, 7 months ago
Selected Answer: C
Registering environment is correct.
upvoted 1 times
...
esimsek
1 year, 7 months ago
In exam 2023-03-23
upvoted 3 times
...
phdykd
1 year, 8 months ago
Creating a config.yaml file is not recommended in this scenario since the experiment is being run on both local and remote compute. It would require copying the file to every location where the experiment is run, which can be a time-consuming administrative task. Using an Estimator with the default packages is not recommended in this scenario since the required packages are not typically installed in a default conda environment.
upvoted 1 times
...
phdykd
1 year, 8 months ago
C. The best solution for this scenario is to create and register an environment that includes the required packages, and use this environment for all experiment runs. This ensures that the experiment runs successfully on both local and remote compute with the least administrative effort. Specifying an environment in the run configuration is necessary to ensure that the correct packages and dependencies are used. If no environment is specified, the default environment may not include the required packages, leading to errors. Creating a virtual machine (VM) as a compute target is not necessary in this scenario since the experiment is being run on local and remote compute, not just remote compute. Also, creating and managing a VM can be a time-consuming administrative task.
upvoted 2 times
...
michaelmorar
1 year, 10 months ago
Selected Answer: D
C cannot be correct if we are creating an Environment using it for every run?
upvoted 2 times
...
BilJon
3 years, 7 months ago
The case described is for a local Workstation, so the answer is correct. For real-time inferencing service a .yml file is needed
upvoted 3 times
NaishinMatiri
3 years, 6 months ago
the experiment also specify is should work remotely: 'and scale out the experiment by running it on more powerful remote compute clusters for larger datasets.' I think answer should be D since it would work in both cases
upvoted 4 times
...
...
dev2dev
3 years, 7 months ago
D is correct answer. It may not possible to have an environment with all necessary packages installed. yaml can ensure this.
upvoted 4 times
azurecert2021
3 years, 4 months ago
Yes D look more correct.
upvoted 1 times
...
azure1000
3 years, 3 months ago
I think when you create an environment you can give all necessary packages using conda dependencies.
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago