Free DP-100 Exam Braindumps (page: 37)

Page 36 of 127

You manage an Azure Machine Learning workspace named workspace1.
You must develop Python SDK v2 code to add a compute instance to workspace1. The code must import all required modules and call the constructor of the ComputeInstance class.
You need to add the instantiated compute instance to workspace1.
What should you use?

  1. constructor of the azure.ai.ml.ComputeSchedule class
  2. constructor of the azure.ai.ml.ComputePowerAction enum
  3. begin_create_or_update method of an instance of the azure.ai.ml.MLCIient class
  4. set_resources method of an instance of the azure.ai.ml.Command class

Answer(s): C



HOTSPOT (Drag and Drop is not supported)

You manage an Azure Machine Learning workspace.
You must define the execution environments for your jobs and encapsulate the dependencies for your code.
You need to configure the environment from a Docker build context.
How should you complete the code segment? To answer, select the appropriate option in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



HOTSPOT (Drag and Drop is not supported)

You create an Azure Machine Learning workspace. You use the Azure Machine Learning Python SDK v2 to create a compute cluster.
The compute cluster must run a training script. Costs associated with running the training script must be minimized.
You need to complete the Python script to create the compute cluster.
How should you complete the script? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



You create a workspace to include a compute instance by using Azure Machine Learning Studio. You are developing a Python SDK v2 notebook in the workspace.
You need to use Intellisense in the notebook.
What should you do?

  1. Stop the compute instance.
  2. Start the compute instance.
  3. Run a %pip magic function on the compute instance.
  4. Run a !pip magic function on the compute instance.

Answer(s): B






Post your Comments and Discuss Microsoft DP-100 exam with other Community members:

DP-100 Exam Discussions & Posts