An organization manages a multi-account AWS environment with spoke VPCs in the `eu-west-1` Region and spoke VPCs in the `eu-central-1` Region. Spoke VPCs in each region are connected to a regional AWS Transit Gateway (TGW), and the two TGWs are peered. The organization is setting up hybrid connectivity to their on-premises data center. They want to implement a highly resilient design using a AWS Direct Connect (DX) connection as the primary path and an AWS Site-to-Site VPN connection as an active-passive backup. The design must ensure that the VPN connection only carries traffic if the DX connection fails, and it must avoid asymmetric routing.
Which TWO configurations must a Solutions Architect implement to meet these requirements?
- Associate the Direct Connect Gateway (DXGW) with the Transit Gateway in each region, and configure BGP sessions over a Transit Virtual Interface (Transit VIF).Answer
- Establish Site-to-Site VPN connections to the Transit Gateways, and configure the on-premises router to set a higher BGP Local Preference for routes received via Direct Connect compared to the VPN.Answer
- CConfigure static routes in the Transit Gateway route tables pointing to the VPN attachments, while enabling BGP route propagation for the Direct Connect Gateway association.
- DAssociate the Direct Connect Gateway with the Transit Gateway peering attachment to enable transitive cross-region routing.
- EConfigure the on-premises router to prepend its autonomous system (AS) path multiple times when advertising prefixes over the Direct Connect connection.
Answer
Associate the Direct Connect Gateway with the Transit Gateway in each region, and configure the on-premises router to set a higher BGP Local Preference for routes received via Direct Connect compared to the VPN.
The correct architecture uses a Direct Connect Gateway associated with regional Transit Gateways via a Transit VIF. For traffic leaving the on-premises data center to AWS, setting a higher BGP Local Preference for prefixes received over Direct Connect ensures that the data center router prefers the Direct Connect path. For traffic leaving AWS to on-premises, AWS automatically prefers Direct Connect over VPN for identical BGP-propagated prefixes, avoiding asymmetric routing.
Step-by-Step Solution
Key Concept
To establish a highly available hybrid network with AWS Transit Gateway, a Direct Connect Gateway associated with Transit Gateways via a Transit VIF provides primary routing, while a Site-to-Site VPN provides backup. Proper BGP configuration (such as Local Preference on-premises) is required to control traffic symmetry and failover priority without relying on static route overrides which would disrupt dynamic failover.