All jobs / Database administrator / Performance
Database administrator interview question · 1–3 years
Autoscaling added pods during a campaign and the database began refusing new connections.
Hundreds of application pods each keep a pool of twenty connections. The database is out of connections. Fix?
The strongest answer
Put a connection pooler between the app and the database so thousands of client connections multiplex onto a small server-side pool, and shrink the per-pod pools
Why it works
Exactly — a server-side pooler decouples client count from database connections.
What a good answer covers
- Pooler between app and database.
- Multiplex many clients onto few connections.
- Shrink per-pod pools.
- Raising the limit defers the crash.
Answers that fall short
- Close, but not the strongest: Raise the database connection limit until the errors stop
Every connection costs memory and scheduling; the limit exists for a reason. - Weak: Add a bigger server so it can hold more connections
Hardware scales linearly; the pod count does not. - Red flag: Tell the developers to reduce the number of pods
Application scaling is not the database’s decision to veto.
Who gets asked this
More Performance questions
- The same parameterised query is fast for most customers and terribly slow for one large customer. What is…
- The plan cache is full of thousands of near-identical statements that differ only by literal values. Impact…
- A nightly job updating a few million rows locks the entire table and blocks the application. Why, and what do…
- One row holding a global counter is updated by every request and has become the bottleneck. Options?
- A table is partitioned by month but queries still scan every partition. Why?
- The server is busy and nobody can say why. How do you use wait statistics to answer that?
- In plain words, how does an index make a query faster?
- A developer suggests indexing every column “just in case”. Your response?