nerdexam
Microsoft

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…

Train and deploy models

Question

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 information to submit a training job. Which class should you use?

Options

  • AMLClient
  • BBuildContext
  • CEndpointConnection
  • Dcommand

How the community answered

(53 responses)
  • A
    4% (2)
  • B
    4% (2)
  • C
    2% (1)
  • D
    91% (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

#Azure Machine Learning SDK v2#Training job#Command job#Python SDK

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice