A virtual private gateway learns an on-premises /16 through both a Direct Connect private virtual interface and a BGP Site-to-Site VPN, plus a more-specific /24 through the VPN. Traffic to the /24 uses the VPN, but policy requires Direct Connect for the entire /16 when available and VPN failover for that entire range. Which change meets these requirements?
Show the answer
Correct answerA. Withdraw the VPN /24 advertisement while retaining its /16.
AWhy this is right: Matching /16 routes allow Direct Connect preference while preserving VPN coverage for the entire range.
BWhy not this: Customer-router local preference controls that router's outbound selection, not the virtual private gateway's selection.
CWhy not this: AS-path changes do not override the VPN route's more-specific destination prefix.
DWhy not this: Keeping only the VPN /24 preserves the unwanted path and removes VPN failover for the rest of the /16.
The VPN /24 wins by longest prefix match. Removing it leaves identical /16 advertisements, for which the virtual private gateway prefers Direct Connect, while retaining VPN failover; AS-path prepending cannot override a more-specific prefix.