Microsoft
DP-100 · Question #136
You write five Python scripts that must be processed in the order specified in Exhibit A - which allows the same modules to run in parallel, but will wait for modules with dependencies. You must creat
Sign in or unlock DP-100 to reveal the answer and full explanation for question #136. The question stem and answer options stay visible for context.
Design and prepare a machine learning solution
Question
You write five Python scripts that must be processed in the order specified in Exhibit A - which allows the same modules to run in parallel, but will wait for modules with dependencies. You must create an Azure Machine Learning pipeline using the Python SDK, because you want to script to create the pipeline to be tracked in your version control system. You have created five PythonScriptSteps and have named the variables to match the module names. You need to create the pipeline shown. Assume all relevant imports have been done. Which Python code segment should you use? A. B. C. D.
Exhibits
Options
- Ap = Pipeline(ws, steps=[[[step_1_a, step_1_b], step_2_a], step_2_b], step_3])
- BPipeline_steps = { "pipeline": { "run": "step_3", "run_after": [{ "run": "step_2_a", "run_after": [ {"run": "step_1_a"}, {"run": "step_1_b"} ] }], {"run": "step_2_b"}] } }
- Cp = Pipeline(ws, steps=pipeline_steps) step_2_a.run_after(step_1_a) step_2_a.run_after(step_1_b) step_2_run_after(step_2_b) step_3.run_after(step_2_a) p = Pipeline(ws, steps=[step_3])
- Dp = Pipeline(ws, steps=[step_1_a, step_1_b, step_2_a, step_2_b, step_3])
Unlock DP-100 to see the answer
You've previewed enough free DP-100 questions. Unlock DP-100 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Azure Machine Learning Pipelines#Python SDK#Pipeline Dependencies#Parallel Execution


