QuestionQ22

Troubleshooting and Optimization

A company is hosting an Amazon AP! Gateway REST API that calls a single AWS Lambda function. The function is infrequently invoked by multiple clients at the same time.

The code performance is optimal, but the company wants to optimize the startup time of the function

What can a developer do to optimize the initialization of the function?

  • 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.
Explanation

Provisioned concurrency pre-initializes a specified number of Lambda execution environments, eliminating cold start latency. These environments are kept warm and ready to respond immediately to invocations, directly addressing the requirement to optimize function startup time for infrequently invoked functions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!