ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 88 - DP-100 discussion

Report
Export

You create an Azure Machine Learning workspace. You are preparing a local Python environment on a laptop computer. You want to use the laptop to connect to the workspace and run experiments.

You create the following config.json file.

{

"workspace_name" : "ml-workspace"

}

You must use the Azure Machine Learning SDK to interact with data and experiments in the workspace.

You need to configure the config.json file to connect to the workspace from the Python environment.

Which two additional parameters must you add to the config.json file in order to connect to the workspace? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
login
Answers
A.
login
B.
resource_group
Answers
B.
resource_group
C.
subscription_id
Answers
C.
subscription_id
D.
key
Answers
D.
key
E.
region
Answers
E.
region
Suggested answer: B, C

Explanation:

To use the same workspace in multiple environments, create a JSON configuration file. The configuration file saves your subscription (subscription_id), resource (resource_group), and workspace name so that it can be easily loaded.

The following sample shows how to create a workspace.

from azureml.core import Workspace ws = Workspace.create(name='myworkspace', subscription_id='<azure-subscription-id>', resource_group='myresourcegroup', create_resource_group=True,

location='eastus2'

)

Reference:

https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.workspace.workspace

asked 02/10/2024
Juan Pablo Mateos Ornelas
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first