FastAPI
Dependency injection
Declaring what a route needs and letting the framework provide it, with caching and teardown handled.
Why interviewers ask about it
The testing payoff is the strongest argument: dependency_overrides swaps a real database for a fake without touching application code.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.