Microsoft Certified: Azure Administrator Associate (AZ-104) · Microsoft
Implement and Manage Virtual Networking
12 practice questions covering 25% of the official Microsoft Certified: Azure Administrator Associate (AZ-104) blueprint. Every item includes a worked explanation of the correct answer.
View all 5 domains in Microsoft Certified: Azure Administrator Associate (AZ-104)
Syllabus Coverage & Domain Overview
This topic covers how an Azure administrator builds and operates the network layer of a deployment. The current skills outline groups it into three areas. The first is configuring and managing virtual networks: creating networks and subnets, connecting them with peering, configuring public IP addresses, steering traffic with user-defined routes, and troubleshooting connectivity. The second is secure access: network security groups and application security groups, reading the effective security rules on a resource, Azure Bastion, and service endpoints and private endpoints for platform services. The third is name resolution and load balancing: Azure DNS, internal and public load balancers, and troubleshooting load balancing.
Most of the exam value comes from telling similar features apart. Peering joins two networks but does not pass traffic on to a third, so a hub-and-spoke design needs deliberate gateway sharing or a routed appliance. System routes can be overridden by user-defined routes, and the most specific prefix wins. Service endpoints keep a public service address but restrict access to your subnet. Private endpoints place a private address for the service inside your network, which is why DNS matters so much with them. A public load balancer faces the internet, while an internal one only serves private frontends. A network security group is attached to a subnet or a network interface, and the rules from both levels combine, so the effective rules can differ from what you see on one resource. Application security groups let you write rules against named groups of machines rather than address lists. Public and private DNS zones solve different problems, and a private zone only resolves for the networks linked to it.
Questions are usually short scenarios with a requirement and a symptom: a virtual machine cannot reach a peer, a backend pool shows unhealthy, a name resolves to the wrong address, or administrators need remote access without exposing a public address. You then pick the configuration change or the feature that fits. The common traps are choosing a feature that sounds right but works at the wrong level, such as a subnet-level control when the rule belongs on the interface. Others are forgetting that peering is not transitive, overlooking an inbound rule that is allowed in one security group but denied in the other, and ignoring the health probe or the lack of a DNS link when a load balancer or private name fails. Read for the exact words in the requirement, such as private, internal, minimal exposure or least effort, because they usually decide between two plausible answers. Also watch for deliberately overlapping address ranges, which block peering outright.
The best preparation is hands-on. Build two networks in a free or sandbox subscription, peer them, deploy a small virtual machine in each, and test connectivity. Then add a route, a security rule and a private DNS zone one at a time, and use the effective routes and effective security rules views plus the connectivity tools to see why traffic succeeds or fails. Repeat with an internal load balancer and a Bastion host. Finish by explaining aloud, for each feature, what problem it solves and what it does not.
In the official Microsoft Certified: Azure Administrator Associate (AZ-104) examination blueprint, Implement and Manage Virtual Networking carries a weightage of 25%. Out of the total examination duration of 2 hr, candidates should budget approximately 30 min for questions from this domain to maintain pace across the paper.
How to Master Implement and Manage Virtual Networking for Microsoft Certified: Azure Administrator Associate (AZ-104)
Our 12 published questions in Implement and Manage Virtual Networking are written for PrepIQ Hub and checked as set out in our editorial policy. Each item is written to the medium difficulty level of the Microsoft exam:
- Targeted Topic Drills: Launch Topic Practice mode to work exclusively through Implement and Manage Virtual Networking items and review the step-by-step derivation after each submission.
- Negative Marking Discipline: The Microsoft Certified: Azure Administrator Associate (AZ-104) applies no negative marking penalty, so practice eliminating the three distractors systematically on every Implement and Manage Virtual Networking item.
- Benchmark Target: Aim for at least 70% accuracy in Implement and Manage Virtual Networking drills before moving to full-paper simulations.
Implement and Manage Virtual Networking worked examples
Implement and Manage Virtual Networking questions from the Microsoft Certified: Azure Administrator Associate (AZ-104) syllabus, answered in full. Try each one before opening the explanation.
Example 1 · Implement and Manage Virtual Networking · medium
An e-commerce platform runs on Azure VMs behind a load balancer. The architecture requires: (1) TLS/SSL termination at the load balancer, (2) URL path-based routing so /images/* routes to an image-rendering VM pool and /checkout/* routes to a payment VM pool, and (3) OWASP Core Rule Set Web Application Firewall (WAF) inspection. Which Azure load-balancing service meets all three requirements?
Show answer and explanation
Correct answer: B. Azure Application Gateway with the WAF_v2 autoscaling tier
Why
Azure Application Gateway with the WAF_v2 SKU is a regional Layer 7 load balancer, so it understands HTTP and HTTPS requests rather than just TCP or UDP flows. It can terminate TLS at the gateway, evaluate URL path-based routing rules so that /images/* goes to one backend pool and /checkout/* goes to another, and run an integrated Web Application Firewall using the OWASP Core Rule Set. The WAF_v2 tier combines the v2 autoscaling gateway with WAF policy, so all three stated requirements are met by a single service. The key concept is the OSI layer at which each Azure service operates: anything that must read URL paths, decrypt TLS or inspect HTTP payloads for attacks such as SQL injection or cross-site scripting needs Layer 7. The common trap is choosing Azure Load Balancer because it is the default, familiar choice for VMs, or Traffic Manager because it sounds like it routes traffic by name, even though neither inspects requests.
- A. Azure Standard Load Balancer operating at Layer 4 (TCP/UDP) — Azure Standard Load Balancer is a Layer 4 service that distributes TCP and UDP flows using a five-tuple hash. It never reads URL paths, cannot terminate TLS and has no WAF capability, so it fails all three requirements.
- C. Azure Traffic Manager DNS-based global traffic routing — Traffic Manager is a DNS-based global traffic distribution service that returns endpoint names according to a routing method such as priority or performance. It is not in the data path, so it cannot terminate TLS, route by URL path or apply WAF rules.
- D. Azure NAT Gateway for outbound SNAT port translation — NAT Gateway provides outbound-only source network address translation for subnet resources so they can reach the internet with static public IPs. It does not load balance inbound traffic, route by URL or inspect requests with a WAF.
Example 2 · Implement and Manage Virtual Networking · easy
A network engineer creates an Azure Virtual Network subnet with the IPv4 CIDR block 10.20.4.0/26. Accounting for the addresses that Azure reserves in every subnet for protocol conformance and gateway services, how many usable IPv4 addresses can be assigned to VM network interfaces (NICs) in this /26 subnet?
Show answer and explanation
Correct answer: C. 59 usable IPv4 addresses (64 total minus 5 Azure-reserved addresses)
Why
A /26 subnet has 2^(32-26) = 64 total IPv4 addresses. Azure reserves five addresses in every subnet: the network address (first address, 10.20.4.0), the default gateway (.1), two addresses for Azure DNS mapping (.2 and .3), and the broadcast address (last address, 10.20.4.63). That leaves 64 - 5 = 59 addresses that can be assigned to VM NICs. The key rule is that Azure's reservation is five addresses, not the two (network and broadcast) that traditional on-premises subnet math removes. This is also why the smallest supported Azure subnet is a /29 (8 addresses, 3 usable), and why a /30 or /31 cannot be used. The most common trap is applying the familiar 'total minus 2' formula or forgetting any reservations at all. On the exam, always subtract five from the total block size when counting usable addresses in an Azure subnet.
- A. 62 usable IPv4 addresses (64 total minus 2 traditional RFC addresses) — This is the traditional on-premises calculation that removes only the network and broadcast addresses (64 - 2 = 62). Azure additionally reserves the default gateway and two DNS-mapping addresses, so five are unavailable and 62 overstates the usable count.
- B. 64 usable IPv4 addresses (using the full /26 block without reservations) — This treats the entire /26 block as assignable, ignoring Azure's reservations completely. Every Azure subnet loses five addresses (network, gateway, two for DNS mapping, and broadcast), so 64 can never be fully used by NICs.
- D. 27 usable IPv4 addresses (calculating for a /27 instead of a /26 CIDR) — This figure is not the result of any correct /26 calculation. It comes from subtracting 5 from 32, which is the number of addresses in a /27 block, and a /27 would give 32 - 5 = 27. The subnet in the question is a /26 with 64 addresses, so the answer is 59.
Example 3 · Implement and Manage Virtual Networking · hard
You have three Azure Virtual Networks in a hub-and-spoke topology: VNet-Hub (which contains an Azure VPN Gateway connected to on-premises), VNet-Spoke1, and VNet-Spoke2. You create VNet peerings between VNet-Hub and VNet-Spoke1, and between VNet-Hub and VNet-Spoke2. For VNet-Spoke1 VMs to use the VPN Gateway inside VNet-Hub to reach on-premises servers, which two peering settings must be enabled? (Select two.)
Show answer and explanation
Correct answers: A. Enable Allow gateway transit on the VNet-Hub to VNet-Spoke1 peering; C. Enable Use remote gateways on the VNet-Spoke1 to VNet-Hub peering
Why
In a hub-and-spoke design, a spoke can use the VPN gateway in the hub only when both sides of the peering cooperate. The hub side of the peering, VNet-Hub to VNet-Spoke1, must have Allow gateway transit enabled, which tells Azure that the hub is willing to let the peered network send traffic through its gateway. The spoke side of the peering, VNet-Spoke1 to VNet-Hub, must have Use remote gateways enabled, which tells the spoke to use the hub's gateway as its next hop for on-premises routes. Each setting lives on a different peering direction, and together they let the spoke learn on-premises routes. The most common trap is putting Use remote gateways on the hub side, or enabling it on a spoke that already has its own gateway, because the two settings are mutually exclusive on a VNet that has a gateway of its own. Remember that the gateway owner offers transit and the consumer uses the remote gateway.
- B. Enable Use remote gateways on the VNet-Hub to VNet-Spoke1 peering — Use remote gateways is a setting for the VNet that consumes a gateway, so it belongs on the spoke's peering. The hub owns the gateway and cannot use a remote gateway for itself, so enabling it on the hub-to-spoke peering does not provide spoke connectivity.
- D. Deploy a second dedicated VPN Gateway inside the VNet-Spoke1 network — Deploying a second VPN Gateway in the spoke is an unnecessary and costly alternative design. It would also prevent Use remote gateways from being enabled on that spoke, because a VNet with its own gateway cannot use a remote one. The question asks which peering settings enable sharing the hub gateway.
Example 4 · Implement and Manage Virtual Networking · medium
You deploy 4 backend Linux VMs in a private subnet (with no public IPs on the VM NICs) behind an Internal Standard Azure Load Balancer. After deployment, you discover that the VMs can no longer reach ubuntu.com over the internet to download apt security patches. Why did outbound internet access stop, and what is the recommended Azure networking service to provide dedicated, scalable outbound SNAT connectivity for that subnet?
Show answer and explanation
Correct answer: A. Standard Internal Load Balancers block default outbound; attach NAT Gateway
Why
Standard SKU Internal Load Balancers are secure by default and do not provide default outbound internet access for backend pool VMs that lack public IPs. Attaching an Azure NAT Gateway to the subnet is Microsoft's recommended best practice for dedicated, high-scale outbound SNAT connectivity.
- B. Standard Load Balancers block TCP 443; replace the load balancer with DNS — Azure DNS resolves domain names and does not provide outbound SNAT routing.
- C. Linux VMs require an ExpressRoute circuit to reach public repositories — ExpressRoute is for private on-premises connectivity, not standard public internet patching.
- D. Internal Load Balancers apply a ReadOnly lock to guest OS network cards — ARM resource locks do not block guest OS outbound network packets.
Example 5 · Implement and Manage Virtual Networking · hard
In a hub-and-spoke Azure Virtual Network, a spoke subnet (10.1.1.0/24) must send all internet-bound traffic (0.0.0.0/0) through a Palo Alto firewall Network Virtual Appliance (NVA) running at IP 10.0.2.4 in the hub VNet. Which two configurations are required to route and forward this traffic properly? (Select two.)
Show answer and explanation
Correct answers: B. Associate a Route Table using Next hop Virtual appliance (10.0.2.4); D. Enable IP forwarding on the Azure Network Interface (NIC) of the NVA
Why
To steer spoke subnet traffic through an NVA, you must (B) associate a Route Table containing a User-Defined Route (0.0.0.0/0, Next hop type = Virtual appliance, Next hop IP = 10.0.2.4) with the spoke subnet (B), and (C) enable IP forwarding on the Azure Network Interface (NIC) of the NVA VM (as well as inside the guest OS) so Azure's SDN fabric permits the NVA to receive packets not addressed to its own IP (D).
- A. Set the UDR Next hop type to Virtual network gateway (10.0.2.4) — Virtual network gateway routes traffic to an Azure VPN/ExpressRoute gateway, not to a custom NVA VM IP.
- C. Assign a Basic SKU Public IP address directly to each spoke subnet VM — Assigning public IPs to spoke VMs does not force outbound traffic through the NVA and violates security posture.
Example 6 · Implement and Manage Virtual Networking · medium
Two virtual networks — VNet-App (10.1.0.0/16) and VNet-DB (10.2.0.0/16) — are connected via VNet peering. You deploy an Azure Private DNS Zone named corp.internal to host internal A records (sql01.corp.internal -> 10.2.1.10). You want VMs in VNet-DB to automatically register their hostnames into corp.internal, and VMs in VNet-App to resolve names in corp.internal without auto-registering their own VM hostnames. How should you configure the Virtual Network Links on the corp.internal Private DNS Zone?
Show answer and explanation
Correct answer: A. Link both VNets to corp.internal; enable Auto Registration on VNet-DB
Why
An Azure Private DNS Zone can be linked to multiple VNets via Virtual Network Links. Every linked VNet can resolve DNS records in the zone, while enabling the Enable auto registration checkbox only on the VNet-DB link ensures only VNet-DB VMs automatically register their A records.
- B. Create two separate Private DNS Zones named corp.internal, one per VNet — Two separate Private DNS zones with the same name do not share DNS records across each other.
- C. Convert corp.internal into an Azure Public DNS Zone on internet root servers — Public DNS zones do not support VNet Links or automatic private VM IP registration.
- D. Disable VNet peering because Private DNS Zones require overlapping IPv4 blocks — Private DNS Zones work seamlessly across peered non-overlapping VNets.
Example 7 · Implement and Manage Virtual Networking · medium
Instead of maintaining brittle IP address lists in Network Security Group (NSG) rules (10.1.0.4, 10.1.0.7, 10.1.0.19...), an administrator wants to group all web-tier VM network interfaces logically as WebServers and all database VM network interfaces as DbServers, and then write a single NSG rule: Allow Source: WebServers -> Destination: DbServers on TCP 1433. Which Azure networking feature enables this?
Show answer and explanation
Correct answer: D. Application Security Groups (ASGs) on the VM NICs
Why
Application Security Groups let you group virtual machine network interfaces by application role, such as WebServers and DbServers, and then use those groups as the source or destination in NSG rules. A single rule like Allow WebServers to DbServers on TCP 1433 replaces long lists of IP addresses, and the rule keeps working as VMs are added, removed or re-addressed, because membership is defined by assigning the NIC to the ASG. Key constraints to remember: a NIC can belong to multiple ASGs, and the ASGs used in one rule must exist in the same virtual network as each other and the NSG is associated with a subnet or NIC in that network. The most common trap is confusing ASGs with service tags, which represent Microsoft-managed IP prefix groups such as Internet or Storage, or with tags and resource groups, which are organizational metadata and have no effect on packet filtering.
- A. Microsoft Entra Administrative Units on user objects — Administrative Units are a Microsoft Entra ID feature for delegating administrative permissions over subsets of users, groups or devices. They operate in the identity plane and have nothing to do with network interfaces or NSG packet filtering.
- B. Azure Resource Groups tagged with CostCenter values — Resource groups are management containers, and tags such as CostCenter are metadata used for cost tracking and organization. NSG rules cannot reference a resource group or a tag as a source or destination, so they cannot group NICs for filtering.
- C. Azure Availability Sets configured with 3 Fault Domains — Availability Sets spread VMs across fault domains and update domains to improve resilience against hardware failures and maintenance. They are a high-availability construct and cannot be referenced as a source or destination in an NSG rule.
Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.
All 7 Implement and Manage Virtual Networking questions with answers
- An e-commerce platform runs on Azure VMs behind a load balancer. The architecture requires: (1) TLS/SSL termination at…
- A network engineer creates an Azure Virtual Network subnet with the IPv4 CIDR block 10.20.4.0/26. Accounting for the…
- You have three Azure Virtual Networks in a hub-and-spoke topology: VNet-Hub (which contains an Azure VPN Gateway…
- You deploy 4 backend Linux VMs in a private subnet (with no public IPs on the VM NICs) behind an Internal Standard…
- In a hub-and-spoke Azure Virtual Network, a spoke subnet (10.1.1.0/24) must send all internet-bound traffic…
- Two virtual networks — VNet-App (10.1.0.0/16) and VNet-DB (10.2.0.0/16) — are connected via VNet peering. You deploy…
- Instead of maintaining brittle IP address lists in Network Security Group (NSG) rules (10.1.0.4, 10.1.0.7…
All Syllabus Domains in Microsoft Certified: Azure Administrator Associate (AZ-104)
Manage Azure Identities and Governance
11 questions · 20%Implement and Manage Storage
11 questions · 15%Deploy and Manage Azure Compute Resources
11 questions · 20%Implement and Manage Virtual Networking (Current domain)
12 questions · 25%Monitor and Maintain Azure Resources
15 questions · 20%
Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.