A Lambda function's reserved concurrency is 100, and each execution environment opens its own connection to an Amazon RDS for MySQL instance that allows 80 connections. During traffic spikes the database rejects connections. Which change BEST lets the function keep scaling to 100 without exhausting database connections?
Show the answer
Correct answerB. Route the function's database connections through Amazon RDS Proxy.
AWhy not this: Provisioned environments still open one connection each, so 100 of them still exceed the database's limit.
BWhy this is right: RDS Proxy multiplexes many client connections over a pooled set of database connections.
CWhy not this: Waiting longer does not add database connections; requests still fail or queue behind the limit.
DWhy not this: Reuse avoids reconnecting within one environment, but 100 concurrent environments still need 100 connections.
RDS Proxy pools and shares a smaller set of database connections among many concurrent Lambda execution environments, so the function can scale to its concurrency limit without exceeding the database's connection limit. Reusing a connection per environment still leaves up to 100 environments each holding one connection.