An enterprise is implementing a hub-and-spoke network topology in Azure. The hub virtual network, `vnet-prod-hub` (), hosts a firewall at . The spoke virtual network, `vnet-prod-spoke` (), contains two subnets named `subnet-web` () and `subnet-app` (). To inspect traffic between the two spoke subnets, an administrator creates a route table and associates it with both subnets in `vnet-prod-spoke`. The route table contains a user-defined route (UDR) with the address prefix and a next hop of the firewall at . After this change, virtual machines within `subnet-web` can no longer communicate with each other, nor with virtual machines in `subnet-app`. Which of the following describes the cause of this connectivity failure?
- AThe subnets require individual security rules for each virtual machine interface IP address instead of using Service Tags within the associated Network Security Groups.
- The user-defined route for the spoke address space overrides the default system route for the local virtual network, causing all local traffic to be forwarded to the firewall.Cevap
- CThe virtual machines are connected to a Basic Load Balancer, which prevents the route table from applying next hop rules to the subnets.
- DThe user-defined route conflicts with system routes because it does not define a separate, non-overlapping subnet route to prioritize local VNet routing.
Cevap
The user-defined route for the spoke address space overrides the default system route for the local virtual network, causing all local traffic to be forwarded to the firewall.
The correct answer is correct because Azure route selection prioritizes user-defined routes (UDRs) over default system routes when the prefixes are identical. By configuring a UDR with the prefix (which matches the spoke VNet address space) and setting the next hop to the firewall, all traffic within the VNet (including intra-subnet traffic) is forwarded to the firewall. Since the firewall is not designed to receive, process, and return traffic destined for the same local subnet without complex configurations, internal communication breaks.
Adım Adım Çözüm
Anahtar Kavram
User-defined route overrides for local virtual network traffic