AZ-500 Exam QuestionsBrowse all questions from this exam

AZ-500 Exam - Question 136


You have an Azure subscription that is linked to an Azure AD tenant and contains the resources shown in the following table.

Which resources can be assigned the Contributor role for VM1?

Show Answer
Correct Answer: AD

The Contributor role in Azure can be assigned to users, groups, service principals, and managed identities. Group1 is a dynamic device security group and such groups are not eligible for role assignment. Managed1 is a managed identity and can be assigned the Contributor role. VM1, which has a system-assigned managed identity, can also be assigned the Contributor role. App1, an enterprise application (service principal), can also have roles assigned. Thus, the resources that can be assigned the Contributor role for VM1 are Managed1, VM1, and App1. Therefore, the resources that can be assigned the Contributor role for VM1 are Managed1, VM1, and App1.

Discussion

17 comments
Sign in to comment
973b658Option: D
May 29, 2023

D. https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-steps "You can assign a role to a user, group, service principal, or managed identity. " App1 has service principal. https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal

liorh
Jun 6, 2023

looks correct to me

Franc_Coetzee
Jun 26, 2023

The keyword for the Group is "Dynamic", once you make any group a dynamic group, the option to assign roles to it becomes grayed out.

bxlin
May 17, 2024

that is not true. you can assign role to a dynamic group

basak
Aug 16, 2023

Tested. D is correct.

OrangeSGOption: A
Oct 8, 2023

The Contributor role can be assigned to any Azure resource, including users, groups, service principals, and managed identities. • Group1 is a dynamic device security group in Azure AD. Dynamic groups are not role-assignable, so Group1 cannot be assigned the Contributor role for VM1. • Managed1 is a managed identity. Managed identities can be assigned the Contributor role for VM1. • VM1 is a virtual machine. Virtual machines can be assigned the Contributor role for themselves. • App1 is an enterprise application in Azure AD. Enterprise applications can be assigned the Contributor role for VM1. Therefore, the only resources that can be assigned the Contributor role for VM1 are Managed1, VM1, and App1.

ITTestersOption: A
Jul 4, 2023

Answer is A; You can assign a role to a user, group, service principal, or managed identity. This is also called a security principal. https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-steps#step-1-determine-who-needs-access Cannot be a dynamic group; https://learn.microsoft.com/en-us/azure/active-directory/roles/groups-concept#how-are-role-assignable-groups-protected

ghostmeOption: B
May 28, 2023

You can assign Contributor/Reader or any Subscription role to User, Group, Managed Identity and Service Principle. Correct Answer in this case is "Group1 and Managed1 Only"

rosefOption: A
Nov 25, 2023

Tested. When creating a group, if you choose dynamic user "Microsoft Entra roles can be assigned to the group" option turns to NO automatically. So when you eliminate group1, answer is A.

xRiot007
Jul 17, 2024

Microsoft Entra roles and RBAC roles are 2 different things.

ManiMessnerOption: D
Nov 27, 2023

Tested, D is correct

bluekingOption: D
Jun 10, 2023

Answer is D

AlexbzOption: D
Jun 17, 2023

Confirmed in my lab. I think VM1 in D should change to VM2 though.

vcloudpmp
Aug 20, 2023

https://learn.microsoft.com/en-us/azure/active-directory/roles/groups-concept Only Global Administrators and Privileged Role Administrators can create a role-assignable group. The membership type for role-assignable groups must be Assigned and can't be an Azure AD dynamic group.Automated population of dynamic groups could lead to an unwanted account being added to the group and thus assigned to the role.

InnoMafOption: A
Sep 11, 2023

Correct answer is A role-assignable groups is limited to AD Azure roles https://learn.microsoft.com/en-us/azure/active-directory/roles/groups-concept#restrictions-for-role-assignable-groups

WilianCAriasOption: D
Dec 14, 2023

D. https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-steps "You can assign a role to a user, group, service principal, or managed identity. "

liorh
May 28, 2023

what is the correct answer?

ErikPJordanOption: A
Sep 20, 2023

Correct answer is A

wardy1983Option: D
Nov 15, 2023

Answer: D Explanation: Confirmed in my lab. I think VM1 in D should change to VM2 though.

hfk2020Option: D
Dec 26, 2023

Difference between Azure AD roles and Azure RBAC is as follows: RBAC can have a User, group, or service principal, Managed identity (group nesting is allowed and the group can dynamic as well Azure AD roles only users and groups (group nesting is not allowed as soon as you enable entra roles can be enabled the membership type greys out to assign and group nesting is not allowed. Here contributor is a RBAC role not azure ad role

cris_examOption: A
Jan 25, 2024

This question is weird, because it should have a choice for: Managed ID, App1 and VM. Dynamic Entra Sec Groups cannot have roles assigned, all the other can have. The closet answer to truth is A.

ACSCOption: D
Mar 27, 2024

Tested for user, group, VM and App. All of them can be assigned Contributor role for VM.