Azure Administrator Associate (AZ-104) · 19% practice allocation

Azure AZ-104: Implement and manage virtual networking Practice Questions

5 free sample questions from the Implement and manage virtual networking domain, with answers and explanations. The full AZ-104 bank has 251 questions across 5 domains. Questions are scenario-based and written from the official Azure exam guide.

1.

You have an Azure Virtual Network named Prod-VNet (10.0.0.0/16) and a spoke VNet named Dev-VNet (10.1.0.0/16). You configure bidirectional VNet peering between them. A VM in Dev-VNet cannot reach a VM in Prod-VNet. You run a connectivity test and find the peering shows status 'Connected' on both sides. What are TWO likely causes of the connectivity failure? (Select TWO)

  • A. The VM in Dev-VNet has a user-defined route sending traffic to a virtual appliance that is not forwarding the packets✓ Correct
  • B. The peering was configured without selecting 'Allow forwarded traffic'
  • C. The address spaces 10.0.0.0/16 and 10.1.0.0/16 overlap and cannot be peered
  • D. The NSG on the Prod-VNet subnet is blocking traffic from the 10.1.0.0/16 address range✓ Correct
  • E. VNet peering does not support cross-region communication
Explanation

When peering status is 'Connected' on both sides, the peering itself is functioning correctly, so the issue lies in filtering or routing. An NSG on the Prod-VNet subnet blocking the 10.1.0.0/16 source range is a very common cause of post-peering connectivity failure. A misconfigured user-defined route (UDR) in Dev-VNet that sends traffic to a next-hop (e.g., an NVA) that is not forwarding packets would silently drop traffic while peering still shows Connected. VNet peering does support cross-region (global peering), so that is not a valid limitation here. The address spaces 10.0.0.0/16 and 10.1.0.0/16 do not overlap — if they did, Azure would have prevented the peering from being created at all. 'Allow forwarded traffic' affects whether traffic forwarded through a VM/NVA in one VNet can traverse the peering; it is not required for direct VM-to-VM communication within the peered VNets.

2.

Your company has a VNet named Hub-VNet peered with a spoke VNet named Spoke-VNet. You need VMs in Spoke-VNet to resolve names registered in an Azure private DNS zone named 'corp.internal'. The zone is currently linked only to Hub-VNet. After attempting name resolution from a Spoke-VNet VM, it fails. What should you do to fix this?

  • A. Add a virtual network link for Spoke-VNet to the 'corp.internal' private DNS zone.✓ Correct
  • B. Create a VNet peering from the private DNS zone to Spoke-VNet.
  • C. Configure a CNAME record in the 'corp.internal' zone pointing to Spoke-VNet's DNS server.
  • D. Enable DNS proxy on the Azure Firewall in Hub-VNet and configure Spoke-VNet DNS servers to point to the firewall.
  • E. Move the private DNS zone to the same resource group as Spoke-VNet.
Explanation

A private DNS zone must have a virtual network link to each VNet whose VMs need to resolve records in that zone. Adding a virtual network link for Spoke-VNet to 'corp.internal' allows VMs in Spoke-VNet to resolve names in the zone. VNet peering does not automatically extend private DNS zone resolution — a separate link is required. Using DNS proxy via Azure Firewall is a valid alternative architecture but requires additional configuration and is not the simplest fix here. A CNAME record does not solve the zone visibility problem. Moving the resource group has no effect on DNS zone scoping.

3.

A network engineer is configuring an Azure Application Security Group (ASG) named 'ASG-WebTier'. Three web server VMs have their NICs associated with this ASG. An NSG rule is created to allow inbound TCP port 80 from the internet to the destination 'ASG-WebTier'. A new web server VM (VM4) is added to the environment. What must the engineer do to ensure VM4 is automatically covered by the same NSG rule?

  • A. Create a new NSG rule specifically for VM4's private IP.
  • B. Associate VM4's NIC with ASG-WebTier — no changes to the NSG rule are needed.✓ Correct
  • C. Add VM4 to the same subnet as the other web VMs — subnet membership automatically applies ASG rules.
  • D. Update the NSG rule to include VM4's private IP address as an additional destination.
Explanation

Application Security Groups act as logical groupings of NIC resources. Once the NSG rule references ASG-WebTier as the destination, any NIC associated with that ASG is automatically covered by the rule. Simply associating VM4's NIC with ASG-WebTier is all that is needed — the NSG rule itself does not require modification. Updating the rule to add VM4's IP defeats the purpose of ASGs and introduces manual maintenance. Creating a new rule per VM is also unnecessary and operationally costly. Subnet membership does not grant ASG membership; ASG association is done at the NIC level explicitly.

4.

You are creating a new Azure Virtual Network in the East US region. You need to assign an address space that accommodates at least 500 hosts across 4 subnets, while keeping the address space as small as possible. Which address space should you assign to the VNet?

  • A. 10.0.0.0/23✓ Correct
  • B. 10.0.0.0/24
  • C. 10.0.0.0/22
  • D. 10.0.0.0/16
Explanation

A /23 provides 512 addresses (510 usable hosts), which is the smallest block that can accommodate 500+ hosts across 4 subnets. Each subnet would have approximately 128 addresses, and Azure reserves 5 addresses per subnet, leaving enough room. A /24 provides only 256 addresses (251 usable after Azure reservations per subnet), which is insufficient for 500 hosts. A /22 provides 1024 addresses — sufficient but larger than necessary, violating the 'as small as possible' requirement. A /16 provides 65,536 addresses, which is vastly oversized for this requirement.

5.

You are deploying a new Azure Virtual Network named Prod-VNet with the address space 10.50.0.0/16. You need to create three subnets: one for web servers (/24), one for application servers (/24), and one that Azure requires for deploying an Azure VPN Gateway. What is the mandatory name you must use for the VPN Gateway subnet?

  • A. VpnSubnet
  • B. RouteGatewaySubnet
  • C. AzureGatewaySubnet
  • D. GatewaySubnet✓ Correct
Explanation

Azure VPN Gateways must be deployed into a subnet named exactly 'GatewaySubnet' — this is a hard requirement enforced by the Azure platform. No other name is accepted. 'VpnSubnet' is a plausible-sounding alternative but is not recognized by Azure. 'AzureGatewaySubnet' and 'RouteGatewaySubnet' are invented names that also do not meet the naming requirement.

Test yourself across every AZ-104 domain

The free AZ-104 practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Implement and manage virtual networking study guide (AZ-104) →

Other AZ-104 domains

← All Azure Administrator Associate study resources