An enterprise runs a distributed data processing application in Account A. The application runs on Amazon EC2 instances in a VPC in the (Oregon) Region across three Availability Zones. Every month, the EC2 instances retrieve of raw telemetry data from an Amazon S3 bucket located in the Region in Account B (Shared Services). After processing, the application writes of transformed data to a central analytics S3 bucket in the (N. Virginia) Region in Account C (Analytics).
Currently, the VPC in Account A has a single NAT Gateway in one Availability Zone. All traffic to S3 is routed through this NAT Gateway. A Solutions Architect notices that the monthly AWS bill shows extremely high NAT Gateway data processing charges and inter-Region data transfer costs. The company wants to minimize these costs while maintaining a secure and highly available architecture.
Which configuration is the most cost-effective and architecturally sound?
- AConfigure an Amazon S3 Interface VPC Endpoint (AWS PrivateLink) in each Availability Zone in Account A's VPC. Configure the application to route all S3 traffic (both downloads from Account B and uploads to Account C) through these Interface VPC Endpoints to bypass the NAT Gateway.
- BConfigure an Amazon S3 Gateway VPC Endpoint in Account A's VPC and associate it with the route tables for all three Availability Zones. Create a local S3 staging bucket in in Account A, and configure an S3 Lifecycle policy to transition objects to S3 Glacier Deep Archive after 24 hours. Configure the application to write the transformed data directly to the S3 bucket in via a VPC Peering connection established between Account A and Account C.
- Configure an Amazon S3 Gateway VPC Endpoint in Account A's VPC and associate it with the route tables for all three Availability Zones. Create a local S3 staging bucket in in Account A. Configure the application to write the transformed data to the local staging bucket, and use an S3 Lifecycle policy to delete the objects after 1 day. Enable S3 Cross-Region Replication (CRR) on the staging bucket to replicate the processed data to the destination S3 bucket in in Account C.Answer
- DDeploy a NAT Gateway in each of the three Availability Zones in Account A's VPC to ensure high availability. For the of processed data, write the output to a local AWS Snowball Edge Storage Optimized device positioned in the local data center, and physically ship it to the AWS analytics center in weekly to eliminate all inter-Region network data transfer charges.