Skip to content
Preptima

Top 7 Async Interview Questions

Browse 7 real-world technical and behavioral interview questions about Async. Review scenarios, edge cases, and architectural best practices.

A save button calls an API, the request fails, the error appears in the console - and the UI still shows 'Saved'. Walk me through what is actually happening in that promise chain.

A catch handler that returns normally converts a rejected promise into a fulfilled one, so every then after it runs as though nothing failed. Combined with fetch, which only rejects on network errors and resolves happily on a 500, the chain reports success twice over. Fix by re-throwing from catch, checking response.ok, and modelling UI state as a machine.

mediumconcept

Write a helper that polls a condition until it is true or a timeout expires, then tell me what yours does when the condition throws.

A correct wait helper tracks a wall-clock deadline rather than an attempt count, treats an exception from the condition as a not-yet rather than a failure, returns the condition's value, and reports the last observed value or error when it gives up.

mediumcoding

A promise rejects and nothing is awaiting it. What does Node do?

An unhandled promise rejection in Node.js means a promise failed before any code observed the error. Treat it as a bug, await or return the promise chain, and make the process-level handler a last-resort alarm.

hardconcept

You kick off background work from a controller action and it throws once the response has gone out. What is happening?

Detached ASP.NET Core background work can fail after the response because the request scope is disposed. Copy required values, create a fresh service scope, and run tracked work through IHostedService, BackgroundService or a durable queue.

mediumcoding

A client disconnects but your server keeps working on their request. How does cancellation actually propagate in .NET?

A CancellationToken in C# is cooperative cancellation, not a thread abort. Pass it through async calls, check it around long CPU loops, and define whether cancelled work leaves durable side effects behind.

mediumconcept

Walk me through the phases of the Node event loop.

Node.js event loop phases explain callback ordering across timers, poll, check, nextTick and promise microtasks. Correct answers separate macro-task phases from microtasks instead of memorising one log order.

mediumconcept

You await Task.WhenAll over three calls and two of them fail. What does your catch block see?

One exception. WhenAll's task faults with an AggregateException holding every failure, but await rethrows only the first inner exception, so recovering the rest means keeping the WhenAll task in a variable and reading its Exception property.

hardcoding