A company has two VPCs (VPC A and VPC B) in the `us-east-1` Region. An application running on Amazon EC2 instances in private subnets in VPC A needs to transfer of data monthly to a database cluster in VPC B. Additionally, the EC2 instances in VPC A upload of backup data to Amazon S3 daily. Currently, VPC A and VPC B are connected using an AWS Transit Gateway, and all external traffic from the private subnets, including the S3 backup traffic, is routed through a central NAT Gateway. A solutions architect needs to reduce data transfer costs.
Which combination of actions will meet these requirements most cost-effectively? (Select TWO.)
- Create a Gateway VPC Endpoint for Amazon S3 in VPC A, and associate it with the route tables of the private subnets.Cevap
- Establish a VPC Peering connection between VPC A and VPC B, and route the traffic between the VPCs through the peering connection.Cevap
- CDeploy an Interface VPC Endpoint for Amazon S3 in VPC A to route the backup traffic privately.
- DRoute the Amazon S3 backup traffic through the existing AWS Transit Gateway to a NAT Gateway in VPC B.
- EProvision a NAT Instance in VPC A to replace the NAT Gateway, and route the Amazon S3 backup traffic through it.
Cevap
Create a Gateway VPC Endpoint for Amazon S3 in VPC A and associate it with the route tables of the private subnets, and establish a VPC Peering connection between VPC A and VPC B and route the traffic between the VPCs through the peering connection.
To optimize costs, the solutions architect should address both the S3 backups and the cross-VPC data transfer. For S3, using a Gateway VPC Endpoint is free and bypasses the NAT Gateway data processing fees. For cross-VPC traffic, since there are only two VPCs in the same Region with high data volumes, VPC Peering is more cost-effective than AWS Transit Gateway because VPC Peering does not charge hourly or data processing fees.
Adım Adım Çözüm
Anahtar Kavram
Data transfer cost optimization using Gateway VPC Endpoints for S3 and VPC Peering instead of NAT Gateway and Transit Gateway for high-volume point-to-point transfers.