AZ-104 domain - 19% of the exam

Configure and Manage Virtual Networking

Configure and Manage Virtual Networking is 19% of the AZ-104 exam. These are the objectives it covers, each with practice questions, with every answer explained.

The domain in numbers

46
Practice questions
3
Objectives
34
Medium
12
Hard

Where people go wrong

  • Choosing the route by breadth or by order

    The wrong answers pick the wider 10.0.0.0/16 route, send traffic down both routes, or let the earlier route win. Azure selects the longest matching prefix first, so 10.0.0.5 follows the 10.0.0.0/24 route. When two routes carry the identical prefix, such as 0.0.0.0/0, source priority decides: user-defined route, then BGP route, then system route. The user-defined route therefore overrides the default Internet route.

    See it in a sample question
  • Treating all next hop types as settable in a route

    The wrong answers treat next hop types as interchangeable. Virtual appliance, Virtual network gateway, None, Virtual network and Internet can be set in a user-defined route, and None drops the traffic. Virtual network peering and VirtualNetworkServiceEndpoint cannot be specified in a UDR. Azure adds them when a peering is configured or a service endpoint is enabled, so they are what effective routes show for those features. A gateway, appliance or Internet hop does not mark either one.

    See it in a sample question
  • Reading a higher priority number as higher priority

    The wrong answers process the larger number first, or expect every matching rule to apply. Network security group rules are processed in priority order, lower numbers first, and processing stops at the first match. A priority 150 deny therefore beats a priority 200 allow, and an allow at 110 is reached before a deny at 120. Custom priorities run from 100 to 4096. Values such as 65000 belong to default rules, which carry the lowest priority.

    See it in a sample question
  • Confusing load balancer rule, inbound NAT rule and probe

    The wrong answers pick a component that sounds close. A health probe checks instance health, an outbound rule configures outbound NAT, and an inbound NAT rule forwards to one specific VM. A load balancer rule maps a frontend and port to every instance in the backend pool. To load balance all TCP and UDP flows on every port of an internal Standard Load Balancer, one rule with protocol all and port 0 replaces a rule per port.

    See it in a sample question
  • Swapping the scope and region rules of service and private endpoints

    The wrong answers blur service endpoints and private endpoints. A service endpoint secures a subnet to an Azure service, and for Azure SQL Database the virtual network must be in the same region as the resource. A private endpoint maps to a single PaaS resource instance, so other instances stay blocked. The private endpoint must sit in the same region and subscription as its virtual network, while the private-link resource can be in a different region.

    See it in a sample question

Objectives in this domain

Sample questions from this domain

Free sampleConfigure and Manage Virtual Networkingmedium

A subnet route table contains one route for the 10.0.0.0/16 prefix and another route for the 10.0.0.0/24 prefix. To which route does Azure send traffic destined for 10.0.0.5?

  • AThe route for 10.0.0.0/24, because it is the longest matching prefix Correct
  • BThe route for 10.0.0.0/16, because it covers the wider address range here
  • CBoth routes equally, because the address falls within each prefix
  • DThe system route for 0.0.0.0/0, because it acts as the default
Azure routes a destination to the route with the longest matching address prefix. The grounding states Azure selects a route using the longest prefix match algorithm, so 10.0.0.5 follows the 10.0.0.0/24 route because that prefix is longer than 10.0.0.0/16 even though the address falls within both.

Why A is correct: Correct. The grounding states Azure selects a route using the longest prefix match algorithm, so 10.0.0.5 follows the 10.0.0.0/24 route because that prefix is longer than 10.0.0.0/16 even though the address falls within both.

Why B is wrong: A wider range is the shorter prefix; Azure uses longest prefix match, so the broader 10.0.0.0/16 route is not selected for 10.0.0.5.

Why C is wrong: The address does fall within both prefixes, yet Azure picks only one route, selecting the longer prefix rather than both.

Why D is wrong: The 0.0.0.0/0 route is the shortest prefix and is used only when no longer matching route exists for the destination.

Free sampleConfigure and Manage Virtual Networkingmedium

An administrator wants outbound traffic for a specific address prefix to be silently dropped at the subnet rather than forwarded anywhere. Which next hop type should the user-defined route specify?

  • ANone, so the matching traffic is dropped and not forwarded out Correct
  • BInternet, so the matching traffic is sent toward the internet
  • CVirtual network, so the matching traffic stays inside the network
  • DVirtual appliance, so the matching traffic reaches an appliance
A UDR with next hop None drops traffic for the matching prefix instead of forwarding it. The grounding states that for a UDR you specify the None next hop type when you want to drop traffic to an address prefix rather than forwarding the traffic to a destination.

