exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 18 discussion

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

You use the Azure Machine Learning Python SDK to define a pipeline that consists of multiple steps.
When you run the pipeline, you observe that some steps do not run. The cached output from a previous run is used instead.
You need to ensure that every step in the pipeline is run, even if the parameters and contents of the source directory have not changed since the previous run.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Use a PipelineData object that references a datastore other than the default datastore.
  • B. Set the regenerate_outputs property of the pipeline to True.
  • C. Set the allow_reuse property of each step in the pipeline to False.
  • D. Restart the compute cluster where the pipeline experiment is configured to run.
  • E. Set the outputs property of each step in the pipeline to True.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️
B: If regenerate_outputs is set to True, a new submit will always force generation of all step outputs, and disallow data reuse for any step of this run. Once this run is complete, however, subsequent runs may reuse the results of this run.
C: Keep the following in mind when working with pipeline steps, input/output data, and step reuse.
✑ If data used in a step is in a datastore and allow_reuse is True, then changes to the data change won't be detected. If the data is uploaded as part of the snapshot (under the step's source_directory), though this is not recommended, then the hash will change and will trigger a rerun.
Reference:
https://docs.microsoft.com/en-us/python/api/azureml-pipeline-core/azureml.pipeline.core.pipelinestep https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/aml-pipelines-getting- started.ipynb

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
ljljljlj
Highly Voted 1 year, 9 months ago
On exam 2021/7/10
upvoted 9 times
...
michaelmorar
Most Recent 5 months, 1 week ago
Selected Answer: BC
The other answers an nonsensical.
upvoted 1 times
...
kkkk_jjjj
1 year, 1 month ago
on exam 18/03/2022
upvoted 3 times
...
ranjsi01
1 year, 3 months ago
correct
upvoted 2 times
...
JoshuaXu
1 year, 5 months ago
on 6 Nov 2021
upvoted 1 times
...
santoshpandit
1 year, 10 months ago
correct
upvoted 3 times
...
HkIsCrazY
1 year, 10 months ago
seems 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