Backend developer interview question · 1–3 years
What does await actually do?
The strongest answer
It returns control to the caller while the operation is in flight and resumes the rest of the method when it completes — the thread is released rather than blocked, which is why a server scales
Why it works
Exactly. Freeing the thread, not adding one, is the point.
What a good answer covers
- await frees the thread while waiting.
- No new thread for I/O.
- The continuation resumes afterwards.
- Scalability comes from not blocking.
Answers that fall short
- Close, but not the strongest: It starts a new thread to run the operation
No thread is created for asynchronous I/O. - Weak: It blocks until the task finishes, like .Result
That is precisely what await avoids. - Red flag: It makes the method run in the background and returns immediately
The rest of the method still runs, just later.
Who gets asked this
More Backend developer questions
- A CPU-bound function is too slow. You add threads and nothing improves. Why?
- Under load the app stops responding, CPU is low and requests queue. What do you suspect?
- 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?