AWS Certified Developer – Associate — Question 274

A developer has created an AWS Lambda function that interacts with an Amazon Aurora MySQL database. The Lambda function makes queries to the database. After a performance test for the Lambda function, the database starts to show an error for too many connections.

Which solution will solve this problem with the LEAST operational effort?

Answer options

Correct answer: D

Explanation

Amazon RDS Proxy acts as a database connection pooler, which manages and multiplexes connections to the Amazon Aurora MySQL database, preventing the "too many connections" error with minimal operational overhead. Limiting Lambda concurrency (Option C) would restrict throughput and cause throttling, while migrating to DynamoDB (Option B) requires significant code rewriting. Creating a read replica (Option A) does not address connection exhaustion from highly concurrent Lambda scaling.