
Answer-first summary for fast verification
Answer: Implement RDS Proxy for the RDS instance.
The correct answer is B: Implement RDS Proxy for the RDS instance. RDS Proxy helps manage the database connections efficiently and reduces the likelihood of connection timeouts during peak or unpredictable traffic scenarios. It provides connection pooling, which allows the application to handle a large number of simultaneous connections without overwhelming the database. This solution requires minimal changes to the existing application code, making it an ideal choice for resolving the issue described.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A serverless application on AWS, using Amazon API Gateway, AWS Lambda, and Amazon RDS for PostgreSQL, encounters increased errors due to database connection timeouts during peak or unpredictable traffic. The company seeks a solution to reduce these errors with minimal code changes.
A
Lower Lambda concurrency limits.
B
Implement RDS Proxy for the RDS instance.
C
Upgrade the RDS instance to handle more connections.
D
Switch to Amazon DynamoDB with its on-demand scaling feature.
No comments yet.