You create an Azure Machine Learning compute target named ComputeOne by using the STANDARD_D1 virtual machine image

Posted by: Pdfprep Category: DP-100 Tags: , ,

HOTSPOT

You create an Azure Machine Learning compute target named ComputeOne by using the STANDARD_D1 virtual machine image.

ComputeOne is currently idle and has zero active nodes.

You define a Python variable named was that references the Azure Machine Learning workspace.

You run the following Python code:

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Answer:

Explanation:

Box 1: Yes

ComputeTargetException class: An exception related to failures when creating, interacting with, or configuring a compute target. This exception is commonly raised for failures attaching a compute target, missing headers, and unsupported configuration values.

Create (workspace, name, provisioning_configuration)

Provision a Compute object by specifying a compute type and related configuration.

This method creates a new compute target rather than attaching an existing one.

Box 2: Yes

Box 3: No

The line before print(‘Step1’) will fail.

Reference: https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.compute.computetarget

Leave a Reply

Your email address will not be published.