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?JuniorThe order list page in the Django admin takes ten seconds to load, and the logs show hundreds of SQL queries per page load. What's going on, and how do you fix it?Mid-levelA Django monolith can no longer keep up with growing traffic. How would you design how it runs in production: the application server, the worker model, the number of workers, and working with the database?Mid-levelIn a Django service, two concurrent requests are charging money from the same balance, and sometimes the balance goes negative or one of the charges gets lost. Why does this happen, and how would you fix it?SeniorTell me about the N+1 query problem in the Django ORM. How do you find it, and which ORM tools do you use to 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