exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 5 question 30 discussion

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

HOTSPOT -
You are developing a two-step Azure Machine Learning pipeline by using the Azure Machine Learning SDK for Python.
The pipeline must pass temporary data from the first step to the second step.
You need to configure the second step to ensure that it can use the temporary data from the first step.
Which class and method should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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
giusecozza
Highly Voted 2 years, 7 months ago
It seems the correct answers should be OutputFileDatasetConfig and as_input(). It is clearly explained on Microsoft Learn: https://docs.microsoft.com/en-us/training/modules/create-pipelines-in-aml/3-pipeline-data
upvoted 33 times
Sadhak
5 months, 1 week ago
Class: OutputDatasetConfig Method: as_named_input
upvoted 1 times
...
Mckay_
2 years, 6 months ago
I agree with you 100%
upvoted 1 times
...
NeitherLand
2 years, 6 months ago
Absolutely
upvoted 1 times
...
JTWang
2 years, 6 months ago
Correct !!
upvoted 3 times
...
...
zishankamal
Most Recent 1 year, 2 months ago
Class: OutputDatasetConfig Method: as_named_input
upvoted 2 times
...
Krista2023A
1 year, 7 months ago
OutputFileDatasetConfig as_named_input https://learn.microsoft.com/en-us/azure/machine-learning/how-to-move-data-in-out-of-pipelines?view=azureml-api-1 from azureml.data import OutputFileDatasetConfig dataprep_output = OutputFileDatasetConfig() input_dataset = Dataset.get_by_name(workspace, 'raw_data') dataprep_step = PythonScriptStep( name="prep_data", script_name="dataprep.py", compute_target=cluster, arguments=[input_dataset.as_named_input('raw_data').as_mount(), dataprep_output] )
upvoted 3 times
...
Yuriy_Ch
2 years, 1 month ago
Exactly this question was on exam 07/March/2023
upvoted 3 times
...
phdykd
2 years, 2 months ago
Class: OutputDatasetConfig Method: as_named_input You could use the as_input method instead of as_named_input if you do not need to pass the output from the first step as a named input in the second step. The as_input method is used to pass an output from a previous step as an input to a subsequent step. However, when you use as_input, the input will not have a name and it will be treated as a regular positional argument to the script. In contrast, when you use as_named_input, the input will have a name and can be consumed using that name as an argument to the script. In the case of passing temporary data from the first step to the second step, it is generally recommended to use as_named_input so that the input can be easily identified and consumed in the second step. Therefore, you could use as_input instead of as_named_input, but as_named_input is the more appropriate method to use in this case.
upvoted 2 times
...
Crusader2k13
2 years, 4 months ago
Microsoft mixed up their own stuff here. It is the PipelineData object used for temporary data storage produced by one step of a pipeline to another step, creating a data dependency! See: https://learn.microsoft.com/en-us/python/api/azureml-pipeline-core/azureml.pipeline.core.pipelinedata?view=azure-ml-py Even in the mentioned " https://learn.microsoft.com/en-us/training/modules/create-pipelines-in-aml/3-pipeline-data" they commented "PipelineData" but wrote "OutputFileDatasetConfig", take a look at the code.
upvoted 1 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