A financial services firm operates a multi-account AWS environment with spoke VPCs distributed across AWS accounts in the `us-east-1` and `us-west-2` Regions. The firm connects its on-premises data center to AWS using an AWS Direct Connect (DX) gateway associated with an AWS Transit Gateway (TGW) in each Region via transit virtual interfaces (VIFs) over redundant connections. As a backup, a Site-to-Site VPN connection is established from on-premises to each TGW. The firm requires:
1. Symmetrical routing over the DX connections under normal operations, with automatic failover to the VPN connections if the DX connections fail.
2. Outbound internet traffic from all spoke VPCs must be routed through a centralized egress VPC in each Region while ensuring high availability.
3. Services in all VPCs must resolve DNS queries for a private hosted zone (PHZ) hosted in `us-east-1` under one of the AWS accounts.
Which configuration should the Solutions Architect implement to meet these requirements?
- Configure the on-premises router to advertise the on-premises prefixes with AS-path prepending over the VPN connections, and set a higher BGP local preference on-premises for routes received via DX. Deploy NAT Gateways in multiple Availability Zones in the egress VPC of each Region, configuring separate subnet route tables to route egress traffic. Authorize and associate the Route 53 PHZ with all spoke VPCs across both accounts.Answer
- BAssociate the Direct Connect gateway directly with the Virtual Private Gateways of all spoke VPCs to bypass Transit Gateway processing fees. Establish VPC peering connections between all spoke VPCs for inter-VPC traffic. Deploy a single NAT Gateway in the egress VPC of each Region, and associate the Route 53 PHZ with the central egress VPC.
- CConfigure BGP routing with AS-path prepending on the VPN and higher local preference on-premises for DX. Deploy NAT Gateways in multiple Availability Zones in the egress VPC of each Region. Share the Route 53 PHZ with the secondary account using AWS Resource Access Manager (RAM) to automatically enable DNS resolution in all spoke VPCs.
- DConfigure BGP routing with AS-path prepending on the VPN and higher local preference on-premises for DX. Deploy a single NAT Gateway in a single public subnet in the egress VPC of each Region to route all outbound internet traffic from the spoke VPCs. Authorize and associate the Route 53 PHZ with all spoke VPCs across both accounts.