In Async FastAPI & SQLAlchemy, what is the primary production engineering use case of 'Modular FastAPI Application Architecture'?
-
A. Creating fresh isolated
create_app()instances inpytestand keeping business logic 100% testable without HTTP. - B. Disabling runtime exception handling and bypassing input validation.
- C. Hardcoding database credentials directly inside Python source constants.
- D. Concatenating raw untrusted strings directly into SQL statements.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Modular FastAPI Application Architecture' is used in production Async FastAPI & SQLAlchemy specifically for: Creating fresh isolated create_app() instances in pytest and keeping business logic 100% testable without HTTP.