An administrator needs to configure access to a virtual machine named Web-VM located in a resource group named App-RG.
The configuration must meet the following requirements:
1. A developer must be able to start, stop, and configure Web-VM.
2. The developer must not be able to grant access permissions to other users.
3. No user, including the developer, should be able to accidentally delete Web-VM.
To meet these requirements with the least privilege, which configuration should the administrator implement?
- AAssign the Contributor role to the developer at the Web-VM scope, and apply a ReadOnly lock to Web-VM.
- BAssign the Owner role to the developer at the Web-VM scope, and assign an Azure Policy at the App-RG scope to prevent the deletion of Web-VM.
- Assign the Contributor role to the developer at the Web-VM scope, and apply a Delete lock to Web-VM.Cevap
- DConfigure an Azure Policy assignment at the App-RG scope that grants the developer permissions to manage Web-VM, and apply a Delete lock to Web-VM.
Cevap
Assign the Contributor role to the developer at the Web-VM scope, and apply a Delete lock to Web-VM.
The correct option assigns the Contributor role directly at the Web-VM resource scope, which allows the developer to manage the virtual machine but prevents them from delegating access to others (unlike the Owner role). Applying a Delete lock prevents accidental deletion of the resource while still allowing operational actions like starting and stopping the VM.
Adım Adım Çözüm
Anahtar Kavram
Azure Role-Based Access Control (RBAC) roles, scopes, and resource locks integration