Interview Prep/AWS/S3, RDS and DynamoDB

Lambda functions exhaust database connections on RDS under load. Fix it.

IntermediateScenarioS3, RDS and DynamoDB
Answer

Situation read → Each concurrent Lambda opens its own connection.

What I'd do →

  1. Put RDS Proxy in front and connect to the proxy endpoint
  2. Create it with a Secrets Manager secret and the DB SG
  3. Reuse connections outside the handler
  4. Limit reserved concurrency
  5. Monitor DatabaseConnections

Why → The proxy pools and multiplexes connections so bursts do not hit max_connections.

Interview tip → Proxy needs IAM auth or secrets and runs in the VPC.

aws All AWS questions Roadmap: AWS core services

More on S3, RDS and DynamoDB