Ultimate access to all questions.
A company's application, which runs on AWS Lambda, utilizes an Amazon Aurora PostgreSQL DB cluster consisting of one small primary instance and three larger replica instances for read-only operations. During high traffic periods, the application's reliability diminishes due to an excessive number of database connections. Given the unpredictable nature of these traffic spikes, which solution will enhance the application's reliability?
Explanation:
The correct answer is A. Implementing Amazon RDS Proxy will help manage the connections efficiently by pooling and reusing existing connections, which reduces the overhead of opening and closing connections frequently. Configuring a read-only endpoint for RDS Proxy allows the application to distribute read-only requests effectively across the Aurora replica instances. This solution enhances the application's reliability during high traffic periods by preventing the database from being overwhelmed with too many connections. Options B, C, and D introduce changes that may not address the core issue of frequent short-lived connections as effectively as RDS Proxy does.