AWS Certified Solutions Architect – Professional (SAP-C02) — Question 407

A company has an application that uses an Amazon Aurora PostgreSQL DB cluster for the application's database. The DB cluster contains one small primary instance and three larger replica instances. The application runs on an AWS Lambda function. The application makes many short-lived connections to the database's replica instances to perform read-only operations.

During periods of high traffic, the application becomes unreliable and the database reports that too many connections are being established. The frequency of high-traffic periods is unpredictable.

Which solution will improve the reliability of the application?

Answer options

Correct answer: A

Explanation

Amazon RDS Proxy pools and shares database connections, which prevents the high volume of short-lived AWS Lambda connections from overwhelming the database and causing connection limits to be exceeded. Configuring a read-only endpoint on the proxy ensures that the read-only queries are correctly routed to the replica instances without exhausting resources. Increasing the connection limit manually or scaling instances dynamically is either insufficient or too slow to handle unpredictable traffic spikes.