Why A is correct: Correct. The grounding states that for a UDR you specify the None next hop type when you want to drop traffic to an address prefix rather than forwarding the traffic to a destination.

Why B is wrong: The Internet next hop forwards traffic out to the internet rather than dropping it inside the subnet.

Why C is wrong: The Virtual network next hop keeps traffic routed within the virtual network; it does not discard the packets.

Why D is wrong: The Virtual appliance next hop forwards traffic to an appliance IP for inspection rather than dropping it outright.

Free sampleConfigure and Manage Virtual Networkingmedium

An administrator adds a custom inbound rule at priority 200 that allows TCP 443 from the internet, and a second custom inbound rule at priority 150 that denies the same traffic. A web request arrives that matches both rules. Which rule determines the outcome and why?

  • AThe priority 200 allow rule wins because higher priority numbers are processed first
  • BThe priority 150 deny rule wins because a lower priority number is processed first Correct
  • CBoth rules apply in turn because evaluation continues after the first match is found
  • DNeither rule wins because two rules cannot share one direction inside the group
Lower priority numbers are evaluated first and the first matching rule ends evaluation, so a lower-numbered deny overrides a higher-numbered allow. Rules are processed in priority order, with lower numbers processed before higher numbers because lower numbers have higher priority, and once traffic matches a rule the processing stops. The priority 150 deny is processed before the priority 200 allow.

Why A is wrong: Higher numbers have lower priority, so the priority 200 rule is processed after the priority 150 rule, not before it.

Why B is correct: Correct. Rules are processed in priority order, with lower numbers processed before higher numbers because lower numbers have higher priority, and once traffic matches a rule the processing stops.

Why C is wrong: Once traffic matches a rule, processing stops, so the second rule is never reached for that flow.

Why D is wrong: Multiple inbound rules are allowed; only identical priority within the same direction is disallowed, which is not the case here.

Free sampleConfigure and Manage Virtual Networkingmedium

An engineer needs traffic that arrives on the load balancer to reach every healthy VM in the backend pool on port 80. Which load balancer component defines how that inbound traffic is distributed across all backend instances?

  • AAn inbound NAT rule mapping a frontend and port to one backend VM
  • BA health probe mapping a frontend and port to the backend pool
  • CAn outbound rule mapping the backend pool to a frontend and port
  • DA load balancer rule mapping a frontend and port to the backend pool Correct
Load balancer rules distribute inbound traffic to all backend instances; NAT rules target one specific instance. A load balancer rule maps a frontend IP configuration and port to multiple backend IP addresses and ports and defines how inbound traffic is distributed to all instances in the backend pool.

Why A is wrong: An inbound NAT rule forwards traffic to a specific single VM, not across all instances in the backend pool.

Why B is wrong: A health probe determines instance health; it does not define how inbound traffic is distributed to the pool.

Why C is wrong: An outbound rule configures outbound NAT for backend instances; load balancer rules cover inbound distribution.

Why D is correct: Correct. A load balancer rule maps a frontend IP configuration and port to multiple backend IP addresses and ports and defines how inbound traffic is distributed to all instances in the backend pool.

Free sampleConfigure and Manage Virtual Networkingmedium

A security architect wants each consumer to reach only one specific storage account instance through Private Link, with no path to any other instance of the service, to reduce data exfiltration risk. Which Private Link characteristic delivers this outcome?

  • AA private endpoint maps to the whole service region, so every account instance is reachable.
  • BA service endpoint maps to a single PaaS resource instance, so other instances stay blocked.
  • CA private endpoint maps to a single PaaS resource instance, so other instances stay blocked. Correct
  • DA service endpoint maps to the whole service region, so every account instance is reachable.
A private endpoint binds to one PaaS resource instance, blocking access to other instances and limiting data leakage. With Private Link a private endpoint is mapped to an instance of a PaaS resource instead of the entire service, so consumers can connect only to the specific resource and access to any other resource in the service is blocked, providing protection against data leakage.

Why A is wrong: Private Link maps to a single resource instance, not to the entire service or region.

Why B is wrong: A service endpoint secures the subnet to the service but does not map to one instance the way Private Link does.

Why C is correct: Correct. With Private Link a private endpoint is mapped to an instance of a PaaS resource instead of the entire service, so consumers can connect only to the specific resource and access to any other resource in the service is blocked, providing protection against data leakage.

Why D is wrong: This describes neither the data-leakage protection nor the single-instance mapping the scenario needs.

Other domains in this exam

See also the AZ-104 cert hub, the study guide, and the cheat sheet.

Examworthy is not affiliated with or endorsed by Microsoft. Original, blueprint-aligned practice material only.