A media streaming platform runs its transcoding engine on Amazon EC2 instances in private subnets across Availability Zones (AZ-A and AZ-B) in the `eu-west-1` Region. The transcoding instances constantly download large raw video files from external Content Delivery Networks (CDNs) on the public internet, process them, and upload them back. Currently, all outbound internet traffic from both private subnets is routed through a single NAT Gateway located in a public subnet in AZ-A.
During peak hours, transcoding instances in AZ-B experience elevated latency, connection timeouts, and packet drops. Network analysis reveals that the single NAT Gateway is hitting its throughput limit of and experiencing port allocation errors. Additionally, the company is incurring high inter-AZ data transfer charges for all internet-bound traffic originating from AZ-B.
Which architectural modification should a Solutions Architect recommend to optimize network performance, reduce latency, and minimize inter-AZ data transfer costs?
- Deploy a new NAT Gateway in a public subnet in AZ-B. Update the route table of the private subnet in AZ-B to route outbound internet traffic () to the new NAT Gateway in AZ-B, while keeping the private subnet in AZ-A routed through the existing NAT Gateway in AZ-A.Answer
- BKeep the single NAT Gateway in AZ-A. Create an AWS Transit Gateway, attach the VPC to the Transit Gateway, and configure a default route () in the private subnet route tables pointing to the Transit Gateway to load-balance traffic to the NAT Gateway.
- CReplace the NAT Gateway in AZ-A with a multi-AZ Application Load Balancer (ALB). Route all outbound internet-bound traffic from the private subnets through the ALB, and request AWS Support to pre-warm the ALB to handle the throughput spikes.
- DEstablish an AWS Direct Connect Gateway connection to a central egress VPC that hosts the single NAT Gateway. Update the route tables in the private subnets to route outbound traffic () transitively through the Direct Connect Gateway to the egress VPC.