New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-100 Exam - Topic 3 Question 7 Discussion

Actual exam question for Microsoft's DP-100 exam
Question #: 7
Topic #: 3
[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 resource 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>'

]

}


https://docs.microsoft.com/en-us/azure/machine-learning/how-to-assign-roles

Contribute your Thoughts:

0/2000 characters
Devora
4 months ago
I agree, B seems to be the safest choice here!
upvoted 0 times
...
Tiera
5 months ago
Definitely not Option C, it has too many permissions.
upvoted 0 times
...
Karol
5 months ago
Wait, can they really not delete anything? That seems strict!
upvoted 0 times
...
Toi
5 months ago
I think Option A might be better, though.
upvoted 0 times
...
Elina
5 months ago
Option B looks like it fits the requirements.
upvoted 0 times
...
Annamae
5 months ago
I think I saw a question like this in our last mock exam, and it had to do with JSON structure. I hope I can identify the correct permissions quickly!
upvoted 0 times
...
Hannah
5 months ago
I feel like Option C might be the right choice since it seems to restrict user management, but I’m a bit uncertain about the specifics.
upvoted 0 times
...
Lea
5 months ago
I think we practiced a similar question about custom roles, and I recall that compute resources need specific permissions. I just can't remember which option to choose.
upvoted 0 times
...
Fletcher
5 months ago
I remember we discussed the importance of not allowing delete permissions for roles, but I'm not sure which option reflects that correctly.
upvoted 0 times
...
Filiberto
5 months ago
This looks like a tricky question about Apache HTTPD configuration. I'll need to carefully review the options and think through the mod_authz_core module to determine the correct answers.
upvoted 0 times
...
Nida
5 months ago
I think it's True since REST services use standard HTTP methods like GET and POST.
upvoted 0 times
...
Cecilia
5 months ago
Alright, I've got this. The question is asking about the impact of a change in the expected dividend growth rate, and we need to determine which position would benefit the most. I think I know the right approach, so I'm going to give it my best shot.
upvoted 0 times
...
Luann
6 months ago
I'm a bit confused about the requirement that these questions can't be revisited. Does that mean I need to be extra careful in selecting the right answer the first time?
upvoted 0 times
...
Bernardine
6 months ago
Alright, time to put my Blue Prism knowledge to the test. I remember learning about the different WCF and encryption options, so I think I can figure this out.
upvoted 0 times
...

Save Cancel