nerdexam
MicrosoftMicrosoft

AZ-104 · Question #595

AZ-104 Question #595: Real Exam Question with Answer & Explanation

Azure Hotspot Question — Detailed Explanation --- Statement 1: Users assigned Role1 can assign Role1 to others → No Why: Assigning roles in Azure RBAC requires the Microsoft.Authorization/roleAssignments/write permission. This is only included in Owner or User Access Administ

Submitted by tom_us· Mar 4, 2026Implement and manage virtual networking

Question

Hotspot Question You have an Azure subscription that contains the resources shown in the following table. NSG1 is configured as shown in the following exhibit. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer:

Explanation

Azure Hotspot Question — Detailed Explanation


Statement 1: Users assigned Role1 can assign Role1 to others → No

Why: Assigning roles in Azure RBAC requires the Microsoft.Authorization/roleAssignments/write permission. This is only included in Owner or User Access Administrator built-in roles. Role1 (likely Virtual Machine Contributor based on the other statements) scopes its permissions to VM operations only and deliberately excludes authorization management.

Memory tip: "Only Owners own the keys to the kingdom (role assignment)."


Statement 2: Users assigned Role1 can deploy new VMs → Yes

Why: Role1 (Virtual Machine Contributor) explicitly includes Microsoft.Compute/virtualMachines/write, which covers creating and deploying virtual machines within the assigned scope (resource group/subscription).


Statement 3: Users assigned Role1 can set a static IP on a VM → Yes

Why: Setting a static IP requires writing to the Network Interface (NIC) resource. Virtual Machine Contributor includes Microsoft.Network/networkInterfaces/*, covering NIC configuration including IP address assignment (dynamic → static).


Statement 4: VM1 can access storage1 → Yes

Why: This is enabled through one of:

  • Managed Identity on VM1 with a role assignment (e.g., Storage Blob Data Reader) on storage1, or
  • A Service Endpoint on the VNet subnet allowing private routing to Azure Storage

The NSG rules and network configuration permit this traffic path.


Statement 5: VM2 can access VM1 via HTTPS → Yes

Why: NSG1 contains an inbound security rule allowing TCP port 443 (HTTPS) from VM2's IP/subnet to VM1. NSG rules are stateful — if inbound is allowed, return traffic is automatically permitted without a separate outbound rule.


Statement 6: NSG1 rules apply to any VM on VNET1 → No

Why: This is the most commonly misunderstood Azure networking concept.

NSGs are associated at two levels only:

LevelScope
SubnetAll VMs in that one subnet
NICOnly that one VM's interface

NSGs are never associated at the VNet level. If NSG1 is associated with only one subnet (e.g., subnet1) or one NIC within VNET1, it does not apply to VMs in other subnets of VNET1.

Memory tip: "NSG = Not Subnet Global. It guards a door, not the whole building."


Quick Summary Table

#StatementAnswerKey Concept
1Can assign rolesNoroleAssignments/write needed (Owner/UAA only)
2Can deploy VMsYesVM Contributor has Compute/write
3Can set static IPYesVM Contributor includes Network/NIC/*
4VM1 → storage1YesManaged Identity or Service Endpoint
5VM2 → VM1 HTTPSYesNSG inbound rule allows port 443
6NSG1 applies to all VNET1 VMsNoNSGs apply at subnet/NIC, never VNet

Topics

#Azure RBAC#Network Security Groups (NSG)#Virtual machine networking#Azure resource permissions

Community Discussion

No community discussion yet for this question.

Full AZ-104 PracticeBrowse All AZ-104 Questions