An enterprise implements a hub-and-spoke network topology in Azure. The topology contains a hub virtual network named `vnet-weur-hub` () and a spoke virtual network named `vnet-weur-spoke` (). A network virtual appliance (NVA) is deployed in the hub at .
You need to configure routing for the subnets in `vnet-weur-spoke` to meet the following requirements:
1. All traffic destined for the internet must route through the NVA at .
2. All traffic destined for resources within `vnet-weur-spoke` must route directly between those resources.
Which two routes must be active in the effective routes of `vnet-weur-spoke` to meet these requirements? (Select two.)
- A user-defined route with the address prefix and a next hop type of Virtual appliance pointing to .Cevap
- A system-defined route with the address prefix and a next hop type of Virtual network.Cevap
- CA user-defined route with the address prefix and a next hop type of Virtual appliance pointing to .
- DA system-defined route with the address prefix and a next hop type of Internet.
Cevap
A user-defined route with the address prefix pointing to the virtual appliance at as next hop, and the default system-defined route with the address prefix pointing to the Virtual network.
The correct configurations include the user-defined route for pointing to the firewall's IP address of , which overrides the default internet path and routes all external traffic through the firewall. Additionally, the default system-defined route for the local virtual network prefix ( with next hop Virtual network) must remain the active route for internal traffic. Since Azure routing uses Longest Prefix Match (LPM), the local system route () takes precedence over the user-defined route () for any traffic destined within the spoke, allowing local traffic to bypass the firewall without requiring extra UDRs.
Adım Adım Çözüm
Anahtar Kavram
Azure virtual network routing uses User-Defined Routes (UDRs) to override default system routes. Azure selects routes based on the Longest Prefix Match (LPM) algorithm. A route for redirects all non-local traffic to the specified next hop (NVA/firewall), while local traffic continues to route directly via the system route for the VNet's CIDR block.