A frontend application uses an Amazon API Gateway API backend integrated with AWS Lambda. When requests arrive, the Lambda function loads many libraries, connects to an Amazon RDS database, processes the data, and returns it to the frontend. The company wants to minimize response latency for all users with the fewest operational changes. Which solution meets this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure provisioned concurrency for the Lambda function that handles the requests..
Why this is the answer
Provisioned concurrency initializes a specified number of execution environments for a Lambda function, ensuring they are ready to respond to requests without cold starts. This directly addresses the latency caused by library loading and database connection establishment, which are typical cold start activities, thus minimizing response latency for all users with minimal operational changes. Establishing a direct connection from the frontend to RDS is a security risk and bypasses the API Gateway and Lambda's benefits. Caching results in S3 might help for frequently accessed static data but won't reduce latency for dynamic data processing or cold starts. Increasing database size doesn't directly address Lambda cold starts or connection establishment time; it primarily affects database performance under heavy load.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed