An AWS Lambda function bursts to 2,000 concurrent invocations, and each invocation opens a connection to an Amazon RDS for MySQL DB instance to write a record. The instance's CPU and memory use stay low, but it reaches its max_connections limit. Which solution is the MOST cost-effective?
Show the answer
Correct answerC. Place Amazon RDS Proxy between the function and the DB instance.
AWhy not this: A larger instance class raises max_connections but adds cost for CPU and memory the workload does not use.
BWhy not this: Read replicas serve reads, but these invocations write, and writes must go to the primary instance.
CWhy this is right: RDS Proxy shares a pool of connections among invocations, so the current instance class can absorb the burst.
DWhy not this: A cache serves repeated reads; it does not reduce the connections needed for writes.
Amazon RDS Proxy pools and reuses a small number of database connections for many Lambda invocations, so the existing instance class can handle the burst. Scaling up raises max_connections only by paying for CPU and memory the workload does not need.