exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 42 discussion

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

You create an Azure Machine Learning workspace.
You must create a custom role named DataScientist that meets the following requirements:
✑ Role members must not be able to delete the workspace.
✑ Role members must not be able to create, update, or delete compute resources in the workspace.
✑ Role members must not be able to add new users to the workspace.
You need to create a JSON file for the DataScientist role in the Azure Machine Learning workspace.
The custom role must enforce the restrictions specified by the IT Operations team.
Which JSON code segment should you use?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A
The following custom role can do everything in the workspace except for the following actions:
✑ It can't create or update a compute resource.
✑ It can't delete a compute resource.
✑ It can't add, delete, or alter role assignments.
✑ It can't delete the workspace.
To create a custom role, first construct a role definition JSON file that specifies the permission and scope for the role. The following example defines a custom role named "Data Scientist Custom" scoped at a specific workspace level: data_scientist_custom_role.json :
{
"Name": "Data Scientist Custom",
"IsCustom": true,
"Description": "Can run experiment but can't create or delete compute.",
"Actions": ["*"],
"NotActions": [
"Microsoft.MachineLearningServices/workspaces/*/delete",
"Microsoft.MachineLearningServices/workspaces/write",
"Microsoft.MachineLearningServices/workspaces/computes/*/write",
"Microsoft.MachineLearningServices/workspaces/computes/*/delete",
"Microsoft.Authorization/*/write"
],
"AssignableScopes": [
"/subscriptions/<subscription_id>/resourceGroups/<resource_group_name>/providers/Microsoft.MachineLearningServices/workspaces/
<workspace_name>"
]
}
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-assign-roles

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
MattAnya
Highly Voted 1 year, 11 months ago
0n exam 03 Jan2023
upvoted 9 times
...
ljljljlj
Highly Voted 3 years, 5 months ago
On exam 2021/7/10
upvoted 8 times
slash_nyk
3 years, 5 months ago
can you please share your experience. How many questions were there from this dump in the exam ?
upvoted 8 times
...
...
Karthikat
Most Recent 9 months ago
on exam 3/25/2024
upvoted 2 times
Purplejoint
8 months, 2 weeks ago
Great! Would you mind sharing your experience. How many questions from this dump were there? Would appreciate.
upvoted 2 times
...
...
NullVoider_0
10 months, 2 weeks ago
On exam 12-02-2024.
upvoted 2 times
...
Awooga
10 months, 3 weeks ago
On exam 2024-02-06
upvoted 1 times
...
Mal42
1 year, 4 months ago
On exam 18 Aug 2023
upvoted 3 times
...
phydev
1 year, 5 months ago
On exam 20 July 2023.
upvoted 2 times
...
henry_123
1 year, 6 months ago
On exam 2023-05-27
upvoted 2 times
...
casper22
1 year, 9 months ago
on exam 2023-03
upvoted 3 times
...
ahson0124
1 year, 10 months ago
On exam 2023-02-15
upvoted 2 times
...
Edriv
2 years ago
Option C
upvoted 3 times
...
therealola
2 years, 6 months ago
Similar question on exam 18-06-22
upvoted 2 times
...
racnaoamo
2 years, 7 months ago
on exam 18-5-22
upvoted 2 times
...
kkkk_jjjj
2 years, 9 months ago
similar question on exam 18/03/2022
upvoted 2 times
...
TheYazan
2 years, 9 months ago
Similar question on march-9-2022
upvoted 2 times
...
[Removed]
2 years, 10 months ago
On 20Feb2022
upvoted 1 times
...
kisskeo
3 years, 2 months ago
On Exam 01 Oct 2021
upvoted 2 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 ...