All quizzes
Free quiz · 50 questions in the bank

FastAPI quiz

Test your FastAPI knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is the recommended way to share resources like DB sessions between endpoints?

Questions in this quiz
  1. What is the recommended way to share resources like DB sessions between endpoints?
  2. Which standard automatically backs FastAPI's docs?
  3. How do you serve static files from a directory?
  4. How do you raise a 404 in an endpoint?
  5. Which ASGI server is most commonly used to run FastAPI?
  6. How do you accept a cookie value?
  7. Which two function definition keywords does FastAPI support for endpoints?
  8. How are path parameters declared in FastAPI?
  9. Which decorator declares a GET endpoint at `/items`?
  10. Where does the auto-generated Swagger UI live?
  11. How do you set the HTTP status code returned by an endpoint?
  12. What does the `response_model` argument do?
Gaps to close?
Read the curated FastAPI notes — core concepts, patterns, interview prep.
FastAPI notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web