AWS Certified Solutions Architect - Associate / Question #1595 of 1019

Question #1595

An e-commerce platform is developing a serverless REST API using Amazon API Gateway and AWS Lambda. Their customer base is spread across multiple continents, and they need to minimize API response times globally. Which endpoint configuration should be implemented to achieve the lowest latency for all users?

A

Private endpoint

B

Regional endpoint

C

Interface VPC endpoint

D

Edge-optimized endpoint

Explanation

The correct answer is D (Edge-optimized endpoint). Here's why:

- Edge-optimized endpoint: Designed for global audiences, it leverages CloudFront's content delivery network (CDN) to route API requests through the nearest AWS edge location. This reduces latency by minimizing the distance between users and the API endpoint, ensuring faster response times across continents.

- Why other options are incorrect:
- A (Private endpoint): Restricts API access to a VPC and does not address global latency.
- B (Regional endpoint): Serves requests from a single AWS region, leading to higher latency for users far from that region.
- C (Interface VPC endpoint): Enables private VPC access to API Gateway but does not optimize for global latency.

Key Takeaway: For global latency reduction in serverless APIs, edge-optimized endpoints are ideal due to CloudFront's distributed edge locations.

Answer

The correct answer is: D