AWS Certified Developer – Associate — Question 315
A company is offering APIs as a service over the internet to provide unauthenticated read access to statistical information that is updated daily. The company uses Amazon API Gateway and AWS Lambda to develop the APIs. The service has become popular, and the company wants to enhance the responsiveness of the APIs.
Which action can help the company achieve this goal?
Answer options
- A. Enable API caching in API Gateway.
- B. Configure API Gateway to use an interface VPC endpoint
- C. Enable cross-origin resource sharing (CORS) for the APIs.
- D. Configure usage plans and API keys in API Gateway.
Correct answer: A
Explanation
Enabling API caching in Amazon API Gateway improves responsiveness and reduces latency by storing endpoint responses, which is highly effective since the underlying statistical data changes only once a day. Interface VPC endpoints are designed for private VPC connectivity rather than public internet traffic, while CORS is a browser security mechanism that does not enhance performance. Usage plans and API keys are used for access control and throttling, which does not improve API responsiveness for public, unauthenticated users.