A financial services company is designing a multi-account hub-and-spoke network architecture in a single AWS Region using an AWS Transit Gateway (TGW). The architecture consists of spoke VPCs (IP ranges within to ) and a Centralized Inspection VPC. The Centralized Inspection VPC hosts a fleet of third-party firewalls behind a Gateway Load Balancer (GWLB) and NAT Gateways. The company's on-premises datacenters use a primary AWS Direct Connect (DX) connection with a Transit VIF terminated on a Direct Connect Gateway (DXGW), and a backup IPsec Site-to-Site VPN connection terminated directly on the TGW. The design must meet the following requirements: all traffic between spoke VPCs, traffic between spokes and the on-premises network, and internet-bound egress traffic from the spokes must be inspected by the firewalls in the Centralized Inspection VPC; if the primary DX connection fails, traffic must fail over automatically to the Site-to-Site VPN, preferring the DX connection when it is healthy; and administrative overhead must be minimized while preventing routing loops. Which configuration will meet these requirements?
- AConfigure a single TGW route table named `Transit-RT` associated with all spoke VPC, Centralized Inspection VPC, DXGW, and VPN attachments. Enable route propagation for all attachments in `Transit-RT`. In the spoke VPC route tables, point `` and the on-premises ranges to the TGW. In `Transit-RT`, add a static route for `` pointing to the Centralized Inspection VPC attachment to direct all traffic to the firewall fleet.
- BConfigure three TGW route tables: `Spoke-RT`, `OnPrem-RT`, and `Inspection-RT` with the required associations and static routes. To enable domain name resolution across the environment, create a Route 53 Private Hosted Zone (PHZ) in a shared services account and associate it only with the Centralized Inspection VPC. Configure on-premises and spoke VPC DNS clients to resolve internal domains transitively through the Centralized Inspection VPC's Route 53 Resolver.
- Configure three TGW route tables: `Spoke-RT`, `OnPrem-RT`, and `Inspection-RT`. Associate `Spoke-RT` with all spoke VPC attachments and add a static route for `` pointing to the Centralized Inspection VPC attachment. Associate `OnPrem-RT` with the DXGW and VPN attachments and add a static route for `` pointing to the Centralized Inspection VPC attachment. Associate `Inspection-RT` with the Centralized Inspection VPC attachment and enable route propagation from the spoke VPC, DXGW, and VPN attachments. Configure BGP on the customer gateways to advertise on-premises prefixes with a shorter AS path over the DX connection than over the VPN.Answer
- DConfigure two TGW route tables: `Spoke-RT` and `Inspection-RT`. Associate `Spoke-RT` with all spoke VPC, DXGW, and VPN attachments, and add a static route for `` pointing to the Centralized Inspection VPC. Associate `Inspection-RT` with the Centralized Inspection VPC. Deploy a single NAT Gateway in a single Availability Zone in the Centralized Inspection VPC to handle all egress traffic. Configure the TGW attachment subnets in the Centralized Inspection VPC to route all incoming traffic directly to this NAT Gateway, bypassing the GWLB.