nerdexam
Microsoft

DP-100 · Question #186

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…

The correct answer is B. resource_group C. subscription_id. To connect to an Azure Machine Learning workspace using the SDK, the config.json file must contain three required fields: 'workspace_name', 'resource_group', and 'subscription_id'. The question states a config.json was already created (implying 'workspace_name' is present), so…

Explore data and run experiments

Question

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. 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.

Options

  • Alogin
  • Bresource_group
  • Csubscription_id
  • Dkey
  • Eregion

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    87% (20)
  • D
    9% (2)

Explanation

To connect to an Azure Machine Learning workspace using the SDK, the config.json file must contain three required fields: 'workspace_name', 'resource_group', and 'subscription_id'. The question states a config.json was already created (implying 'workspace_name' is present), so the two missing parameters are 'resource_group' (B) and 'subscription_id' (C). These three values uniquely identify a workspace within Azure. 'login' (A) and 'key' (D) are not valid config.json fields for the Azure ML SDK workspace connection, and 'region' (E) is not required in config.json-the SDK resolves location from the workspace metadata.

Topics

#Azure ML SDK#Workspace connection#config.json#Environment setup

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice