An enterprise designs a hub-and-spoke virtual network topology in Azure to connect cloud workloads with their on-premises datacenter. The hub virtual network, `vnet-hub-core` (), contains an Azure Firewall deployed at and an ExpressRoute virtual network gateway. The spoke virtual network, `vnet-spoke-prod` (), contains a subnet named `snet-app` (). Virtual network peering is established between `vnet-hub-core` and `vnet-spoke-prod` with gateway transit enabled. The ExpressRoute gateway dynamically learns the on-premises database subnet prefix and the summary prefix via BGP. A custom Route Table is associated with `snet-app` and has gateway route propagation enabled. To ensure all traffic to the on-premises environment is inspected by the firewall, a User-Defined Route (UDR) is added with a destination prefix of and next hop address of . During auditing, network administrators discover that traffic destined for the database servers at bypasses the Azure Firewall and is sent directly to the ExpressRoute gateway. Which of the following explains this behavior?
- The dynamically learned BGP route for has a longer prefix match than the User-Defined Route for , causing Azure to prioritize the BGP route.Answer
- BUser-Defined Routes are always evaluated after BGP-propagated routes when there is any overlap in the destination IP address ranges.
- CEnabling gateway route propagation on the route table automatically disables User-Defined Routes that overlap with any BGP-learned routes.
- DThe VNet peering transit configuration is missing the 'Allow gateway transit' setting on the spoke virtual network, forcing BGP routes to bypass the UDR.