exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 66 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You create a model to forecast weather conditions based on historical data.
You need to create a pipeline that runs a processing script to load data from a datastore and pass the processed data to a machine learning model training script.
Solution: Run the following code:

Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Note: Data used in pipeline can be produced by one step and consumed in another step by providing a PipelineData object as an output of one step and an input of one or more subsequent steps.
Compare with this example, the pipeline train step depends on the process_step_output output of the pipeline process step: from azureml.pipeline.core import Pipeline, PipelineData from azureml.pipeline.steps import PythonScriptStep datastore = ws.get_default_datastore() process_step_output = PipelineData("processed_data", datastore=datastore) process_step = PythonScriptStep(script_name="process.py", arguments=["--data_for_train", process_step_output], outputs=[process_step_output], compute_target=aml_compute, source_directory=process_directory) train_step = PythonScriptStep(script_name="train.py", arguments=["--data_for_train", process_step_output], inputs=[process_step_output], compute_target=aml_compute, source_directory=train_directory) pipeline = Pipeline(workspace=ws, steps=[process_step, train_step])
Reference:
https://docs.microsoft.com/en-us/python/api/azureml-pipeline-core/azureml.pipeline.core.pipelinedata?view=azure-ml-py

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
lander_c
Highly Voted 3 years, 1 month ago
in train step the arguments=["--data_for_train", data_input] should be arguments=["--data_for_train", data_output]
upvoted 7 times
...
YipingRuan
Highly Voted 3 years, 3 months ago
In train step, "arguments=["--data_for_train", data_input]" is not correct.
upvoted 5 times
...
deyoz
Most Recent 8 months, 2 weeks ago
Selected Answer: B
I think in both the steps, it should be arguments=["--data_for_train", data_output]
upvoted 1 times
deyoz
8 months, 2 weeks ago
training step
upvoted 1 times
deyoz
8 months, 2 weeks ago
i mean not just in training step.
upvoted 1 times
...
...
...
ning
2 years, 5 months ago
Missing data input for training step
upvoted 1 times
...
jkuz
3 years ago
in second line it's a 'rawdatastore` which is not created before
upvoted 1 times
silva_831
1 year, 11 months ago
agree, since rawdatastore is not created in context.
upvoted 1 times
...
...
VJPrakash
3 years, 2 months ago
I think the answer should be 'YES'. The value is passed from process to train. How its being used depends on the script
upvoted 1 times
...
BigSoda
3 years, 4 months ago
the "date_input' line doesn't seem to be needed here
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