Medium1 markMultiple Choice
Domain 3.3: Performance ImprovementPerformanceRDSLambdaServerless

AWS SAP-C02 · Question 65 · Domain 3.3: Performance Improvement

An architecture includes an Amazon API Gateway, AWS Lambda, and Amazon RDS. The Lambda function frequently exhausts the available database connections on the RDS instance during traffic spikes. What is the MOST effective way to resolve this issue without increasing the RDS instance size?

Answer options:

A.

Increase the Lambda concurrent execution limit.

B.

Implement Amazon RDS Proxy between the Lambda function and the RDS instance.

C.

Use Amazon ElastiCache to cache database connections.

D.

Configure the Lambda function to close the connection after every query.

How to approach this question

Identify the connection pooling service for serverless.

Full Answer

B.Implement Amazon RDS Proxy between the Lambda function and the RDS instance.✓ Correct
Implement Amazon RDS Proxy between the Lambda function and the RDS instance.
Amazon RDS Proxy is a fully managed, highly available database proxy that pools and shares database connections, making applications more scalable and resilient to database failures. It is specifically designed to solve the Lambda connection exhaustion problem.

Common mistakes

Increasing Lambda concurrency, which exacerbates the connection limit issue.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

75 questions · hints · full answers · grading

More questions from this exam