A retail company is launching a new customer-facing application in a dedicated VPC in the Region. The application runs on Amazon EC2 instances distributed across three Availability Zones (, , and ) within private subnets. The instances require outbound internet connectivity to download real-time currency exchange rates and must also resolve internal domain names within a Route 53 Private Hosted Zone (PHZ) named that is managed in a separate Shared Services AWS account. Which design configuration satisfies these requirements while minimizing latency, preventing a single point of failure for outbound traffic, and ensuring proper internal name resolution?
- Deploy a NAT Gateway in a public subnet in each of the three Availability Zones. Configure the route table of each private subnet to route internet-bound traffic () to the NAT Gateway in its corresponding Availability Zone. Associate the Private Hosted Zone in the Shared Services account with the new application VPC.Cevap
- BDeploy a single NAT Gateway in a public subnet in . Configure the route tables of the private subnets in all three Availability Zones to route internet-bound traffic () to this single NAT Gateway. Associate the Private Hosted Zone in the Shared Services account with the new application VPC.
- CDeploy a NAT Gateway in a public subnet in each of the three Availability Zones. Configure the route table of each private subnet to route internet-bound traffic () to the NAT Gateway in its corresponding Availability Zone. Rely on the VPC's default Route 53 Resolver to automatically resolve query requests for without performing any cross-account association.
- DDeploy a NAT Gateway in a public subnet in each of the three Availability Zones. Attach an AWS Transit Gateway to the VPC, and configure the private subnets to route internet-bound traffic () to the Transit Gateway. Associate the Private Hosted Zone directly with the Transit Gateway to enable cross-VPC DNS resolution.
Cevap
Deploy a NAT Gateway in a public subnet in each of the three Availability Zones, route each private subnet's internet-bound traffic to the NAT Gateway in its corresponding zone, and associate the Private Hosted Zone with the application VPC.
Deploying a NAT Gateway in each Availability Zone ensures that workloads in each zone have a local, redundant path to the internet. This design avoids cross-AZ data transfer charges for internet egress and ensures that an outage in one Availability Zone does not disrupt internet connectivity in the other zones. Additionally, associating the cross-account Private Hosted Zone with the application VPC allows the application's default Route 53 Resolver to resolve domains within the private hosted zone.
Adım Adım Çözüm
Anahtar Kavram
High-availability VPC egress design and cross-account Route 53 Private Hosted Zone association.
Tahmini Süre:1m 30s