Your company has an Azure virtual network named `VNet-Production` () that contains the following subnets:
* `FrontendSubnet` ()
* `SecureAppSubnet` ()
* `DMZSubnet` ()
A Network Virtual Appliance (NVA) is deployed in `DMZSubnet` and has an IP address of .
A route table is associated with `FrontendSubnet` and contains the following route:
* Route name: `To-NVA`
* Destination IP address/CIDR:
* Next hop type: `Virtual appliance`
* Next hop IP address:
A user attempts to send traffic from a virtual machine in `FrontendSubnet` to a database server at in `SecureAppSubnet`.
Which two statements correctly describe how Azure routes this traffic based on prefix match and UDR override rules? (Select TWO.)
- Azure will select the route with the destination prefix for traffic destined to because it is the longest prefix match (LPM).Answer
- The user-defined route for overrides the default system VNet local route for that subnet range because user-defined routes take precedence over system routes.Answer
- CAzure will route the traffic using the default system local VNet route for because system routes always take precedence over user-defined routes.
- DAzure will discard the traffic because next-hop IP addresses for virtual appliances must be in the destination subnet rather than a transit subnet.
Answer
Azure will route the traffic using the user-defined route with the destination prefix because it is the longest prefix match for , and user-defined routes override the default system local virtual network routes.
Azure uses the Longest Prefix Match (LPM) algorithm to choose the route for a packet. Because the target IP address is , the route for is a longer prefix match than the default system route of . Furthermore, User-Defined Routes take precedence over default system routes, ensuring the packet is correctly sent to the NVA rather than routed locally.
Step-by-Step Solution
Key Concept
Azure routes traffic based on the longest prefix match (LPM) first, and when prefixes match, User-Defined Routes (UDRs) override system routes.