An enterprise is designing a multi-region database solution. The primary database is located in `vpc-primary` in `us-east-1` across two Availability Zones, and its read replica is in `vpc-replica` in `us-west-2` across two Availability Zones. A corporate datacenter requires private access to both VPCs over an existing 10 Gbps AWS Direct Connect connection terminated at a Direct Connect Gateway (DXGW). The replication traffic between the databases must be highly performant and use the AWS private backbone. Additionally, database instances in both VPCs require highly available outbound internet access for security patching. A Route 53 Private Hosted Zone (PHZ) named `databases.internal` must be resolvable from both VPCs and from the corporate datacenter. Which network architecture meets these requirements with the lowest latency and highest availability?
- ADeploy AWS Transit Gateway in both regions, peer them for database replication, and associate the DXGW only with the Transit Gateway in us-east-1, routing the us-west-2 datacenter traffic transitively over the Transit Gateway peering connection. Deploy a NAT Gateway in one Availability Zone in each VPC. Associate the Private Hosted Zone with vpc-primary and configure Route 53 Resolver Inbound Endpoints in both VPCs.
- BAssociate both vpc-primary and vpc-replica with the DXGW using Virtual Private Gateways to route both database replication and datacenter traffic. Deploy a NAT Gateway in each Availability Zone in both VPCs. Associate the Private Hosted Zone with vpc-primary and set up Route 53 Resolver Inbound Endpoints in both VPCs to forward queries to the on-premises DNS servers.
- Deploy AWS Transit Gateway in both regions, peer them for database replication, and associate the DXGW with both Transit Gateways to provide datacenter access. In each VPC, deploy a NAT Gateway in each Availability Zone for patching. Associate the Private Hosted Zone with both VPCs, and deploy Route 53 Resolver Inbound Endpoints in the VPCs to handle DNS queries from the corporate datacenter.Answer
- DDeploy AWS Transit Gateway only in us-east-1 and peer it to vpc-replica via an inter-region VPC peering connection. Associate the DXGW with the Transit Gateway to provide datacenter access to both regions. Deploy a single NAT Gateway in vpc-primary to handle internet egress for both VPCs. Associate the Private Hosted Zone with vpc-primary and create Route 53 Resolver Outbound Endpoints to resolve DNS queries from the datacenter.