Question 18 — AZ-104 Practice Exam 16
You assign Reader at the resource group to Alex. A second assignment at the same resource group gives Alex a custom role with Actions: Microsoft.Compute/* and Microsoft.Network/*, and NotActions: */delete. You must predict Alex’s effective permissions under Azure RBAC’s allow model. (Select one answer)
Alex can only view resources; the Reader role overrides all other roles.
Alex can delete compute resources because
Microsoft.Compute/*includes delete.Alex can create and update VMs and VNets in that resource group but cannot delete them; read access applies to everything else in the group.
Alex cannot perform any write operations unless granted at the subscription scope.
Correct answers
Alex can create and update VMs and VNets in that resource group but cannot delete them; read access applies to everything else in the group.
Explanations
Correct:
Alex can create and update VMs and VNets in that resource group but cannot delete them; read access applies to everything else in the group. Azure RBAC is an allow model: effective permissions are the union of allowed actions minus NotActions. Reader adds read across the RG; the custom role adds write for Compute/Network but */delete removes deletes.
Wrong:
Alex can only view resources… Reader doesn’t override other roles; permissions aggregate.
Alex can delete compute resources… NotActions: */delete explicitly removes delete.
Alex cannot perform any write operations unless at subscription scope. Scope doesn’t need to be subscription; assignments at RG scope grant write there.