exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 100 discussion

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

You have the following code. The code prepares an experiment to run a script:

The experiment must be run on local computer using the default environment.
You need to add code to start the experiment and run the script.
Which code segment should you use?

  • A. run = script_experiment.start_logging()
  • B. run = Run(experiment=script_experiment)
  • C. ws.get_run(run_id=experiment.id)
  • D. run = script_experiment.submit(config=script_config)
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
MattAnya
Highly Voted 1 year, 10 months ago
was on exam 01/03/2023
upvoted 6 times
...
evangelist
Most Recent 4 months, 3 weeks ago
Selected Answer: D
D is correct because it has a keyword :"submit" to run
upvoted 1 times
...
james2033
1 year ago
Selected Answer: D
Experiment.submit(...) is used to start the experiment. The config parameter of the submit method is used to specify the configuration for the run, which includes details about the script to be run and the compute target. In this case, since you want to run the experiment on your local computer using the default environment, you would use a ScriptRunConfig object, which you have already created as script_config, to specify the script and source directory. The script will be run in the default environment because you have not specified an environment in the ScriptRunConfig. run = script_experiment.submit(config = script_config) This line of code will start the experiment and run the script in your local environment. You can then use methods of the Run object, such as wait_for_completion, to monitor the progress of the run.
upvoted 1 times
james2033
1 year ago
Experiment and Run classes serve different purposes: Experiment: An Experiment in Azure Machine Learning is a container for a series of trials, or Runs. It’s a way to organize and group your machine learning work. You can have multiple runs under an experiment, each representing a different trial in your machine learning workflow. For example, you might create an experiment to test different algorithms on a dataset, with each run representing a trial with a specific algorithm. Run: A Run in Azure Machine Learning represents a single trial in an experiment. It’s an individual execution of a script or pipeline, and it can be used to monitor the progress of an experiment run, log metrics, store output files, and more. Each run has a unique identifier within its parent experiment. Experiment as a project or folder that contains related runs, and a Run as an individual trial or task within that project.
upvoted 2 times
...
...
azurelearner666
2 years, 6 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
synapse
2 years, 7 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
ranjsi01
2 years, 9 months ago
D is correct
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