exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 6 question 29 discussion

Actual exam question from Microsoft's AZ-104
Question #: 29
Topic #: 6
[All AZ-104 Questions]

HOTSPOT -
You have two Azure subscriptions named Sub1 and Sub2. Sub1 is in a management group named MG1. Sub2 is in a management group named MG2.
You have the resource groups shown in the following table.

You have the virtual machines shown in the following table.

You assign roles to users as shown in the following table.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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
James3958904
Highly Voted 2 years, 6 months ago
I think the answers should be: N N N 1. User1 can sign in to VM1 No User1 is assigned as Virtual Machine Contributor in MG1. And Virtual Machine Contributor can't log in to VM as a regular user. 2. User2 can manage disks and disk snapshots of VM1 No Since User2 only has Virtual Machine User in Sub1, so he can log in to VM1 but can't manage disks or snapshots 3. User2 can manage disks and disk snapshots of VM3 No Virtual Machine Contributor only has permission to manage disks, but not disk snapshots (Disk Snapshot Contributor permission)
upvoted 107 times
James3958904
2 years, 6 months ago
refer: https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
upvoted 4 times
...
Ravi1383
2 years, 4 months ago
User1 can sign in to VM1 No - Only for classic VM contributor! Classic Virtual Machine Contributor Lets you manage classic virtual machines, but not access to them, and not the virtual network or storage account they're connected to. Virtual Machine Contributor Create and manage virtual machines, manage disks, install and run software, reset password of the root user of the virtual machine using VM extensions, and manage local user accounts using VM extensions. This role does not grant you management access to the virtual network or storage account the virtual machines are connected to. This role does not allow you to assign roles in Azure RBAC.
upvoted 2 times
yfontana
2 years, 4 months ago
Virtual Machine Contributor doesn't include the data action Microsoft.Compute/virtualMachines/login/action, which is what's required to login to a VM. Compare https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor and https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-user-login
upvoted 3 times
...
...
flurgen248
2 years, 4 months ago
I think you're right. Virtual Machine contributor does have some Recovery Services permissions, but none for SnapShots. NNN https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor
upvoted 6 times
...
daws08322
2 years ago
What is Virtual Machine Contributor role good for in Azure? Experience Level: Senior Tags: Azure CloudAzure Virtual Machines Answer Create and manage virtual machines, manage disks and disk snapshots, install and run software, reset password of the root user of the virtual machine using VM extensions, and manage local user accounts using VM extensions. This role does not grant you management access to the virtual network or storage account the virtual machines are connected to. This role does not allow you to assign roles in Azure RBAC.
upvoted 2 times
...
...
jellybiscuit
Highly Voted 2 years, 5 months ago
N - effective rights are virtual machine contributor. This doesn't grant login. N - effective rights are virtual machine login. This doesn't grant disk management. N - effective rights are virtual machine contributor. This does not grant snapshot access.
upvoted 27 times
airmancompsci
2 years, 3 months ago
What about the Virtual Machine User Login role that User1 is granted through Sub1? Since VM1 is in Sub1, won't User1 be able to access it since it is in the same subscription? I see everyone putting "No" for the first one, and I just want to know why the Virtual Machine User Login doesn't work.
upvoted 1 times
Lexxsuse
2 years, 2 months ago
User1 is granted login through Sub2, not Sub1
upvoted 3 times
...
...
...
Abhisk127
Most Recent 1 month, 1 week ago
This question was exam on dated -23 Jan 2025 Yes No No
upvoted 1 times
...
Jay_D_Lincoln
1 month, 1 week ago
User1 CAN sign/log in to VM1 Virtual Machine Contributor: Microsoft.Compute/virtualMachines/* Virtual Machine User Login: Microsoft.Compute/virtualMachines/login/action Meaning it can log in to a virtual machine as a regular user because * means everything included
upvoted 1 times
...
[Removed]
5 months ago
WRONG.. No No No
upvoted 4 times
...
joolitan
5 months, 2 weeks ago
N N N User1 can sign in VM1 = no (user 1 user login is Sub2, RG2 only VM2 n VM3 ) User2 can manage disks and disk snapshots of VM1 = no (because only Disk Snapshot Contributor can) User2 can manage disks and disk snapshots of VM3 = no (because only Disk Snapshot Contributor can)
upvoted 2 times
...
23169fd
9 months ago
The Virtual Machine Contributor role does not include permissions to manage disk snapshots. Instead, the Disk Snapshot Contributor role is specifically designed to manage disk snapshots.
upvoted 2 times
...
Amir1909
1 year ago
Yes No
upvoted 1 times
...
PhoenixAscending
1 year, 1 month ago
This was on my exam, I picked Y N N. The first answer is Y because of the following reasons: Virtual Machine Contributor role permission: Microsoft.Compute/virtualMachines/* Virtual Machine User Login role permission: Microsoft.Compute/virtualMachines/login/action References: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-user-login
upvoted 6 times
c75e123
1 month, 4 weeks ago
To log in to a virtual machine, you need permissions for the data plane action "Microsoft.Compute/virtualMachines/login/action" The new Virtual Machine Contributor role does not have any data permissions. The correct answer is N N N. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute#virtual-machine-user-login https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute#virtual-machine-contributor
upvoted 1 times
...
...
SgtDumitru
1 year, 2 months ago
VM Contributor DOESN'T allow to login to a VM or to manage Disk Snapshot. Therefor, N N N Source: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor
upvoted 3 times
...
Jared69420
1 year, 3 months ago
Some of you really need to ACTUALLY read the RBAC docs... 1. Y - Virtual Machine Contributor (NOT CLASSIC) has "Microsoft.Compute/virtualMachines/*" 2. N 3. N
upvoted 6 times
szydlo
9 months, 1 week ago
Login action is a DataAction, and Contributor has none allowed.
upvoted 1 times
...
...
samk01
1 year, 3 months ago
User2 can manage disks and disk snapshots of VM3: User2 has been assigned the role of "Virtual Machine Contributor" for MG2 and "Virtual Machine User Login" for VM3 specifically. As a "Virtual Machine Contributor", User2 would have permissions to manage VM resources including disks and snapshots. Since VM3 is in RG2, and assuming RG2 is under MG2, User2 should be able to manage disks and disk snapshots for VM3. Answer: Yes
upvoted 2 times
...
Vestibal
1 year, 4 months ago
N,N,Y 1. User1 signing in to VM1: User1 has the "Virtual Machine Contributor" role assigned at the management group level for MG1, which includes Sub1 where VM1 resides. The "Virtual Machine Contributor" role allows managing virtual machines but does not grant permission to log in to them​1​. However, User1 doesn't have the "Virtual Machine User Login" role assigned for Sub1 or VM1, which is necessary to log into VM1.
upvoted 3 times
Vestibal
1 year, 4 months ago
2. User2 managing disks and disk snapshots of VM1: User2 has the "Virtual Machine Contributor" role assigned at the management group level for MG2. However, VM1 is in Sub1 which falls under MG1, not MG2. Therefore, User2 doesn't have permissions to manage disks and disk snapshots of VM1 based on the "Virtual Machine Contributor" role. 3. User2 managing disks and disk snapshots of VM3: User2 has the "Virtual Machine Contributor" role assigned at the management group level for MG2, which includes Sub2 where VM3 resides. The "Virtual Machine Contributor" role allows managing virtual machines and their disks​1​. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
upvoted 2 times
...
...
sardonique
1 year, 4 months ago
Microsoft reference page: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor Quoting: "Virtual Machine Contributor" "Create and manage virtual machines, manage disks, install and run software, reset password of the root user of the virtual machine using VM extensions, and manage local user accounts using VM extensions. This role does not grant you management access to the virtual network or storage account the virtual machines are connected to. This role does not allow you to assign roles in Azure RBAC." "Role id: 9980e02c-c2be-4d73-94e8-173b1dc7cf3c". You need some sort of access in order to be able to install and run software. Conclusion: a VM contributor can login to the VM
upvoted 1 times
...
Josete1106
1 year, 7 months ago
N N N , All No!
upvoted 1 times
...
[Removed]
1 year, 8 months ago
Please find my finds, If it is not correct, please correct it Yes -> User1 can sign in to VM1 -> Because User1 is Virtual Machine contributor at Management Group, MG1 level NO -> User2 can manage disks and disk snapshots of VM1 -> Because User2, virtual machine contributor is at MG2 level. Yes -> Users2 can manage disks and disk snapshots of VM3 -> Because User is virtual machine contributor at MG2 level.
upvoted 6 times
...
chiquito
1 year, 8 months ago
I think the correct answers are 3 N N N. Here is why: NO - Virtual machine contributor role lets you manage virtual machines, but not access them. User 1 has login to virtual machines on Sub1 not subscription 2. NO - To manage disk snapshots you need: disk snapshot contributor role. User2 doesn't have that role. Ref: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#all https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#disk-snapshot-contributor
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago