exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 107 discussion

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

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:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
Environment is a required parameter. The environment to use for the run. If no environment is specified, azureml.core.runconfig.DEFAULT_CPU_IMAGE will be used as the Docker image for the run.
The following example shows how to instantiate a new environment. from azureml.core import Environment myenv = Environment(name="myenv")

Box 2: Yes -
Parameter compute_target: The compute target where training will happen. This can either be a ComputeTarget object, the name of an existing ComputeTarget, or the string "local". If no compute target is specified, your local machine will be used.

Box 3: Yes -
Parameter source_directory. A local directory containing code files needed for a run.
Parameter script. The file path relative to the source_directory of the script to be run.
Reference:
https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.scriptrunconfig https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.environment.environment

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
jefimija
5 months, 2 weeks ago
how do we know it's local compute?
upvoted 2 times
...
a6cb3b0
1 year ago
No-Yes-Yes for 2nd: The compute target where training will happen. This can either be a ComputeTarget object, the name of an existing ComputeTarget, or the string "local". If no compute target is specified, your local machine will be used. see: https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.scriptrunconfig?view=azure-ml-py
upvoted 2 times
...
haby
1 year, 3 months ago
No - Yes - Yes; for 2nd , compute_target = None by default, which means if not setting, run on local compute by default
upvoted 2 times
...
ferren
1 year, 7 months ago
type in chat gpt and answer is No No Yes
upvoted 1 times
...
Batman160591
1 year, 9 months ago
The default environment will be created: No The training script will run on local compute: No A script run configuration runs a training script named train.py located in the directory defined by the project_folder variable: Yes
upvoted 3 times
...
giusecozza
2 years, 7 months ago
I'm skeptic about Box3: "A ScriptRunConfig object is used to configure the information necessary for submitting a training run as part of an Experiment"...so it should "configure", not "run"...isn't it? https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.scriptrunconfig?view=azure-ml-py
upvoted 3 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