All quizzes
Free quiz · 23 questions in the bank

SQLAlchemy quiz

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

Question 1/12Score 0

What does an `engine` represent in SQLAlchemy?

In this round
  1. What does an `engine` represent in SQLAlchemy?
  2. What is `Base.metadata.create_all(engine)` used for?
  3. What is a `Session` in SQLAlchemy?
  4. What is SQLAlchemy?
  5. How do you add a new row and save it to the database?
  6. What is a SQLAlchemy "model" (declarative class)?
  7. How do you eagerly load a related object/collection instead of lazily fetching it on access?
  8. What is a `ForeignKey` used for?
  9. What is a relationship (`relationship()`) used for?
  10. What is the difference between SQLAlchemy Core and the ORM?
  11. What does `unique=True` on a Column do?
  12. What is a database transaction, in the context of a SQLAlchemy session?
Gaps to close?
Read the curated SQLAlchemy notes — core concepts, patterns, interview prep.
SQLAlchemy notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka