exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 2 question 36 discussion

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

You have an Azure subscription that contains a user named User1.
You need to ensure that User1 can deploy virtual machines and manage virtual networks. The solution must use the principle of least privilege.
Which role-based access control (RBAC) role should you assign to User1?

  • A. Owner
  • B. Virtual Machine Contributor
  • C. Contributor
  • D. Virtual Machine Administrator Login
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
wooyourdaddy
Highly Voted 4 years, 3 months ago
Should the answer be C. Contributor? Answer B, only allows the managing of the VM's and not the Virtual Networks as stated in the question.
upvoted 238 times
brakonda
3 years, 5 months ago
Admin given answer in description is B but if yo read description carefully it says B can only manage VM and not the network
upvoted 6 times
...
alessioferrario
4 years ago
I agree
upvoted 1 times
...
Miles19
3 years, 11 months ago
You are right, definitely, we need to assign a role of contributor, as the virtual machine contributor isn't enough - can't even manage the virtual networks to which the VM is attached to. See details: https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
upvoted 2 times
...
ciscogeek
3 years, 11 months ago
Whatever Manage means by Microsoft standards, as per the doc they say, VM Contributor can manage. Virtual Machine Contributor Lets you "manage" virtual machines, but not access to them, and not the virtual network or storage account they're connected to. I would go for B.
upvoted 3 times
Gadzee
3 years, 1 month ago
I would go for B taking into account that they say "least privilege"
upvoted 5 times
Broniac
2 years, 11 months ago
yes but, with B you can only achieve to manage VMs not Vnets which is also mentioned.
upvoted 10 times
...
...
Deputy7
3 years ago
Bro, It is User1 can deploy virtual machines and manage virtual networks. So, Definitely C.
upvoted 2 times
...
brico
3 years, 8 months ago
Can't be B. As you mentioned in your response, "and not the virtual network...". C is the correct answer.
upvoted 8 times
Hari2017
3 years ago
Answer is C because though the question says least privilege it should meet both the conditions of managing VMs & VNets.
upvoted 7 times
...
...
...
...
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: C Only Owner and Contributor can perform the actions, but we need to follow the least privilege principal, so Contributor. A: Owner- Grants full access to manage all resources, including the ability to assign roles in Azure RBAC. B: Virtual Machine Contributor - 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. C: Contributor - Grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC, manage assignments in Azure Blueprints, or share image galleries. D: Virtual Machine Administrator Login - View Virtual Machines in the portal and login as administrator. Reference: https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
upvoted 150 times
...
0dc4dd8
Most Recent 1 month, 1 week ago
Selected Answer: B
Virtual Machine Contributor (Option B): Permissions: Create and manage virtual machines. Manage virtual networks (e.g., create, update, delete virtual networks and subnets). Manage network interfaces and disks. Limitations: Does not allow User1 to manage other Azure resources (e.g., storage accounts, databases).
upvoted 1 times
...
JustinYoo
2 months, 3 weeks ago
Selected Answer: C
Virtual Machine Contributor: This role only allows the user to manage VMs but not virtual networks, so it would not provide the ability to manage virtual networks.
upvoted 1 times
...
[Removed]
6 months ago
Selected Answer: C
C is corerct
upvoted 2 times
...
brandon4sam
1 year ago
Question is tricky, but it states "Least privilege" So answer C is correct
upvoted 1 times
...
Amir1909
1 year ago
C is correct
upvoted 1 times
...
stanislaus450
1 year ago
The correct answer is B. Virtual Machine Contributor1. The Virtual Machine Contributor role allows a user to create and manage virtual machines, manage disks, install and run software, reset the password of the root user of the virtual machine using VM extensions, and manage local user accounts using VM extensions1. However, this role does not grant management access to the virtual network or storage account the virtual machines are connected to1. For managing virtual networks, User1 would also need the Network Contributor role1. This role lets you manage all networking resources, but not access to them1.
upvoted 1 times
stanislaus450
1 year ago
Please note that the Owner role (option A) grants full access to manage all resources, including the ability to assign roles in Azure RBAC1, which might be more than what’s needed if you’re following the principle of least privilege. The Contributor role (option C) grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC1, which might also be more than what’s needed. The Virtual Machine Administrator Login role (option D) allows you to view virtual machines in the portal and login as administrator1, but it does not allow you to deploy virtual machines or manage virtual networks
upvoted 1 times
...
...
[Removed]
1 year, 1 month ago
Selected Answer: C
Contributor
upvoted 1 times
...
TSKARAN
1 year, 3 months ago
Selected Answer: C
Virtual Machine Contributor > B: Wrong Answer. 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. Correct answer > C. Contributor
upvoted 2 times
...
Mehedi007
1 year, 7 months ago
Selected Answer: C
'Contributor': because both vm and vnet need to be managed. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#contributor
upvoted 2 times
...
[Removed]
1 year, 8 months ago
Selected Answer: C
https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles Grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC, manage assignments in Azure Blueprints, or share image galleries
upvoted 1 times
...
Athul07
1 year, 9 months ago
C. Contributor To ensure that User1 can deploy virtual machines and manage virtual networks with the principle of least privilege, you should assign the Contributor role to User1. The Contributor role provides permissions to create and manage Azure resources but does not grant excessive privileges like the Owner role. By assigning the Contributor role, User1 will have the necessary permissions to deploy virtual machines and manage virtual networks without having unrestricted access to other resources or the subscription management. The Virtual Machine Contributor role is more limited and focuses specifically on managing virtual machines. It does not include permissions to manage virtual networks, so it is not the most appropriate choice for this scenario. The Virtual Machine Administrator Login role is specific to Windows Virtual Desktop and grants permissions to manage the administrative accounts for virtual machines in a virtual desktop infrastructure. Therefore, the best option in this scenario is to assign the Contributor role to User1.
upvoted 1 times
...
emptyH
1 year, 9 months ago
Keyword here is & Networks. Only the contributor role can manage the VM's and the Networks.
upvoted 2 times
...
hz78
1 year, 10 months ago
B. Virtual Machine Contributor. To meet the requirement of allowing User1 to deploy virtual machines and manage virtual networks with the principle of least privilege, the Virtual Machine Contributor role should be assigned to User1. This role allows User1 to manage virtual machines, but only those virtual machines for which they have been granted access. Additionally, this role provides permissions to manage the virtual network resources required to support the virtual machines. Assigning the Owner or Contributor role to User1 would provide more permissions than necessary, and therefore, does not follow the principle of least privilege. The Virtual Machine Administrator Login role does not provide the necessary permissions to deploy virtual machines or manage virtual networks.
upvoted 2 times
...
Kishore_Ahmed
2 years, 1 month ago
Answer is C. Because having user1 has role of "VirtualMachineContributor", User1 can 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. But we cannot create VM as this role as dosen't having write access to Microsoft.Network/virtualNetworks Microsoft.Network/publicIPAddresses Microsoft.Network/networkSecurityGroups which stops VM creation.
upvoted 1 times
...
Raj70
2 years, 4 months ago
Virtual Machine Contributor can only do "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.", so it is clear that there is nothing it can do with VNET's and therefore the answer is C.
upvoted 1 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