
Answer-first summary for fast verification
Answer: Use Amazon API Gateway and AWS Lambda functions with provisioned concurrency.
## Explanation **Correct Answer: B - Use Amazon API Gateway and AWS Lambda functions with provisioned concurrency.** **Why this is the correct answer:** 1. **Lowest operational overhead**: API Gateway + Lambda with provisioned concurrency requires minimal operational management. AWS handles server provisioning, scaling, and maintenance automatically. 2. **Consistent low latency during peak times**: Provisioned concurrency keeps Lambda functions initialized and ready to respond, eliminating cold starts. This ensures consistent low-latency responses even during sudden traffic spikes. 3. **Automatic scaling**: Both API Gateway and Lambda scale automatically to handle increased traffic without manual intervention. 4. **Cost-effective for variable workloads**: Lambda's pay-per-use model combined with provisioned concurrency for predictable performance during peaks is cost-effective. **Why other options are not optimal:** - **A (ALB + ECS)**: Requires managing containers, scaling policies, and infrastructure. Higher operational overhead than serverless. - **C (ALB + EKS)**: Highest operational overhead - requires managing Kubernetes clusters, nodes, pods, and scaling configurations. - **D (API Gateway + Lambda with reserved concurrency)**: Reserved concurrency limits maximum concurrent executions, which could cause throttling during peak times and doesn't address cold start latency issues. **Key AWS Services Used:** - **Amazon API Gateway**: Fully managed API service with built-in throttling, caching, and monitoring - **AWS Lambda**: Serverless compute with provisioned concurrency to keep functions warm - **Provisioned Concurrency**: Pre-initializes Lambda execution environments to eliminate cold starts This solution provides the best balance of consistent low-latency performance during peak usage with minimal operational management.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company provides an API interface to customers so the customers can retrieve their financial information. The company expects a larger number of requests during peak usage times of the year. The company requires the API to respond consistently with low latency to ensure customer satisfaction. The company needs to provide a compute host for the API. Which solution will meet these requirements with the LEAST operational overhead?
A
Use an Application Load Balancer and Amazon Elastic Container Service (Amazon ECS).
B
Use Amazon API Gateway and AWS Lambda functions with provisioned concurrency.
C
Use an Application Load Balancer and an Amazon Elastic Kubernetes Service (Amazon EKS) cluster.
D
Use Amazon API Gateway and AWS Lambda functions with reserved concurrency.