Q21 — AWS SAA-C03 Ch.10
Question 21 of 100 | ← Chapter 10
Q621. A company is building a RESTful serverless web application on AWS by using Amazon API Gateway and AWS Lambda.The users of this web application will be geographically disturbed, and the company wants to reduce the latency of API requests to these users.Which type of endpoint should a solutions architect use to meet these requirements?
- A. Private endpoint
- B. Regional endpoint
- C. Interface VPC endpoint
- D. Edge-optimized endpoint ✓
Correct Answer: D. Edge-optimized endpoint
Explanation
To reduce the latency of API requests for geographically dispersed users in a serverless web application built on AWS using Amazon API Gateway and AWS Lambda, a solutions architect should use:D. Edge-optimized endpoint.D. An edge-optimized endpoint is the most suitable option for reducing latency for geographically dispersed users. When using an edge-optimized endpoint, Amazon API Gateway takes advantage of the CloudFront global network to route requests to the nearest CloudFront edge location. This helps to reduce the round- trip time (RTT) and improve the response time for users located in different geographical regions. Edge-optimized endpoints are automatically enabled by default when creating an API in Amazon API Gateway. They are particularly effective when serving clients that are spread across different regions.Option A is not the best choice:A. Private endpoints are used for securely accessing resources within a Virtual Private Cloud (VPC) over a private network connection. They are not specifically designed to reduce latency for geographically dispersed users.Option B is not the best choice either:B. Regional endpoints direct API requests to a specific region without leveraging the CloudFront network. While regional endpoints can be used, they may not provide the same level of improved latency as edge- optimized endpoints.Option C is not the best choice either:C. Interface VPC endpoints enable private connectivity between a VPC and other AWS services without traversing the public internet. They are not designed to optimize latency for geographically dispersed users. Therefore, the most appropriate type of endpoint to reduce latency for geographically dispersed users in a serverless web application using Amazon API Gateway and AWS Lambda is the edge-optimized endpoint (option D).