DP-100 · Question #487
You use the Azure Machine Learning SDK v2 for Python and notebooks to train a model. You use Python code to create a compute target, an environment, and a training script. You need to prepare…
The correct answer is D. command. In the Azure Machine Learning SDK v2 for Python, the command class (or command() function) (D) is the primary abstraction used to define a training job. It encapsulates all job configuration: the training script, compute target, environment, inputs, outputs, and…
Question
Options
- AMLClient
- BBuildContext
- CEndpointConnection
- Dcommand
How the community answered
(53 responses)- A4% (2)
- B4% (2)
- C2% (1)
- D91% (48)
Explanation
In the Azure Machine Learning SDK v2 for Python, the command class (or command() function) (D) is the primary abstraction used to define a training job. It encapsulates all job configuration: the training script, compute target, environment, inputs, outputs, and hyperparameters. Once configured, the resulting Command object is submitted via MLClient.jobs.create_or_update(). MLClient (A) is the workspace client used to interact with Azure ML services but does not define the job itself. BuildContext (B) is not an AML SDK v2 concept. EndpointConnection (C) relates to endpoint connectivity, not job submission.
Topics
Community Discussion
No community discussion yet for this question.