AWS Certified Developer – Associate — Question 187

A company is hosting an Amazon API 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?

Answer options

Correct answer: B

Explanation

Enabling provisioned concurrency ensures that a specified number of Lambda instances are pre-warmed and ready to handle requests, which significantly reduces startup time. API Gateway caching and Lambda proxy integration do not directly affect the function's initialization time, and AWS Global Accelerator is focused on improving performance and availability but does not optimize the Lambda function's startup.