Data Engineer · interview questions

Data Engineer interview questions: comparison

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

Data Engineering Core 6

  1. Most asked What is the difference between ETL and ELT, and when would you choose each?
  2. Most asked Batch or streaming: how do you decide?
  3. Most asked Why use an orchestrator like Airflow or Dagster instead of cron?
  4. Most asked Which data quality checks would you put on a critical pipeline?
  5. What is the difference between append, overwrite and merge (upsert) load strategies?
  6. What is the difference between a view, a table and a materialised view in a warehouse?

SQL & Databases Core 5

  1. SQL interview: explain UNION vs UNION ALL.
  2. SQL interview: explain EXISTS vs IN.
  3. Data modeling: surrogate vs natural keys?
  4. Data modeling: OLTP vs OLAP?
  5. Indexing/performance: sequential vs index scan?

PostgreSQL Core 7

  1. Most asked Which schema changes take heavy locks in PostgreSQL, and how do you avoid outages during migrations?
  2. Most asked Why do PostgreSQL deployments need connection pooling, and how do PgBouncer's modes differ?
  3. Most asked How does declarative partitioning work in PostgreSQL, and when should you use it?
  4. Most asked Which PostgreSQL extensions do you find most useful?
  5. How do you generate UUID keys in PostgreSQL, and which version should you use?
  6. When would you use array columns in PostgreSQL?
  7. serial or identity columns? And how do sequences behave?

Database Concurrency & Scaling Core 6

  1. Most asked What's the difference between Read Committed and Repeatable Read in practice?
  2. When would you choose optimistic locking over SELECT … FOR UPDATE?
  3. What is the difference between partitioning and sharding?
  4. When should you NOT use SKIP LOCKED?
  5. What's the difference between a deadlock and a lock wait timeout?
  6. How does Postgres SERIALIZABLE differ from MySQL SERIALIZABLE?

Messaging & Queues Core 7

  1. Most asked Compare Kafka and RabbitMQ (and managed queues like SQS).
  2. What is the difference between a work queue and publish/subscribe?
  3. Choreography vs orchestration for multi-service workflows?
  4. How do you schedule delayed or future work with queues?
  5. When is Redis (lists or streams) good enough as a queue?
  6. When would you use a workflow engine like Temporal instead of plain queues?
  7. When should a request be handled synchronously versus asynchronously?

Python Developer Recommended 37

  1. Most asked Explain mutable vs immutable in Python.
  2. Most asked Explain is vs == in Python.
  3. Most asked Explain threading vs multiprocessing vs asyncio in Python.
  4. Most asked Backend Python interview: explain authN vs authZ.
  5. Most asked Explain deepcopy vs copy in Python.
  6. When do you use the `asyncio` module/package?
  7. When do you use the `logging` module/package?
  8. When do you use the `unittest / pytest` module/package?
  9. When do you use the `venv` module/package?
  10. Which pytest features do you use most?
  11. When do you use the `pathlib` module/package?
  12. When do you use the `collections` module/package?
  13. When do you use the `itertools` module/package?
  14. When do you use the `functools` module/package?
  15. When do you use the `json` module/package?
  16. When do you use the `concurrent.futures` module/package?
  17. When do you use the `secrets` module/package?
  18. Python packaging: requirements.txt vs pyproject.toml?
  19. Backend Python interview: explain Django ORM vs SQLAlchemy.
  20. When do you use `TypedDict`, `Literal`, `Protocol` and `@overload`?
  21. Compare dataclasses, attrs and Pydantic models.
  22. Explain the iterator protocol and the difference between iterables and iterators.
  23. What's the difference between `__new__` and `__init__`?
  24. What's the difference between `str` and `bytes`, and how do you handle encodings?
  25. Why is `pickle` dangerous, and what should you use instead?
  26. What is the difference between WSGI and ASGI, and how does it affect how a Python web app handles concurrent requests?
  27. When do you use the `argparse` module/package?
  28. When do you use the `dataclasses.asdict` module/package?
  29. When do you use the `enum` module/package?
  30. When do you use the `hashlib` module/package?
  31. Python packaging: wheels vs sdist?
  32. Why can floating-point math surprise you, and when should you use `Decimal` or `Fraction`?
  33. Which `contextlib` utilities are worth knowing?
  34. Compare f-strings, `str.format` and `%` formatting.
  35. Which built-ins make Python loops cleaner?
  36. How do Django, Flask and FastAPI compare for a new backend project?
  37. What is the difference between a list and a tuple in Python?

MySQL Recommended 12

  1. Most asked Why is InnoDB the default storage engine, and how does it differ from MyISAM?
  2. Most asked What is the difference between utf8 and utf8mb4 in MySQL, and why does it matter?
  3. Most asked AUTO_INCREMENT or UUID primary keys in MySQL?
  4. Most asked MySQL or PostgreSQL: how would you choose for a new project?
  5. Optimistic or pessimistic locking: when do you use each in MySQL applications?
  6. DATETIME or TIMESTAMP: which should you use?
  7. When does table partitioning help in MySQL, and when does it not?
  8. Should you use foreign keys in MySQL?
  9. What are the binary log formats (ROW, STATEMENT, MIXED), and which should you use?
  10. Subquery or JOIN: which is faster in MySQL?
  11. What is the difference between DELETE, TRUNCATE and DROP?
  12. Surrogate or natural primary keys?

pandas Recommended 2

  1. What is the difference between loc and iloc in pandas, and what is the SettingWithCopyWarning?
  2. When would you use merge, join or concat in pandas?

Databases & Transactions Recommended 5

  1. Compare optimistic and pessimistic locking.
  2. Should primary keys be auto-increment integers or UUIDs?
  3. When do you need a dedicated search engine instead of SQL LIKE queries?
  4. When is storing JSON in a relational database appropriate?
  5. How do you perform large data updates or backfills safely?

Was this page helpful?

Report a mistake