A company is hosting a static website on Amazon S3. The website uses JavaScript to make API calls to a backend API hosted on Amazon API Gateway. The company wants to reduce latency for users worldwide. Which combination of AWS services should the solutions architect use? (Choose two.)
This allows API calls to be served from edge locations.
Why this answer
Amazon CloudFront can use API Gateway as a custom origin, allowing API requests to be served from edge locations closer to users, which reduces latency. This integration caches API responses at the edge when possible and terminates the user's TCP connection at the edge, improving performance for global users.
Exam trap
The trap here is that candidates may think Lambda@Edge can directly process API calls to API Gateway, but Lambda@Edge only intercepts CloudFront events and cannot replace the API Gateway origin or handle backend API logic.