exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 52 discussion

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

You create a new Azure subscription. No resources are provisioned in the subscription.
You need to create an Azure Machine Learning workspace.
What are three possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Run Python code that uses the Azure ML SDK library and calls the Workspace.create method with name, subscription_id, and resource_group parameters.
  • B. Navigate to Azure Machine Learning studio and create a workspace.
  • C. Use the Azure Command Line Interface (CLI) with the Azure Machine Learning extension to call the az group create function with --name and --location parameters, and then the az ml workspace create function, specifying ג€"w and ג€"g parameters for the workspace name and resource group.
  • D. Navigate to Azure Machine Learning studio and create a workspace.
  • E. Run Python code that uses the Azure ML SDK library and calls the Workspace.get method with name, subscription_id, and resource_group parameters.
Show Suggested Answer Hide Answer
Suggested Answer: ABC 🗳️

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
ljljljlj
Highly Voted 3 years, 3 months ago
On exam 2021/7/10 My answers: ABC Correct options: A . Run Python code that uses the Azure ML SDK library and calls the Workspace.create method with name, subscription_id, resource_group, and location parameters. B . Use an Azure Resource Management template that includes a Microsoft.MachineLearningServices/ workspaces resource and its dependencies. C . Use the Azure Command Line Interface (CLI) with the Azure Machine Learning extension to call the az group create function with –name and –location parameters, and then the az ml workspace create function, specifying Cw and Cg parameters for the workspace name and resource group. D . Navigate to Azure Machine Learning studio and create a workspace. E . Run Python code that uses the Azure ML SDK library and calls the Workspace.get method with name, subscription_id, and resource_group parameters.
upvoted 39 times
JTWang
2 years ago
My Answer:BCD A is wrong at 2022/10 The subscription_id and resource_group is not needed. D is correct. You can go to http://ml.azure.com to create a new workspace! python code: ws_basic = Workspace( name=basic_workspace_name, location="eastus", display_name="Basic workspace-example", description="This example shows how to create a basic workspace", hbi_workspace=False, tags=dict(purpose="demo"), ) ml_client.workspaces.begin_create(ws_basic)
upvoted 7 times
...
PI_Team
1 year, 3 months ago
if there are no resources provisioned in the subscription, you cannot directly use Python code that calls Workspace.create method with the resource_group parameter. The resource_group parameter requires an existing resource group to be specified. So we can't use the "A" option. My Answer:BCD
upvoted 1 times
...
...
allanm
Highly Voted 3 years, 5 months ago
I'm confused - Why is B and D the same answer option?
upvoted 14 times
andre999
3 years, 4 months ago
The D option should be : Navigate to the Azure portal and create a workspace.
upvoted 11 times
ppchar
3 years, 4 months ago
then answer is: CD
upvoted 2 times
...
...
allanm
3 years, 5 months ago
Also noticed A & E are the same answers as well. What's going on?
upvoted 8 times
Norasit
1 year, 9 months ago
Try to look at Workspace.____ A. Workspace.create E. Workspace.get
upvoted 1 times
...
...
Edriv
1 year, 10 months ago
B or D are Azure Machine Learning Service
upvoted 1 times
...
...
NullVoider_0
Most Recent 10 months, 3 weeks ago
Selected Answer: ABC
Option A uses the SDK to programmatically create the workspace Option B leverages the visual interface to create the workspace Option C uses CLI commands to automatically create both resource group and workspace
upvoted 1 times
...
Nadine_nm
1 year, 2 months ago
Answers should be ABD : https://learn.microsoft.com/en-us/azure/machine-learning/concept-workspace?view=azureml-api-2 Workspace management task | Portal | Studio | Python SDK |Azure CLI | VS Code Create a workspace | ✓ | ✓ | ✓ | ✓ | ✓
upvoted 1 times
...
phdykd
1 year, 4 months ago
BCD. az group create --name <resource-group-name> --location <location> ws_basic = ml_client.workspaces.begin_create(ws_basic).result() print(ws_basic)
upvoted 1 times
...
krishna1818
1 year, 5 months ago
Selected Answer: BC
C is a definite option, and B also seems right
upvoted 1 times
...
Dilesha
1 year, 8 months ago
On Exam 17 Feb 2023
upvoted 6 times
AzureJobsTillRetire
1 year, 8 months ago
Thanks Dilesha. If by any chance you come back again, do you remember the differences between option B and D?
upvoted 3 times
hammamse
1 year, 7 months ago
The D option should be : Navigate to the Azure portal and create a workspace. And it's not correct. Correct answers are :A B C
upvoted 2 times
...
...
...
phdykd
1 year, 9 months ago
A. Run Python code that uses the Azure ML SDK library and calls the Workspace.create method with name, subscription_id, and resource_group parameters. B. Navigate to Azure Machine Learning studio and create a workspace. C. Use the Azure Command Line Interface (CLI) with the Azure Machine Learning extension to call the az group create function with --name and --location parameters, and then the az ml workspace create function, specifying "w" and "g" parameters for the workspace name and resource group. Option D. Navigate to Azure Machine Learning studio and create a workspace. is a correct answer, but it is a duplicate of option B. So, the correct answers are A, B, and C
upvoted 3 times
...
AzureJobsTillRetire
1 year, 9 months ago
Selected Answer: BCD
I think, but not 100% sure that the code for creation of a workspcace is workspaces.begin_create and not Workspaces.create as described in option A. example: ml_client.workspaces.begin_create(ws) https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-workspace?tabs=python
upvoted 1 times
AzureJobsTillRetire
1 year, 9 months ago
Sorry my bad. Workspace.create is correct. from azureml.core import Workspace ws = Workspace.create(name='myworkspace', subscription_id='<azure-subscription-id>', resource_group='myresourcegroup', create_resource_group=True, location='eastus2' ) https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.workspace.workspace?view=azure-ml-py#azureml-core-workspace-workspace-create
upvoted 3 times
...
AzureJobsTillRetire
1 year, 9 months ago
It seems that ABCD are all correct.
upvoted 1 times
...
...
MansoorDataScientist
1 year, 9 months ago
A cannot consider before creating a workspace, yes we can create through different methods of CICD but it's not considered here
upvoted 1 times
...
JTWang
2 years ago
If D is create workspace by Azure Machine Learning Studio, it is true! https://ml.azure.com/ You can go to https://ml.azure.com/ to create a new workspace.
upvoted 2 times
...
gursimran_s
2 years, 5 months ago
Why not ACD?
upvoted 2 times
...
zb99
2 years, 5 months ago
Selected Answer: BCD
A is wrong: Cannot create a workspace this way because resource group does not yet exist.
upvoted 2 times
casiopa
1 year, 11 months ago
You can create a Workspace this way, but you need to include this argument: create_resource_group=True. This is why option A is wrong, there is no previous resource group and it isn't created automatically on the Worspace.create method.
upvoted 1 times
dsaz
1 year, 10 months ago
`create_resource_group=True` by default according to the docs (https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.workspace.workspace?view=azure-ml-py#azureml-core-workspace-workspace-create). So A so be a valid option too
upvoted 3 times
...
...
...
ning
2 years, 5 months ago
With the correct options, ABC no doubt!
upvoted 1 times
...
DingDongSingSong
2 years, 7 months ago
Option D is a repeat
upvoted 3 times
...
Thornehead
2 years, 7 months ago
Selected Answer: ABC
Use Azure portal Python SDK or Azure CLI Use Resource Manager template https://docs.microsoft.com/en-us/azure/machine-learning/how-to-manage-workspace?tabs=python
upvoted 4 times
...
Thornehead
2 years, 7 months ago
Use Azure portal or Python SDK Use Azure CLI Use Resource Manager template This is from the https://docs.microsoft.com/en-us/azure/machine-learning/how-to-manage-workspace?tabs=python
upvoted 1 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