A multinational corporation operates a multi-account AWS environment. VPCs in the 'us-east-1' region use the CIDR block , while VPCs in the 'us-west-2' region use the CIDR block . Each region has an AWS Transit Gateway (TGW) managing local VPC traffic, and the two TGWs are peered.
The company is setting up hybrid connectivity to its on-premises data center (CIDR ) with the following requirements:
- A AWS Direct Connect (DX) connection with a Transit VIF terminates on a Direct Connect Gateway (DXGW) associated with the 'us-east-1' TGW. This is the primary path.
- An AWS Site-to-Site VPN connection is terminated on the 'us-west-2' TGW as a backup.
- Under normal operations, all traffic between both AWS regions and the data center must use the DX connection.
- If the DX connection or the 'us-east-1' TGW fails, all traffic must automatically fail over to the VPN connection.
- Active-active asymmetric routing must be prevented; the on-premises routers must prefer the DX path over the VPN path for all inbound AWS traffic.
Which two configurations should a solutions architect implement to meet these requirements? (Select TWO.)
- Associate the Direct Connect Gateway (DXGW) with both Transit Gateways. In each Transit Gateway route table, propagate the routes from both the DXGW attachment and the respective local Site-to-Site VPN attachment.Answer
- BUse AWS Resource Access Manager (RAM) to share the Direct Connect Transit VIF directly with the spoke VPCs to bypass the Transit Gateways, and configure static route tables in the VPCs for failover.
- Configure AS Path prepending on both AWS Site-to-Site VPN connections to advertise the local VPC CIDR with a longer AS path to the on-premises customer gateway.Answer
- DConfigure the customer gateway to advertise more specific subnets of the on-premises network (e.g., ) over the VPN connection and a summary subnet (e.g., ) over the Direct Connect connection.
- ECreate a Route 53 Private Hosted Zone for the on-premises domain, associate it with all VPCs in both regions, and configure failover routing policies pointing to the VPN public IP addresses as the primary path.