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.
Explanation:
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.