Question

Difficulty: HardHybrid and Multi-Account Network Connectivity Design

A global retail enterprise is designing a multi-account, multi-region AWS network architecture to support its migration. The setup consists of 3030 spoke VPCs in the `us-east-1` Region and 3030 spoke VPCs in the `us-west-2` Region, all managed under AWS Organizations.

The enterprise has the following requirements:
- Hybrid Connectivity: Connect all spoke VPCs to the on-premises data centers in New York and San Francisco. Two 10 Gbps10\text{ Gbps} AWS Direct Connect (DX) connections terminate at a Direct Connect Gateway (DXGW) in New York, and two terminate at the same DXGW in San Francisco.
- Failover: Establish AWS Site-to-Site VPN connections over the internet from the on-premises locations to AWS as a backup. The DX path must be preferred for all hybrid traffic, failing over to VPN only during a DX outage.
- Egress Security: Route all outbound internet traffic from both Regions through a dedicated egress VPC in each Region containing transit subnets and NAT Gateways. This must minimize cross-Availability Zone (AZ) data transfer costs and avoid single points of failure.
- DNS Resolution: Allow all spoke VPCs to resolve private domain names in a Route 53 Private Hosted Zone (PHZ) `corp.internal` hosted in a centralized Shared Services account.
- Administrative Overhead: Minimize cost, provisioning complexity, and ongoing management.

Which routing and connectivity design should the Solutions Architect recommend to meet these requirements?

  1. A
    Deploy an AWS Transit Gateway (TGW) in each Region and associate both TGWs with the DXGW. Establish Site-to-Site VPN connections from the New York customer gateway to the `us-east-1` TGW, and from the San Francisco customer gateway to the `us-west-2` TGW. Configure BGP on the customer gateways to prefer routes received via DX over VPN using BGP Local Preference. In each Region, deploy a centralized egress VPC with a single NAT Gateway in one AZ to minimize NAT Gateway hourly charges, routing all outbound traffic from all AZs to it. In all 6060 spoke VPCs, deploy Route 53 Resolver inbound and outbound endpoints to forward queries to the Shared Services VPC where the `corp.internal` PHZ is associated.
  2. B
    Deploy a Virtual Private Gateway (VGW) in each of the 6060 spoke VPCs and associate them directly with the DXGW to avoid Transit Gateway processing charges. Route spoke-to-spoke traffic across Regions through the DXGW. Deploy a single NAT Gateway in each Region's central VPC. In each spoke VPC account, create a duplicate Route 53 Private Hosted Zone for `corp.internal` and write a custom automation script to keep records in sync across all accounts.
  3. Deploy an AWS Transit Gateway (TGW) in each Region and associate both TGWs with the DXGW. Establish Site-to-Site VPN connections from the New York customer gateway to the `us-east-1` TGW, and from the San Francisco customer gateway to the `us-west-2` TGW. Configure BGP on the customer gateways to prefer routes received via DX over VPN using BGP Local Preference. In each Region, deploy a centralized egress VPC with a NAT Gateway in each AZ, attach the egress VPC to the local TGW with appliance mode enabled, and route spoke VPC egress traffic (0.0.0.0/00.0.0.0/0) to the TGW. Create VPC association authorizations for the `corp.internal` PHZ in the Shared Services account and associate the PHZ with the spoke VPCs in all accounts.Answer
  4. D
    Deploy an AWS Transit Gateway (TGW) in each Region and associate both TGWs with the DXGW. Establish Site-to-Site VPN connections from the New York customer gateway to the `us-east-1` TGW, and from the San Francisco customer gateway to the `us-west-2` TGW. To ensure failover routing, advertise more specific prefixes (e.g., /25/25) over the VPN connections and summarized prefixes (e.g., /16/16) over the DX connections. Deploy NAT Gateways in each AZ of the egress VPCs. Associate the `corp.internal` PHZ with the Shared Services VPC, set up VPC Peering between the spoke VPCs and the Shared Services VPC, and configure the spoke VPCs to forward DNS queries directly to the AWS-provided DNS server (169.254.169.253169.254.169.253) of the Shared Services VPC.

Answer

Deploy regional Transit Gateways associated with the Direct Connect Gateway, configure customer gateways to prefer DX via BGP Local Preference, centralize egress using multi-AZ NAT Gateways, and associate the Shared Services Private Hosted Zone directly with all spoke VPCs.
The correct solution involves deploying regional Transit Gateways (TGWs) associated with a single Direct Connect Gateway (DXGW) to handle the hybrid connection. Site-to-Site VPNs are terminated on the TGWs. Since TGW routing prefers DXGW-propagated routes over VPN routes by default for identical prefixes, and BGP Local Preference on customer gateways directs on-premises traffic over DX, symmetric routing and correct failover are achieved. High availability and cost efficiency for internet egress are maintained by deploying a NAT Gateway in each AZ of the egress VPC, avoiding cross-AZ charges and single points of failure. DNS is resolved cost-effectively by authorizing and associating the Route 53 Private Hosted Zone (PHZ) in the Shared Services account directly with all spoke VPCs, avoiding the high cost of Route 53 Resolver endpoints.

Step-by-Step Solution

1
Configure the hybrid network backbone by deploying regional Transit Gateways (TGWs) in `us-east-1` and `us-west-2`, attaching the spoke VPCs to their respective local TGW, and associating both TGWs with a central Direct Connect Gateway (DXGW) connected to the Chicago and Frankfurt DX locations.
Establishes a highly scalable hybrid network hub that supports up to 60 spoke VPCs and routes traffic to on-premises via DX.
Transit Gateway allows scaling beyond the 10-VGW limit of Direct Connect Gateway and acts as a central hub.
2
Set up Site-to-Site VPN connections terminating on the regional TGWs as a backup path. Configure BGP routing on the on-premises customer gateways to assign a higher Local Preference to routes received over DX compared to VPN, while relying on AWS TGW's default path selection to prefer DXGW routes over VPN routes for identical prefixes.
Ensures active-passive routing where the DX path is preferred for both inbound and outbound traffic, failing over to VPN only when DX is down.
Prevents asymmetric routing and ensures deterministic failover behavior.
3
Deploy a dedicated egress VPC in each Region with NAT Gateways in each Availability Zone. Attach these egress VPCs to their regional TGWs with appliance mode enabled.
Allows spoke VPCs to securely route outbound internet traffic through localized, highly available NAT Gateways.
Minimizes cross-AZ data transfer costs and prevents single-AZ outages from disrupting egress traffic for the entire Region.
4
Use AWS CLI or API to create VPC association authorizations for the `corp.internal` Private Hosted Zone in the Shared Services account, and accept these authorizations in each of the spoke VPC accounts.
Enables all 60 spoke VPCs to resolve private DNS records in `corp.internal` directly.
Eliminates the significant hourly costs and administrative complexity associated with deploying Route 53 Resolver endpoints in every spoke VPC.

Key Concept

Hybrid network design using Transit Gateway, Direct Connect Gateway, VPN failover routing, and cross-account Private Hosted Zone association.
Rate this question