Q76 — AWS DVA-C02 Ch.3
Question 76 of 100 | ← Chapter 3
A developer is building a serverless application that connects to an Amazon Aurora PostgreSQL database. The serverless application consists of multiple AWS Lambda functions. Each time a Lambda function scales, a new database connection is established, increasing database resource consumption. The developer wants to reduce the number of database connections. The solution must not impact the scalability of the Lambda functions. Which solution meets these requirements?
- A. Configure provisioned concurrency for each Lambda function and set the ProvisionedConcurrentExecutions parameter to 10.
- B. Enable cluster cache management for Aurora PostgreSQL. Update each Lambda function’s connection string to point to the cluster cache manager.
- C. Use Amazon RDS Proxy to create a connection pool to manage database connections. Update each Lambda function’s connection string to reference the proxy. ✓
- D. Configure reserved concurrency for each Lambda function and set the ReservedConcurrentExecutions parameter to 10.
Correct Answer: C. Use Amazon RDS Proxy to create a connection pool to manage database connections. Update each Lambda function’s connection string to reference the proxy.
Explanation
In serverless applications with many Lambda functions, scaling triggers creation of new database connections, potentially overloading database resources. Amazon RDS Proxy addresses this by providing a managed connection pool, eliminating the need to establish a new connection per invocation. This reduces connection count, improves performance, and preserves Lambda scalability. Option A (provisioned concurrency) ensures warm execution environments but does not solve excessive connection creation. Option B (cluster cache management) relates to caching query results (e.g., via ElastiCache), not managing database connections. Option D (reserved concurrency) limits maximum concurrent executions but does not reduce connection overhead. Thus, option C is the optimal solution. 【Provided by Lantern Certification: swufelp1999】