A serverless application uses Amazon API Gateway, AWS Lambda, and an Amazon RDS for PostgreSQL database. During peak or unpredictable traffic, the application experiences database connection timeouts. The company wants to reduce failures with the least code changes. What should a solutions architect do?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable RDS Proxy on the RDS DB instance..
Why this is the answer
Enabling RDS Proxy on the RDS DB instance is the most effective solution because it pools and shares database connections, reducing the overhead of establishing new connections for each Lambda invocation. This prevents connection exhaustion and timeouts during peak traffic without requiring significant code changes. Reducing Lambda concurrency might alleviate the issue but limits scalability and doesn't address the underlying connection management problem. Resizing the RDS instance class can increase the maximum connections but is a more expensive and less efficient solution than connection pooling, and still doesn't prevent connection storms. Migrating to DynamoDB is a significant architectural change, requiring extensive code rewrites, which violates the "least code changes" requirement.
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