Skip to main content

AZ-104 · 18% of the exam

Implement and manage virtual networking practice questions

10 free Implement and manage virtual networking questions for the Microsoft Certified: Azure Administrator Associate (AZ-104) exam, each with the correct answer and an explanation for every option.

What this domain covers

Building and securing virtual networks and connecting them: subnets, peering, name resolution, load balancing and network security.

Exam weight
18%
On a real exam
≈ 9 questions
In our bank
108 questions

Topics that come up most

  • VNets, subnets and IP addressing
  • VNet peering and gateway transit
  • Network security groups and application security groups
  • Azure DNS and private DNS zones
  • Load Balancer vs Application Gateway

How to study it

Sketch hub-and-spoke peering and trace which VNets can reach which; non-transitive peering is a favourite trap.

Sample Implement and manage virtual networking questions

Try each one before opening the answer. Original questions written to the official exam objectives.

  1. Question 1

    VNets in East US and West Europe must communicate privately over the Microsoft backbone. What should you configure?

    • AGlobal VNet peering
    • BA public IP on every VM
    • CA private DNS zone only
    • DAn availability set
    Show answer and explanation

    Answer: A) Global VNet peering

    • AGlobal peering connects VNets in different regions over the Microsoft backbone.
    • BThat exposes VMs to the internet.
    • CDNS doesn't create connectivity.
    • DAvailability sets apply to VMs.
  2. Question 2

    Your hub VNet has a VPN gateway connected to on-premises, and the hub-to-spoke peering already allows gateway transit. A spoke VNet with no gateway of its own must reach on-premises through the hub's gateway. What should you configure on the spoke-to-hub peering?

    • AEnable the option to use the remote virtual network's gateway (Use remote gateways)
    • BEnable the option to let this VNet's gateway forward traffic (Allow gateway transit)
    • CAssociate a route table with Disable BGP route propagation set on the spoke subnets
    • DTurn off the option that allows the spoke VNet to access the hub VNet
    Show answer and explanation

    Answer: A) Enable the option to use the remote virtual network's gateway (Use remote gateways)

    In a hub-and-spoke design, the hub peering allows gateway transit and the spoke peering is set to use remote gateways, so the spoke shares the hub's VPN gateway instead of deploying its own.

    • ACorrect. The spoke side of the peering must be set to use the peered (hub) VNet's remote gateway; together with gateway transit on the hub side, this lets the spoke share the hub's VPN gateway and learn on-premises routes.
    • BIncorrect. Allow gateway transit is configured on the peering of the VNet that owns the gateway (the hub). The spoke has no gateway to offer, so this setting on the spoke side doesn't let it use the hub's gateway.
    • CIncorrect. This is a route table setting, not a peering setting, and it prevents routes learned from the VPN gateway from being distributed to those subnets, which would work against reaching on-premises.
    • DIncorrect. Virtual network access must stay enabled for traffic to flow across the peering; turning it off blocks communication with the hub and therefore with the gateway.
  3. Question 3

    A route table must send all internet-bound traffic from a subnet through a firewall appliance at 10.0.2.4. What next hop type should the route use?

    • AVirtual appliance with that IP
    • BInternet
    • CNone
    • DVirtual network gateway
    Show answer and explanation

    Answer: A) Virtual appliance with that IP

    • AA user-defined route with next hop type VirtualAppliance points to the appliance's IP.
    • BThat sends traffic straight to the internet.
    • CNone drops the traffic; that doesn't meet this requirement.
    • DThat sends traffic to a VPN or ExpressRoute gateway.
  4. Question 4

    In a hub-and-spoke topology, spoke VNets must reach on-premises through the VPN gateway that lives in the hub VNet. Which peering settings are required?

    • AOn the hub-to-spoke peering, allow gateway transit; on the spoke-to-hub peering, use remote gateways
    • BEnable an internet gateway on each spoke
    • CGive every spoke its own VPN gateway
    • DDisable peering and rely on public IPs
    Show answer and explanation

    Answer: A) On the hub-to-spoke peering, allow gateway transit; on the spoke-to-hub peering, use remote gateways

    • AGateway transit lets the hub share its VPN/ExpressRoute gateway with peered spokes; each spoke must be set to use the hub's remote gateway (and can't have its own gateway).
    • BThere is no 'internet gateway' object in Azure VNets, and spokes should route through the hub, not out directly.
    • CThat defeats the hub-and-spoke design and multiplies cost; the point is to share the hub's gateway.
    • DThat removes private connectivity entirely.
  5. Question 5

    Which Azure service provides global, DNS-based traffic routing across endpoints in multiple regions, such as directing users to the closest healthy deployment?

    • AAzure Traffic Manager
    • BAzure Load Balancer
    • CNetwork security groups
    • DAzure ExpressRoute
    Show answer and explanation

    Answer: A) Azure Traffic Manager

    • ATraffic Manager uses DNS to route client requests to the most appropriate endpoint based on a chosen routing method, such as performance (closest) or priority, across regions.
    • BLoad Balancer operates at the regional/network layer for resources within a region, not global DNS-based routing across regions.
    • CNSGs filter traffic by rule; they don't perform DNS-based global routing.
    • DExpressRoute provides a private, dedicated connection from on-premises to Azure; it isn't a global traffic-routing service.
  6. Question 6

    An internal Standard Load Balancer sends all ports and protocols to a pair of network virtual appliances. Which feature enables this?

    • AHA ports
    • BSession persistence only
    • CA Basic SKU public IP
    • DTraffic Manager
    Show answer and explanation

    Answer: A) HA ports

    • AHA ports load-balance all TCP and UDP flows on all ports, which suits NVAs.
    • BPersistence keeps clients on the same backend; it doesn't cover all ports.
    • CThat's unrelated to internal all-port balancing.
    • DTraffic Manager routes by DNS.
  7. Question 7

    An NSG rule must allow VMs to reach Azure Storage without you maintaining a list of Microsoft IP ranges. What should the rule's destination be?

    • AThe `Storage` service tag (optionally regionalized, e.g. Storage.WestEurope)
    • BThe `Internet` service tag
    • CA hand-maintained list of storage IP CIDRs
    • DThe `VirtualNetwork` service tag
    Show answer and explanation

    Answer: A) The `Storage` service tag (optionally regionalized, e.g. Storage.WestEurope)

    • AService tags represent Microsoft-managed groups of IP prefixes for a service and are updated automatically, so you reference `Storage` instead of hard-coding ranges.
    • BThat would allow all outbound internet traffic, far broader than intended.
    • CThat's exactly the manual upkeep service tags exist to remove, and it drifts out of date.
    • DThat covers traffic within the VNet and peered networks, not the Azure Storage service.
  8. Question 8

    VNet A is peered with hub VNet B, and VNet B is peered with VNet C. All peerings show Connected, and the default NSG rules are in place. VMs in VNet A can reach VMs in VNet B but cannot reach VMs in VNet C. What is the cause?

    • APeering isn't transitive, so the A–B and B–C peerings don't connect A to C
    • BPeerings through a hub work only when all three VNets are in the same region
    • CThe default NSG rules deny inbound traffic that comes from peered VNets
    • DVNet B must enable 'Use remote gateways' on its peerings with VNets A and C
    Show answer and explanation

    Answer: A) Peering isn't transitive, so the A–B and B–C peerings don't connect A to C

    VNet peering isn't transitive: A peered to B and B peered to C doesn't connect A to C. Either peer A and C directly, or route traffic through an NVA in the hub using UDRs and 'allow forwarded traffic'.

    • AA peering connects only the two VNets in it. To let A and C communicate, either peer A with C directly, or send the traffic through an NVA in hub B. The NVA option needs user-defined routes pointing to the NVA, plus 'allow forwarded traffic' on the peerings.
    • BGlobal VNet peering connects VNets across regions, and region isn't the problem here. Even with all three VNets in one region, A still couldn't reach C through B.
    • CWhen peering allows virtual network access, the VirtualNetwork service tag includes the peered VNet. So the default AllowVnetInBound rule permits that traffic, as A-to-B connectivity already shows.
    • D'Use remote gateways' lets a VNet use a VPN/ExpressRoute gateway or Route Server in the peered VNet. It doesn't make peering transitive, and the hub's own peerings can't be set to use a spoke's gateway this way.
  9. Question 9

    Many VMs in a subnet make a high volume of outbound connections to the same external API and are starting to fail with SNAT port exhaustion. What is the recommended fix?

    • AAssociate an Azure NAT Gateway with the subnet to provide a large, scalable pool of outbound SNAT ports
    • BAdd more inbound NSG rules
    • CGive every VM its own public IP
    • DSwitch the subnet to a smaller address range
    Show answer and explanation

    Answer: A) Associate an Azure NAT Gateway with the subnet to provide a large, scalable pool of outbound SNAT ports

    • ANAT Gateway gives predictable, high-scale outbound connectivity with far more SNAT ports than default outbound or a load balancer, eliminating port exhaustion for chatty egress workloads.
    • BInbound rules don't affect outbound SNAT capacity.
    • CThis works but is costly, hard to manage, and expands the attack surface; NAT Gateway is the recommended pattern.
    • DSubnet size doesn't change SNAT port allocation.
  10. Question 10

    On-premises DNS servers must resolve names in an Azure private DNS zone without deploying custom DNS VMs in Azure. What should you deploy?

    • AAzure DNS Private Resolver
    • BA public DNS zone
    • CAn NSG with port 53 open only
    • DTraffic Manager
    Show answer and explanation

    Answer: A) Azure DNS Private Resolver

    • AIts inbound endpoint lets on-premises DNS forward queries to Azure private DNS zones.
    • BPublic zones are visible on the internet.
    • COpening a port doesn't provide resolution.
    • DTraffic Manager routes traffic by DNS, not private name resolution.

Implement and manage virtual networking: FAQs

How much of the AZ-104 exam is Implement and manage virtual networking?

Implement and manage virtual networking is 18% of the AZ-104 exam by the official exam guide's weighting, which on a 50-question form works out to roughly 9 questions. The real exam's exact split varies by form.

What does the Implement and manage virtual networking domain cover?

Building and securing virtual networks and connecting them: subnets, peering, name resolution, load balancing and network security.

How should I study Implement and manage virtual networking for AZ-104?

Sketch hub-and-spoke peering and trace which VNets can reach which; non-transitive peering is a favourite trap.

Where can I practise more Implement and manage virtual networking questions?

This page has 10 free Implement and manage virtual networking questions with answers. CertRidge's AZ-104 question bank has 108 questions in this domain. Every practice exam result breaks your score down by domain, and Review Mode re-drills the questions you missed.

Get Implement and manage virtual networking exam-ready

The full AZ-104 bank has 108 Implement and manage virtual networking questions. Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.

Not affiliated with Microsoft; questions are original and never copied from the real exam.