exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 78 discussion

Actual exam question from Microsoft's DP-100
Question #: 78
Topic #: 2
[All DP-100 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have the following Azure subscriptions and Azure Machine Learning service workspaces:



You need to obtain a reference to the ml-project workspace.

Solution: Run the following Python code:



Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LadyCasilda
8 months, 2 weeks ago
On exam 18 August 2023
upvoted 2 times
...
phydev
9 months, 2 weeks ago
On exam 20 July 2023.
upvoted 2 times
...
vmcompra
10 months, 1 week ago
Selected Answer: B
Answer is B. NO Using the constructor, you need to include at least the "subscription_id", "resource_group" and "workspace_name" as they are REQUIRED. https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.workspace.workspace?view=azure-ml-py
upvoted 4 times
...
Norasit
10 months, 1 week ago
There is no method in the 'Workspace' class that accepts the 'workspace_name' parameter.
upvoted 1 times
...
BrahderLau
11 months ago
Since, subscription_id and resource_group are required, hence the answer is No Workspace(subscription_id, resource_group, workspace_name, auth=None, _location=None, _disable_service_check=False, _workspace_id=None, sku='basic', tags=None, _cloud='AzureCloud') https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.workspace.workspace?view=azure-ml-py#constructor
upvoted 3 times
...
krishna1818
11 months, 1 week ago
ws = workspace.get(name='...')
upvoted 1 times
...
rishi_ram
11 months, 1 week ago
Selected Answer: A
Workspace(subscription_id, resource_group, workspace_name, auth=None, _location=None, _disable_service_check=False, _workspace_id=None, sku='basic', tags=None, _cloud='AzureCloud') parameter name is workspace_name not name hence all other options are wrong This is correct ans
upvoted 1 times
...
Alex310andra
1 year, 1 month ago
What is the difference between this question and the one before?
upvoted 1 times
Alex310andra
1 year, 1 month ago
Ah sorry "get" is missing
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago