New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-100 Exam - Topic 2 Question 59 Discussion

Actual exam question for Microsoft's DP-100 exam
Question #: 59
Topic #: 2
[All DP-100 Questions]

You use the following code to define the steps for a pipeline:

from azureml.core import Workspace, Experiment, Run

from azureml.pipeline.core import Pipeline

from azureml.pipeline.steps import PythonScriptStep

ws = Workspace.from_config()

. . .

step1 = PythonScriptStep(name="step1", ...)

step2 = PythonScriptsStep(name="step2", ...)

pipeline_steps = [step1, step2]

You need to add code to run the steps.

Which two code segments can you use to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer: C, D

After you define your steps, you build the pipeline by using some or all of those steps.

# Build the pipeline. Example:

pipeline1 = Pipeline(workspace=ws, steps=[compare_models])

# Submit the pipeline to be run

pipeline_run1 = Experiment(ws, 'Compare_Models_Exp').submit(pipeline1)


https://docs.microsoft.com/en-us/azure/machine-learning/how-to-create-machine-learning-pipelines

Contribute your Thoughts:

0/2000 characters
Murray
4 months ago
Surprised that D works, I thought it wouldn't!
upvoted 0 times
...
Melodie
4 months ago
C seems a bit off, isn't it?
upvoted 0 times
...
Alyce
4 months ago
Wait, isn't B missing something?
upvoted 0 times
...
Shay
4 months ago
I think D is the right choice too!
upvoted 0 times
...
Sage
5 months ago
A and C look good to me!
upvoted 0 times
...
Carmelina
5 months ago
I’m a bit confused about option B; it seems off since it doesn’t involve an Experiment or Pipeline object.
upvoted 0 times
...
Josphine
5 months ago
I practiced a similar question, and I think option D makes sense because it directly submits the pipeline.
upvoted 0 times
...
Dalene
5 months ago
I'm not entirely sure, but I feel like option A could be right since it mentions submitting an experiment.
upvoted 0 times
...
Mickie
5 months ago
I remember that we need to create a Pipeline object before running it, so I think options C and D might be correct.
upvoted 0 times
...
Roosevelt
5 months ago
Okay, the key here is understanding what the second capital letter represents. I'll make sure I know that concept well.
upvoted 0 times
...
Dulce
5 months ago
I'm a bit confused by the details around the board's decision to go with the second alternative. I'll need to closely examine the potential conflicts of interest and governance issues raised by the shareholders.
upvoted 0 times
...
Audrie
5 months ago
I'm a bit confused by this question. Are we looking for the single most effective option, or are there multiple good choices? I'll need to think this through carefully before selecting an answer.
upvoted 0 times
...
Letha
5 months ago
Hmm, I'm not sure about this one. I'll have to think it through carefully.
upvoted 0 times
...

Save Cancel