Q87 — AWS DVA-C02 Ch.1
Question 87 of 100 | ← Chapter 1
A company is hosting an Amazon API Gateway REST API that invokes a single AWS Lambda function. The function is invoked by many clients simultaneously. Code initialization takes time, but the company wants to minimize the function’s startup latency. What can the developer do to optimize function initialization?
- A. Enable API Gateway caching for the REST API.
- B. Configure provisioned concurrency for the Lambda function. ✓
- C. Use Lambda proxy integration for the REST API.
- D. Configure AWS Global Accelerator for the Lambda function.
Correct Answer: B. Configure provisioned concurrency for the Lambda function.
Explanation
Provisioned concurrency (Option B) keeps Lambda execution environments initialized and ready to respond instantly, eliminating cold starts. API Gateway caching (A) caches responses but does not affect Lambda initialization. Lambda proxy integration (C) simplifies integration but does not reduce startup latency. AWS Global Accelerator (D) improves global routing performance for endpoints like ALBs or EC2—not Lambda functions. Thus, B directly addresses initialization latency.