AWS Certified Solutions Architect – Associate (SAA-C02) — Question 354
A company has an application running on Amazon EC2 instances in a private subnet. The application needs to store and retrieve data in Amazon S3. To reduce costs, the company wants to configure its AWS resources in a cost-effective manner.
How should the company accomplish this?
Answer options
- A. Deploy a NAT gateway to access the S3 buckets.
- B. Deploy AWS Storage Gateway to access the S3 buckets.
- C. Deploy an S3 gateway endpoint to access the S3 buckets.
- D. Deploy an S3 interface endpoint to access the S3 buckets.
Correct answer: C
Explanation
An S3 gateway endpoint is the most cost-effective solution because it is free of charge and allows EC2 instances in a private subnet to securely access Amazon S3 without traversing the public internet. In contrast, NAT gateways and S3 interface endpoints incur hourly usage and data processing fees. AWS Storage Gateway is designed for hybrid cloud storage integration and is not the appropriate or cost-effective choice for direct EC2-to-S3 communication.