AWS Certified Solutions Architect – Associate (SAA-C03) — Question 335
A company hosts a serverless application on AWS. The application uses Amazon API Gateway, AWS Lambda, and an Amazon RDS for PostgreSQL database. The company notices an increase in application errors that result from database connection timeouts during times of peak traffic or unpredictable traffic. The company needs a solution that reduces the application failures with the least amount of change to the code.
What should a solutions architect do to meet these requirements?
Answer options
- A. Reduce the Lambda concurrency rate.
- B. Enable RDS Proxy on the RDS DB instance.
- C. Resize the RDS DB instance class to accept more connections.
- D. Migrate the database to Amazon DynamoDB with on-demand scaling.
Correct answer: B
Explanation
Implementing Amazon RDS Proxy allows AWS Lambda functions to pool and share database connections, which efficiently manages connection spikes and resolves timeout errors with minimal code modifications. Reducing Lambda concurrency would throttle application throughput, while scaling up the DB instance class is a costly and less scalable approach to connection management. Migrating to Amazon DynamoDB would require extensive code changes to rewrite the database access layer, violating the requirement for the least amount of change.