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

An ecommerce company runs an application on AWS. The application has an Amazon API Gateway API that invokes an AWS Lambda function. The data is stored in an Amazon RDS for PostgreSQL DB instance.

During the company’s most recent flash sale, a sudden increase in API calls negatively affected the application's performance. A solutions architect reviewed the Amazon CloudWatch metrics during that time and noticed a significant increase in Lambda invocations and database connections. The CPU utilization also was high on the DB instance.

What should the solutions architect recommend to optimize the application's performance?

Answer options

Correct answer: C

Explanation

Amazon RDS Proxy is designed to pool and share database connections, which prevents Lambda functions from overwhelming the RDS PostgreSQL database with too many open connections during traffic surges. This directly mitigates the high CPU utilization and connection exhaustion issues observed on the database instance. Other options, like connection reuse in code or caching, do not fully address the connection management challenges inherent to serverless-to-relational database architectures as effectively as RDS Proxy.