exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 58 discussion

Actual exam question from Microsoft's DP-100
Question #: 58
Topic #: 4
[All DP-100 Questions]

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?

  • A. MLClient
  • B. BuildContext
  • C. EndpointConnection
  • D. command
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
evangelist
11 months, 2 weeks ago
D is correct
upvoted 1 times
...
deyoz
1 year, 4 months ago
i overlooked word "preparing" and thought to submit. Anyway after the preparation, to submit the for job run, the required class in ml_client. correct answer is command, which is class to prepare or configure a run.
upvoted 1 times
...
phdykd
1 year, 10 months ago
command. To run this script, you'll use a command that executes main.py Python script located under ./sdk/python/jobs/single-step/lightgbm/iris/src/. The command will be run by submitting it as a job to Azure ML.
upvoted 2 times
...
damaldon
1 year, 11 months ago
Correct. #import required libraries from azure.ai.ml import MLClient, command from azure.ai.ml.entities import Environment from azure.identity import DefaultAzureCredential #connect to the workspace ml_client = MLClient.from_config(DefaultAzureCredential()) # set up pytorch environment env = Environment( image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04", conda_file="pytorch-env.yml", name="pytorch-env" ) # define the command command_job = command( code="./src", command="train.py", environment=env, compute="cpu-cluster", ) returned_job = ml_client.jobs.create_or_update(command_job) returned_job
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...