AWS Certified Solutions Architect – Associate (SAA-C02) — Question 240
A company has an image processing workload running on Amazon Elastic Container Service (Amazon ECS) in two private subnets. Each private subnet uses a
NAT instance for internet access. All images are stored in Amazon S3 buckets. The company is concerned about the data transfer costs between Amazon ECS and Amazon S3.
What should a solutions architect do to reduce costs?
Answer options
- A. Configure a NAT gateway to replace the NAT instances.
- B. Configure a gateway endpoint for traffic destined to Amazon S3.
- C. Configure an interface endpoint for traffic destined to Amazon S3.
- D. Configure Amazon CloudFront for the S3 bucket storing the images.
Correct answer: B
Explanation
The correct answer is B, as configuring a gateway endpoint allows the Amazon ECS to access Amazon S3 directly without going through the NAT instance, significantly reducing data transfer costs. Option A would not specifically reduce costs as NAT gateways are generally more expensive than instances. Option C, while it provides a connection, is not as cost-effective for S3 as a gateway endpoint. Option D introduces additional complexity and cost without addressing the direct transfer costs between ECS and S3.