18 real Async & Performance questions from the FastAPI bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is async def handler?
Junior
A.the behavior where a plain def endpoint is run in an external thread pool so blocking work does not stall the event loop
B.the ASGI server, built on uvloop and httptools, commonly used to run the application in production
C.an endpoint declared with the async keyword that runs directly on the event loop and may use await for non-blocking calls
D.the performance pitfall of calling slow synchronous code inside an async handler, which freezes concurrency for all requests
A.Synchronous handler offloading — the behavior where a plain def endpoint is run in an external thread pool so blocking work does not stall the event loop
B.Synchronous handler offloading — the performance pitfall of calling slow synchronous code inside an async handler, which freezes concurrency for all requests
C.Synchronous handler offloading — the ASGI server, built on uvloop and httptools, commonly used to run the application in production
D.Synchronous handler offloading — the asynchronous server interface standard, successor to WSGI, that lets the framework handle concurrent requests and websockets
8. Which term means: "the asynchronous server interface standard, successor to WSGI, that lets the framework handle concurrent requests and websockets"?
A.Starlette foundation — the lightweight ASGI toolkit that provides the underlying routing, requests, responses, and middleware for the framework
B.Starlette foundation — an endpoint declared with the async keyword that runs directly on the event loop and may use await for non-blocking calls
C.Starlette foundation — the ASGI server, built on uvloop and httptools, commonly used to run the application in production
D.Starlette foundation — the asynchronous server interface standard, successor to WSGI, that lets the framework handle concurrent requests and websockets
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.