Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
How is Django different from FastAPI? What kinds of projects would you choose each one for?JuniorHow would you build a simple FastAPI service where a user uploads a file and processing takes a couple of minutes? The user needs to find out the result afterward.JuniorDesign an aggregator service in FastAPI: for every incoming request it has to call five external services and build a single response from their replies. How do you keep latency low and stay resilient to failures in those services?Mid-levelYou have a FastAPI service, and under load the p99 latency climbs to seconds even though the CPU isn't busy. You suspect the event loop is being blocked. How would you find the cause and fix it?SeniorYou have a large Django monolith, and the team wants to rewrite it in FastAPI for async and performance. How would you make this decision, and how would you carry out the change?Senior