nerdexam
MicrosoftMicrosoft

DP-100 · Question #136

DP-100 Question #136: Real Exam Question with Answer & Explanation

The correct answer is A: p = Pipeline(ws, steps=[[[step_1_a, step_1_b], step_2_a], step_2_b], step_3]). The steps parameter is an array of steps. To build pipelines that have multiple steps, place the steps in order in this array. https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-parallel-run-step

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.

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])

Explanation

The steps parameter is an array of steps. To build pipelines that have multiple steps, place the steps in order in this array. https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-parallel-run-step

Topics

#Azure Machine Learning Pipelines#Python SDK#Pipeline Dependencies#Parallel Execution

Community Discussion

No community discussion yet for this question.

Full DP-100 PracticeBrowse All DP-100 Questions