AWS Certified Solutions Architect - Professional free question 2 / 10 · Domain 1: Architecture Design and Implementation Built for the Cloud
Two AWS Site-to-Site VPN connections are attached to one virtual private gateway. The primary connection advertises 10.0.0.0/16 over BGP, and the same 10.0.0.0/16 was registered as a static route on the backup connection. Traffic was supposed to use the primary connection, but it goes through the backup connection. Which cause is correct?
- A static route has no AS path, so it is treated as a shorter path than the route learned through BGP
- The virtual private gateway prefers the older VPN connection based on the order of creation, so the backup, created first, is used
- The routes of the two connections are treated the same as a BGP advertisement, and traffic is load balanced evenly across them
- When identical routes exist, a statically assigned route is preferred over a route that was advertised through BGP
Show the answer and explanation
Answer: D
Why this is correct
When there are multiple VPN connections, the virtual private gateway decides which connection to send traffic to by using statically assigned routes or BGP route advertisements. When identical routes exist, the statically assigned route is preferred over the BGP-advertised route. AWS recommends advertising specific BGP routes to influence the selection.
Why the other options are wrong
"The virtual private gateway prefers the older VPN connection based on the order of creation, so the backup, created first, is used" … The page gives the preference between route types: statically assigned routes are preferred over BGP-advertised routes when identical routes exist in the virtual private gateway. The order of creation is not the criterion.
"A static route has no AS path, so it is treated as a shorter path than the route learned through BGP" … The static route wins because of the preference between route types, not because of a comparison of AS path length. Explaining it by an AS path comparison confuses it with the comparison between BGP routes.
"The routes of the two connections are treated the same as a BGP advertisement, and traffic is load balanced evenly across them" … When a static route and a BGP route conflict for the same route, the static route is chosen, not an even split of traffic. AWS recommends advertising specific BGP routes to influence routing decisions.
Key point
Statically assigned routes are preferred over BGP-advertised routes when identical routes exist in the virtual private gateway. If you select the option to use BGP advertisement, you cannot specify static routes. AWS recommends advertising specific BGP routes to influence routing decisions.