An enterprise is designing a highly resilient hybrid network across two AWS Regions: `us-east-1` (Primary, with spoke VPCs) and `us-west-2` (Disaster Recovery, with spoke VPCs). The spoke VPCs in each region are connected to regional Transit Gateways (`TGW-East` and `TGW-West`), which are peered. The on-premises network uses the CIDR block ``. The enterprise has a 10 Gbps AWS Direct Connect (DX) connection terminating in `us-east-1` via a Direct Connect Gateway (`DXGW`) associated with both Transit Gateways. For redundancy, they deploy AWS Site-to-Site VPN connections from the on-premises datacenter to both `TGW-East` (`VPN-East`) and `TGW-West` (`VPN-West`). The spoke VPC CIDR ranges are `` for `us-east-1` and `` for `us-west-2`.
The architecture must satisfy the following constraints:
1. Under normal operations, all hybrid traffic must use the DX connection.
2. If the DX connection fails, traffic to and from `us-east-1` must fail over to `VPN-East`, and traffic to and from `us-west-2` must fail over to `VPN-West`.
3. Cross-region routing over the TGW peering link must not be used for hybrid traffic during a DX failure unless the local region's VPN is also down.
4. Asymmetric routing must be avoided to maintain stateful firewall inspection on-premises.
Which configuration strategy will meet these requirements?
- Enable route propagation from the DXGW and the local VPN attachment in the TGW route tables associated with the spoke VPCs in each region. For inter-VPC traffic, add a static route for the remote region's VPC CIDR pointing to the TGW peering attachment. For last-resort hybrid failover, add a static route for a supernet of the on-premises network (such as ``) pointing to the TGW peering attachment. On the customer gateway, configure BGP local preference to prefer the DX connection, and configure inbound route maps to decrease the local preference of the `` route received via `VPN-East` and the `` route received via `VPN-West`.Answer
- BEnable route propagation from the DXGW and the local VPN attachment in the TGW route tables associated with the spoke VPCs in each region. Add a static route for the on-premises prefix `` pointing to the TGW peering attachment in both regions to enable cross-region backup routing. On the customer gateway, configure BGP local preference to prefer the DX connection, and configure the customer gateway to advertise more specific prefixes over the DX connection than over the VPN connections.
- CEnable route propagation from the DXGW, the local VPN attachment, and the TGW peering attachment in the TGW route tables associated with the spoke VPCs in each region. On the customer gateway, configure BGP local preference to prefer the DX connection over the VPN connections. Configure the TGW route tables to use ECMP across the local VPN and the TGW peering attachment to balance the failover load.
- DAssociate the spoke VPCs in both regions directly with a Virtual Private Gateway (VGW) in each account, and connect them to the DXGW. Configure the Site-to-Site VPN connections to terminate on the VGWs. Use BGP AS-path prepending on the customer gateway to prefer the DX connection. On the customer gateway, configure static routes for the VPC CIDRs pointing to the respective VPN tunnels.