A SaaS provider is setting up a new multi-VPC environment in the eu-west-1 Region. The environment consists of two spoke VPCs: vpc-payment-prd and vpc-booking-prd. Both VPCs are deployed across two Availability Zones (eu-west-1a and eu-west-1b). The workloads in these spoke VPCs require highly available, outbound-only internet access to communicate with external payment APIs, while minimizing cross-Availability Zone data transfer charges. Additionally, the workloads must resolve private domain names hosted in a Route 53 Private Hosted Zone (PHZ) corp.internal managed in a central Shared Services account. The solutions architect decides to use an AWS Transit Gateway to connect the VPCs.
Which configuration should the solutions architect implement to meet these requirements?
- ADeploy an AWS Transit Gateway and attach all three VPCs. In vpc-egress-shared, deploy a single NAT Gateway in eu-west-1a to minimize costs. Configure the Transit Gateway route table for the spoke VPC attachments to direct 0.0.0.0/0 traffic to the vpc-egress-shared attachment. Configure the route tables of the Transit Gateway subnets in vpc-egress-shared to route all outbound traffic to this single NAT Gateway. From the Shared Services account, associate the Private Hosted Zone corp.internal with both vpc-payment-prd and vpc-booking-prd.
- BEstablish VPC peering connections between vpc-payment-prd and vpc-egress-shared, and between vpc-booking-prd and vpc-egress-shared. In vpc-egress-shared, deploy one NAT Gateway in eu-west-1a and one NAT Gateway in eu-west-1b. Configure the route tables in the spoke VPCs to direct 0.0.0.0/0 traffic to the VPC peering connections. From the Shared Services account, associate the Private Hosted Zone corp.internal with both vpc-payment-prd and vpc-booking-prd.
- Deploy an AWS Transit Gateway and attach all three VPCs. In vpc-egress-shared, deploy one NAT Gateway in eu-west-1a and one NAT Gateway in eu-west-1b. Configure the Transit Gateway route table for the spoke VPC attachments to direct 0.0.0.0/0 traffic to the vpc-egress-shared attachment. Configure the route tables of the Transit Gateway subnets in vpc-egress-shared to route traffic to the NAT Gateway in the same Availability Zone. From the Shared Services account, associate the Private Hosted Zone corp.internal with both vpc-payment-prd and vpc-booking-prd.Answer
- DDeploy an AWS Transit Gateway and attach all three VPCs. In vpc-egress-shared, deploy one NAT Gateway in eu-west-1a and one NAT Gateway in eu-west-1b. Configure the Transit Gateway route table for the spoke VPC attachments to direct 0.0.0.0/0 traffic to the vpc-egress-shared attachment. Configure the route tables of the Transit Gateway subnets in vpc-egress-shared to route traffic to the NAT Gateway in the same Availability Zone. In the Shared Services account, associate the Private Hosted Zone corp.internal with vpc-egress-shared only, relying on the Transit Gateway attachments to transitively resolve the internal domain names.