AWS Certified Solutions Architect – Professional (SAP-C02) — Question 140

A company has developed APIs that use Amazon API Gateway with Regional endpoints. The APIs call AWS Lambda functions that use API Gateway authentication mechanisms. After a design review, a solutions architect identifies a set of APIs that do not require public access.

The solutions architect must design a solution to make the set of APIs accessible only from a VPC. All APIs need to be called with an authenticated user

Which solution will meet these requirements with the LEAST amount of effort?

Answer options

Correct answer: C

Explanation

The correct answer is C because changing the API endpoint to private in API Gateway and creating a VPC endpoint restricts access to only the specified VPC while ensuring authentication is maintained. Options A and D involve unnecessary complexity by introducing additional components like ALB and EC2, while option B complicates DNS management without addressing the VPC access requirement effectively.