Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 🗳️
Contributor: Grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC
Incorrect Answers:
A: Owner: Grants full access to manage all resources, including the ability to assign roles in Azure RBAC.
B: 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.
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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
wooyourdaddy
Highly Voted 3 years, 4 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 225 times
Holydud
1 year, 8 months ago
Was on exam 19 Aug 2022. Scored 870. Answered C
upvoted 18 times
TDsysadmin
1 year, 8 months ago
did you prepare from this dump only?
upvoted 6 times
...
...
alessioferrario
3 years, 1 month ago
I agree
upvoted 1 times
...
Miles19
3 years 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 1 times
...
ciscogeek
3 years 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 2 times
Gadzee
2 years, 3 months ago
I would go for B taking into account that they say "least privilege"
upvoted 5 times
Broniac
2 years, 1 month ago
yes but, with B you can only achieve to manage VMs not Vnets which is also mentioned.
upvoted 9 times
...
...
Deputy7
2 years, 1 month ago
Bro, It is User1 can deploy virtual machines and manage virtual networks. So, Definitely C.
upvoted 2 times
...
brico
2 years, 9 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
2 years, 2 months ago
Answer is C because though the question says least privilege it should meet both the conditions of managing VMs & VNets.
upvoted 5 times
...
...
...
...
mlantonis
Highly Voted 2 years, 11 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 145 times
...
brandon4sam
Most Recent 2 months ago
Question is tricky, but it states "Least privilege" So answer C is correct
upvoted 1 times
...
Amir1909
2 months ago
C is correct
upvoted 1 times
...
stanislaus450
2 months, 1 week 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
2 months, 1 week 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
...
...
BanzaiEd
3 months, 2 weeks ago
Selected Answer: C
Contributor
upvoted 1 times
...
TSKARAN
4 months, 3 weeks ago
Selected Answer: C
Ref: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles 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
...
mattpaul
5 months, 3 weeks ago
I passed with these questions and many friends passed too, all questions appeared in the real exam a great study resource, contact me on [email protected]
upvoted 1 times
...
mattpaul
5 months, 4 weeks ago
I passed with these questions and many friends passed too, all questions appeared in the real exam a great study resource, contact me on [email protected]
upvoted 1 times
...
Dong_St
6 months, 2 weeks ago
The correct answer is B. Virtual Machine Contributor I took a test and got 90% with the C. Contributor option, and I retook the test with B and got 100%
upvoted 2 times
...
Kr1s
8 months, 3 weeks ago
Q was in exam 29th July 2023
upvoted 4 times
...
Mehedi007
8 months, 3 weeks 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
...
NYTK
9 months ago
This was on exams on 21/7/2023. I selected C
upvoted 2 times
...
raj24051961
9 months, 3 weeks 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
...
kmsalman
10 months ago
Was on the exam on 6/17/2023.
upvoted 1 times
...
Athul07
10 months, 3 weeks 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
10 months, 3 weeks ago
Keyword here is & Networks. Only the contributor role can manage the VM's and the Networks.
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 ...