Backend developer interview question · 3–5 years
Under load the app stops responding, CPU is low and requests queue. What do you suspect?
The strongest answer
Thread-pool starvation — blocking on async work with .Result or .Wait() ties up pool threads, and the pool only grows slowly, so everything queues behind it
Why it works
Right. Async all the way down is the fix; sync-over-async is the cause.
What a good answer covers
- Sync-over-async starves the pool.
- Low CPU with queuing is the signature.
- Async all the way down.
- Never .Result or .Wait() on a hot path.
Answers that fall short
- Close, but not the strongest: The garbage collector pausing the process
GC pauses are short and would show as CPU. - Weak: The database rejecting connections
That surfaces as connection errors, not silence. - Red flag: A memory leak filling the heap
A leak shows as growing memory and eventually an OOM.
Who gets asked this
More Backend developer questions
- The business asks for a disaster recovery plan. What two numbers do you ask for first, and why?
- Two requests read a balance of 100, each subtracts 30, and the balance ends at 70. What happened and what…
- Your queue delivers at least once. What does that force on every consumer?
- A Spring service bean keeps the current user in a field so its helper methods can read it. Under load, users…
- You are designing a Python service that fans out to many slow downstreams. What shapes the design?
- Your service calls three internal APIs and one is intermittently slow. What do you build in?
- You are asked to make a payments service active in two regions. What is the first design question?
- Product wants dashboards over the transactional database. When do you say no and build a separate analytical…