Architecture Design and Implementation Built for the Cloud

A transit gateway learns identical on-premises prefixes through a Direct Connect gateway and a BGP-enabled Site-to-Site VPN, but its VPC-facing route table also contains static routes for those prefixes targeting the VPN. The company requires Direct Connect to carry normal traffic and automatic VPN failover without route-table automation; what should the architect change?

Show the answer

Correct answerC. Remove the static routes and propagate both connections into the route table.

AWhy not this: Static routes take priority over propagated routes for the same prefix, so BGP attributes on the Direct Connect path cannot make it preferred.

BWhy not this: Static Direct Connect routes do not provide automatic fallback to a propagated VPN route for the same prefix.

CWhy this is right: Propagating both paths permits Direct Connect preference and automatic VPN fallback when the Direct Connect route is withdrawn.

DWhy not this: Static routes take priority over propagated routes for identical prefixes, regardless of VPN AS-path prepending.

For identical propagated prefixes, a transit gateway prefers Direct Connect gateway routes over Site-to-Site VPN routes and can fail over when the preferred route is withdrawn. Static VPN routes override propagated routes for the same prefix; BGP attributes such as AS-path length or local preference do not change that priority.