Interview practice question
Serverless functions overwhelm the database with connections
Cloud & DevOps · Cloud Platforms · Intermediate
Your Lambda functions connect to an RDS PostgreSQL database, and during traffic spikes the database runs out of connections. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Each concurrent function opens connections.
- RDS Proxy pools connections.
- Reuse connections across invocations.
- Limit function concurrency.
- Consider queue buffering or Data API.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.