
Answer-first summary for fast verification
Answer: No
The solution does NOT meet the goal because the Workspace.get() method requires authentication credentials to be provided, either explicitly or through environment configuration. The code shown does not include any authentication mechanism. While MLClient.from_config() can use default authentication (Azure CLI login, managed identity, or environment variables), the Workspace.get() method shown in the solution requires explicit credential handling. The community discussion shows a split opinion, but the most technically accurate comments with higher upvotes (2 upvotes each) correctly identify that credentials are required. The Microsoft documentation confirms that authentication is mandatory for workspace access.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have the following Azure subscriptions and Azure Machine Learning service workspaces:
12345678-1234-1234-1234-123456789abcml-projectrg-ml-projectsYou need to obtain a reference to the ml-project workspace.
Solution: Run the following Python code:
from azureml.core import Workspace
ws = Workspace.get(name='ml-project',
subscription_id='12345678-1234-1234-1234-123456789abc',
resource_group='rg-ml-projects')
from azureml.core import Workspace
ws = Workspace.get(name='ml-project',
subscription_id='12345678-1234-1234-1234-123456789abc',
resource_group='rg-ml-projects')
Does the solution meet the goal?

A
Yes
B
No
No comments yet.