An enterprise is designing a hybrid network architecture for 15 AWS accounts, each containing a VPC in the eu-west-1 Region. The VPCs need to communicate with each other and with an on-premises data center. The primary connection must be an AWS Direct Connect link, and a Site-to-Site VPN must serve as the backup connection. Both connections will use BGP. The architecture must ensure path symmetry, automatic failover, and minimize administrative overhead. Which configuration meets these requirements?
- Attach the Direct Connect Gateway and the Site-to-Site VPN to an AWS Transit Gateway. Advertise the same on-premises IP prefixes via BGP over both paths. Configure the customer gateway to assign a higher BGP local preference for routes received over the Direct Connect connection, and rely on the Transit Gateway's default path selection to prefer the Direct Connect Gateway over the VPN.Cevap
- BConnect the Direct Connect Gateway to each spoke VPC using private virtual interfaces, and configure the Site-to-Site VPN to terminate on the AWS Transit Gateway. Set up static routes in the spoke VPC route tables pointing to the Direct Connect Gateway as primary and the Transit Gateway as backup.
- CAttach the Direct Connect Gateway and the Site-to-Site VPN to the AWS Transit Gateway. Associate the on-premises Route 53 Private Hosted Zone directly with the Transit Gateway to resolve on-premises domain names from the spoke VPCs.
- DAttach the Direct Connect Gateway to the AWS Transit Gateway. Terminate the backup Site-to-Site VPN connection on a single NAT Gateway located in a centralized services VPC to consolidate outbound internet-bound and VPN failover traffic.
Cevap
Attach the Direct Connect Gateway and the Site-to-Site VPN to an AWS Transit Gateway. Advertise the same on-premises IP prefixes via BGP over both paths. Configure the customer gateway to assign a higher BGP local preference for routes received over the Direct Connect connection, and rely on the Transit Gateway's default path selection to prefer the Direct Connect Gateway over the VPN.
The correct configuration uses AWS Transit Gateway to centralize connection management for the 15 accounts. By advertising identical prefixes over both BGP sessions, failover is managed dynamically. Traffic from AWS to the data center automatically prefers the Direct Connect Gateway over VPN because AWS Transit Gateway's route evaluation rules prioritize Direct Connect over VPN for matching prefix lengths. Traffic from the data center to AWS is kept symmetric by configuring the customer gateway to prefer the Direct Connect path (typically using a higher BGP local preference).
Adım Adım Çözüm
Anahtar Kavram
AWS Transit Gateway simplifies hybrid connectivity for multi-account environments. When routing identical prefixes advertised via BGP, Transit Gateway automatically prioritizes Direct Connect Gateway (transit VIF) attachments over VPN attachments. For the reverse path, customer gateways must be configured with BGP metrics (such as local preference) to ensure routing symmetry.