NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
FastAPI Framework Engineering
Database Engineering & Async Persistence
Quiz
Chapter Quiz: Database Engineering & Async Persistence
Mastery Assessment: Database Integration
Complete this assessment with 100% score to master this chapter.
01
Which database driver is recommended for asynchronous PostgreSQL access in FastAPI?
psycopg2
asyncpg
sqlite3
pyodbc
02
Why should you use an asynchronous engine in a FastAPI application?
It makes the database queries run faster on the DB server.
It prevents database I/O from blocking the Python event loop, allowing the server to handle other requests while waiting.
It is the only way to connect to PostgreSQL.
It automatically generates SQL from Pydantic models.
03
What tool is commonly used with SQLAlchemy for managing database schema migrations?
Alembic
Pandas
SQLAlchemy-Migrate
Docker
Submit Answers
Back to Lesson
Next Chapter