Compare 'Edge-Optimized' versus 'Regional' API Gateway endpoints.

Python interview question for Advanced practice.

Answer

An Edge-Optimized endpoint routes traffic through the nearest CloudFront Point of Presence (PoP), which reduces latency for geographically distributed users by getting the request onto the provider's high-speed backbone as quickly as possible. A Regional endpoint is intended for clients in the same region as the API and does not use a CDN, making it better for high-throughput internal communication or if you manage your own CDN.

Explanation

CloudFront is the CDN used by AWS for edge-optimized endpoints.

Related Questions