Soru

Zorluk: OrtaHybrid and Multi-Account Network Connectivity Design

A company is designing a hybrid network architecture for its multi-account AWS environment in the `us-east-1` Region. The setup includes 1515 spoke VPCs that must connect to an on-premises data center. The design requires a primary 10 Gbps10\text{ Gbps} AWS Direct Connect connection and a backup IPsec VPN connection over the internet, both supporting dynamic routing and automatic failover. Additionally, all spoke VPCs must route their outbound internet traffic through a centralized egress VPC. Which configuration meets these requirements while ensuring high availability and minimizing administrative overhead?

  1. A
    Deploy a central AWS Transit Gateway (TGW) associated with a Direct Connect Gateway (DXGW) and an IPsec VPN attachment. For name resolution of hybrid resources, create a Route 53 Private Hosted Zone (PHZ) in a shared services VPC and associate it only with that VPC, relying on TGW routing to allow other spoke VPCs to resolve DNS queries.
  2. B
    Associate a Direct Connect Gateway (DXGW) directly with the Virtual Private Gateways (VGWs) of all 1515 spoke VPCs. Configure a central Transit Gateway to host the backup IPsec VPN connection and the centralized egress VPC. Route outbound internet traffic and backup on-premises traffic through the Transit Gateway using VPC peering from each spoke VPC.
  3. Deploy a central AWS Transit Gateway (TGW). Create a Direct Connect Gateway (DXGW) with a transit virtual interface and associate it with the TGW. Create an IPsec VPN attachment on the TGW. Create a centralized egress VPC with redundant NAT Gateways deployed across multiple Availability Zones, and attach it to the TGW. Configure the spoke VPC route tables to direct all 0.0.0.0/00.0.0.0/0 traffic to the TGW, and configure the TGW route tables to route egress traffic to the egress VPC and on-premises traffic to both the DXGW and VPN attachments, using BGP dynamic routing to prefer the Direct Connect path.Cevap
  4. D
    Deploy a central AWS Transit Gateway (TGW) associated with a Direct Connect Gateway (DXGW) and an IPsec VPN attachment. Create a centralized egress VPC with a single NAT Gateway in one Availability Zone to consolidate all outbound internet traffic. Configure the TGW to route all 0.0.0.0/00.0.0.0/0 traffic from the spoke VPCs to the egress VPC, and use BGP to manage failover between the Direct Connect and VPN paths.

Cevap

Deploy a central AWS Transit Gateway, connect it to the on-premises data center via a Direct Connect Gateway with a transit virtual interface and an IPsec VPN attachment, and use a centralized egress VPC with redundant NAT Gateways across multiple Availability Zones. Configure dynamic BGP routing to automatically failover from Direct Connect to VPN.
The correct architecture leverages AWS Transit Gateway to simplify multi-account connectivity. By attaching both the Direct Connect Gateway (using a transit VIF) and the IPsec VPN to the Transit Gateway and advertising the same BGP routes, the Transit Gateway automatically selects the Direct Connect path as primary and the VPN as backup. Centralizing egress through a multi-AZ NAT Gateway pool in an egress VPC attached to the Transit Gateway ensures high availability and cost-effective outbound traffic routing.

Adım Adım Çözüm

1
Centralize VPC connectivity using AWS Transit Gateway (TGW) to simplify the routing topology and avoid scale limitations.
All 1515 spoke VPCs and the egress VPC are attached to the same TGW, eliminating the need for complex VPC peering meshes.
Transit Gateway acts as a cloud router, enabling hub-and-spoke transit network routing at scale.
2
Connect the on-premises network to the TGW using a Direct Connect Gateway (DXGW) with a transit virtual interface and a backup VPN attachment.
The TGW has paths to on-premises via both Direct Connect and VPN.
A transit virtual interface is required to connect a Direct Connect Gateway to a Transit Gateway.
3
Configure BGP dynamic routing on both the Direct Connect and VPN connections, advertising identical on-premises prefixes.
AWS Transit Gateway automatically prefers the Direct Connect Gateway path over the VPN path because Direct Connect Gateway attachments are higher in the Transit Gateway route evaluation order than VPN attachments for identical prefixes.
This guarantees automatic failover to the backup VPN if the primary Direct Connect connection is lost, without manual routing updates.
4
Deploy redundant NAT Gateways across multiple Availability Zones in a central egress VPC, and configure default routes.
All spoke VPCs direct 0.0.0.0/00.0.0.0/0 traffic to the TGW, which forwards it to the egress VPC containing the NAT Gateway pool.
This setup secures and centralizes internet egress while eliminating single points of failure.

Anahtar Kavram

AWS Transit Gateway acts as a regional hub to simplify multi-account hybrid routing and centralize egress traffic. When identical prefixes are advertised over both a Direct Connect Gateway and an IPsec VPN, the Transit Gateway automatically prefers the Direct Connect path, enabling seamless, automatic failover.
Bu soruyu puanla