A retail company is designing a hybrid network to connect spoke VPCs in the `eu-west-1` Region to two on-premises data centers. The company has established a AWS Direct Connect connection at each data center. To ensure high availability, they also want to deploy a backup AWS Site-to-Site VPN connection over the internet. The traffic between the on-premises data centers and the spoke VPCs must use the Direct Connect connections as the primary path and fail over to the VPN connection only during a total Direct Connect outage. Additionally, the spoke VPCs must be able to communicate with each other directly through the central hub. Which configuration should a solutions architect recommend to meet these requirements with the least administrative overhead?
- Deploy an AWS Transit Gateway and attach all spoke VPCs. Create a Direct Connect Gateway, associate it with the Transit Gateway, and establish Transit Virtual Interfaces. Configure an AWS Site-to-Site VPN connection as a VPN attachment on the Transit Gateway. Configure BGP on the on-premises routers to advertise the on-premises CIDR blocks over both paths, prepending the AS Path on the VPN connection to ensure the Direct Connect connection is preferred.Answer
- BCreate a Direct Connect Gateway and associate it directly with the Virtual Private Gateways (VGWs) of all spoke VPCs. Establish individual Site-to-Site VPN connections from the data centers to the VGW of each spoke VPC. Configure the on-premises routers to advertise the local CIDR blocks to the Direct Connect Gateway and the VPNs, prioritizing the Direct Connect path using BGP local preference.
- CDeploy an AWS Transit Gateway and associate it with a Direct Connect Gateway. Connect the Direct Connect Gateway to a Virtual Private Gateway (VGW) attached to a central transit VPC. Establish VPC peering connections between the central transit VPC and the spoke VPCs, and configure the transit VPC route tables to route traffic transitively between the spoke VPCs and the on-premises data centers.
- DDeploy an AWS Transit Gateway and attach all spoke VPCs. Associate a Direct Connect Gateway with the Transit Gateway using Transit Virtual Interfaces, and attach a Site-to-Site VPN connection. For all outbound internet traffic from the spoke VPCs, route traffic through a centralized egress VPC using a single NAT Gateway deployed in a single Availability Zone to minimize deployment costs.