AWS Certified Solutions Architect – Professional — Question 690

A company is running an application in the AWS Cloud. The application consists of microservices that run on a fleet of Amazon EC2 instances in multiple
Availability Zones behind an Application Load Balancer. The company recently added a new REST API that was implemented in Amazon API Gateway. Some of the older microservices that run on EC2 instances need to call this new API.
The company does not want the API to be accessible from the public internet and does not want proprietary data to traverse the public internet.
What should a solutions architect do to meet these requirements?

Answer options

Correct answer: B

Explanation

To prevent traffic from traversing the public internet and keep the API private, the API Gateway endpoint type must be set to private. Creating an interface VPC endpoint (powered by AWS PrivateLink) allows the EC2 instances inside the VPC to securely connect to API Gateway using private IP addresses. Applying endpoint and resource policies ensures that only the specified VPC endpoint can access the REST API, satisfying all security requirements.