A financial services company is designing a hybrid network connectivity architecture to connect its on-premises data center to its AWS environment. The AWS environment consists of a Production VPC in us-east-1 and a Development VPC in us-west-2, both attached to a central AWS Transit Gateway. The primary path must use an AWS Direct Connect connection with bandwidth, and an IPsec VPN over the public internet must serve as a backup path. Both paths connect to the same AWS Transit Gateway. The company wants to ensure that the IPsec VPN is used only if the Direct Connect connection fails, without requiring manual administrative intervention during failover. Which configuration will achieve this routing behavior automatically?
- Configure BGP on both the Direct Connect virtual interface and the VPN connection to advertise the same on-premises prefixes. The Transit Gateway will automatically prefer the Direct Connect Gateway path over the VPN path due to the default AWS route source evaluation order.Answer
- BConfigure dynamic BGP routing over the Direct Connect connection, and define static routes with a lower administrative distance pointing to the VPN connection in the Transit Gateway route table.
- CAssociate the Route 53 Private Hosted Zone with both VPCs and use Route 53 failover routing policies to resolve the hybrid endpoints, switching traffic to the VPN endpoint if the Direct Connect resolver endpoint becomes unhealthy.
- DDeploy a single NAT Gateway in the public subnet of the Production VPC, and establish the backup IPsec VPN connection through this NAT Gateway to handle outbound hybrid traffic if the Direct Connect connection fails.
Answer
Configure BGP on both the Direct Connect virtual interface and the VPN connection to advertise the same on-premises prefixes. The Transit Gateway will automatically prefer the Direct Connect Gateway path over the VPN path due to the default AWS route source evaluation order.
When a Transit Gateway receives identical prefixes from both a Direct Connect Gateway and an IPsec VPN connection, AWS evaluates the route source. In the route evaluation order, Transit Gateway automatically prioritizes Direct Connect Gateway attachments over VPN attachments for identical CIDR blocks. By advertising the same prefixes over both BGP sessions, failover occurs dynamically and automatically without manual intervention or static routing conflicts.
Step-by-Step Solution
Key Concept
AWS Transit Gateway route evaluation order and source preference for hybrid connectivity.