
Answer-first summary for fast verification
Answer: PythonScriptStep, CommandStep
The question requires identifying two classes that can run a Python script as a pipeline step in Azure ML. PythonScriptStep (A) is specifically designed to run Python scripts in Azure ML pipelines, making it the primary choice. CommandStep (C) can also run Python scripts by executing commands like 'python script.py', providing flexibility for custom command-line execution. AutoMLStep (B) is for automated machine learning workflows, not general Python script execution, and StepRun (D) represents a run of a pipeline step, not a class to create steps. The community discussion strongly supports AC with 100% consensus and detailed reasoning from multiple users, including code examples for CommandStep.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are building a data pipeline in an Azure Machine Learning workspace using the Azure Machine Learning SDK for Python.
You need to run a Python script as a pipeline step.
Which two classes can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A
PythonScriptStep
B
AutoMLStep
C
CommandStep
D
StepRun
No comments yet.