An enterprise operates a data processing application deployed on Amazon EC2 instances in private subnets within an application VPC. The application needs to transfer of data monthly to a central database VPC located in the same AWS Region. Additionally, the EC2 instances must upload of processed log files monthly to an Amazon S3 bucket. Currently, both the database VPC traffic and the S3 traffic are routed through an AWS Transit Gateway and a NAT Gateway. A solutions architect needs to optimize the network architecture to minimize data transfer charges. Which two actions should the solutions architect recommend to meet these requirements most cost-effectively? (Select TWO.)
- Establish a VPC Peering connection between the application VPC and the database VPC, and update the route tables to route database traffic through the peering connection.Cevap
- Create a Gateway VPC Endpoint for Amazon S3 in the application VPC, and associate it with the private subnet route tables to direct S3 traffic.Cevap
- CReplace the NAT Gateway with an Interface VPC Endpoint (AWS PrivateLink) for Amazon S3 to handle the log uploads.
- DDeploy an AWS Site-to-Site VPN connection between the application VPC and the database VPC to secure and route the database traffic.
- EAssign public IP addresses to the EC2 instances and configure them to transfer the data directly to the database VPC and Amazon S3 over the public internet.
Cevap
Establish a VPC Peering connection between the application VPC and the database VPC to route database traffic, and create a Gateway VPC Endpoint for Amazon S3 in the application VPC to route S3 traffic.
Establishing a VPC Peering connection enables direct routing between the application and database VPCs without incurring the data processing fees of AWS Transit Gateway. Creating a Gateway VPC Endpoint for Amazon S3 directs the log upload traffic directly to S3 without traversing the NAT Gateway, eliminating the NAT Gateway data processing and hourly charges.
Adım Adım Çözüm
Anahtar Kavram
AWS Data Transfer Cost Optimization using VPC Peering and Gateway Endpoints