AZ-104 · Question #578
Hotspot Question You configure the custom role shown in the following exhibit. Use the drop-down menus to select the answer choice that completes each statement based on the information presented in…
The correct answer is To ensure that users can sign in to virtual machines that are assigned role1, modify the dataActions section = Yes; To ensure that role1 can be assigned only to a resource group named RG1, modify the assignableScopes section = Yes. The first statement is correct because signing in to virtual machines involves data plane operations (like Microsoft.Compute/virtualMachines/login/action), which must be defined in the 'dataActions' section of a custom role - not in the 'actions' section which covers control…
Question
Exhibits
Answer Area
- To ensure that users can sign in to virtual machines that are assigned role1, modify the dataActions sectionYes
- To ensure that role1 can be assigned only to a resource group named RG1, modify the assignableScopes sectionYes
Explanation
The first statement is correct because signing in to virtual machines involves data plane operations (like Microsoft.Compute/virtualMachines/login/action), which must be defined in the 'dataActions' section of a custom role - not in the 'actions' section which covers control plane operations. The second statement is correct because the 'assignableScopes' section defines where a role can be assigned; to restrict the role to only RG1, you would specify that resource group's full resource ID (e.g., /subscriptions/{subId}/resourceGroups/RG1) in the assignableScopes array, replacing or narrowing any broader scope like a subscription.
Topics
Community Discussion
No community discussion yet for this question.

