Data Engineer · interview questions

Data Engineer interview questions: how it works

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

Data Engineering Core 9

  1. Most asked Explain slowly changing dimensions, especially Type 1 and Type 2.
  2. Most asked How do you handle late-arriving data in a daily batch pipeline?
  3. Most asked Data warehouse, data lake or lakehouse: what is the difference?
  4. Most asked How do you handle personal data (PII) in a data warehouse?
  5. How do partitioning and clustering improve warehouse performance and cost?
  6. How does a dbt incremental model work, and what are its pitfalls?
  7. How do you handle schema changes from source systems?
  8. How do you test a data pipeline before deploying changes?
  9. How do Kafka and stream processors fit into data pipelines?

SQL & Databases Core 35

  1. Most asked SQL interview: explain INNER JOIN.
  2. Most asked SQL interview: explain LEFT JOIN.
  3. Most asked SQL interview: explain GROUP BY.
  4. Most asked SQL interview: explain HAVING.
  5. Most asked SQL interview: explain window functions.
  6. Most asked SQL interview: explain ACID.
  7. Most asked SQL interview: explain isolation levels.
  8. Most asked Data modeling: normalization 1NF/2NF/3NF?
  9. Most asked Indexing/performance: B-tree index?
  10. Most asked Indexing/performance: EXPLAIN / EXPLAIN ANALYZE?
  11. SQL interview: explain SELECT filtering.
  12. SQL interview: explain NULL semantics.
  13. SQL interview: explain transactions.
  14. Data modeling: primary key?
  15. Data modeling: foreign key?
  16. Data modeling: many-to-many?
  17. Indexing/performance: composite index?
  18. Indexing/performance: index write overhead?
  19. SQL interview: explain RIGHT / FULL JOIN.
  20. SQL interview: explain ORDER BY / LIMIT.
  21. SQL interview: explain subqueries.
  22. SQL interview: explain CTEs (WITH).
  23. SQL interview: explain CASE expressions.
  24. SQL interview: explain dirty/nonrepeatable/phantom reads.
  25. Data modeling: denormalization?
  26. Data modeling: constraints?
  27. Indexing/performance: covering index?
  28. Indexing/performance: cardinality?
  29. Indexing/performance: vacuum / analyze (Postgres)?
  30. SQL interview: explain CROSS JOIN.
  31. SQL interview: explain DISTINCT.
  32. Data modeling: star schema?
  33. Data modeling: 1:1 relationships?
  34. Indexing/performance: hash index?
  35. Indexing/performance: partial index?

PostgreSQL Core 17

  1. Most asked How does MVCC work in PostgreSQL?
  2. Most asked JSON or JSONB in PostgreSQL, and how do you index JSONB?
  3. Most asked How does CREATE INDEX CONCURRENTLY work, and what are its caveats?
  4. Most asked How does INSERT ... ON CONFLICT work in PostgreSQL?
  5. Most asked Streaming (physical) replication or logical replication: what is the difference?
  6. Most asked How do backups and point-in-time recovery work in PostgreSQL?
  7. Most asked text or varchar(n)? timestamp or timestamptz?
  8. How should an application handle serialization failures and deadlocks in PostgreSQL?
  9. Give a practical example of window functions in PostgreSQL.
  10. Sequential scan, index scan, or bitmap scan: how does the planner choose?
  11. Explain nested loop, hash and merge joins.
  12. How do planner statistics work, and what are extended statistics?
  13. Are CTEs optimisation fences in PostgreSQL?
  14. How does full-text search work in PostgreSQL?
  15. How do you scale PostgreSQL writes beyond one server?
  16. How is high availability usually achieved for self-managed PostgreSQL?
  17. How do roles, privileges and schemas work in PostgreSQL, and what is the search_path risk?

Database Concurrency & Scaling Core 10

  1. Most asked Database CPU is at 85%. How do you decide what to optimise before buying a bigger server?
  2. Most asked A user saves their profile and the next page shows the old data. Reads go to replicas. How do you fix it?
  3. Most asked An order is saved but the 'OrderPlaced' event sometimes never reaches Kafka. How do you fix it?
  4. Most asked A Spring @Transactional method threw an exception but the data was still saved. What are the likely causes?
  5. Scale a read-heavy product catalog 100× — where do you start?
  6. Explain write skew with a real example and how to prevent it.
  7. A customer has two active subscriptions created 40 ms apart. How do you make that impossible?
  8. A viral post's like counter makes requests slow. How do you handle hot rows?
  9. A scheduled job runs on every app instance and double-bills customers. How do you fix it?
  10. A dashboard aggregates years of data on every view. How would you speed it up?

Messaging & Queues Core 5

  1. Most asked Explain at-most-once, at-least-once and exactly-once delivery.
  2. Most asked How should retries and dead-letter queues work?
  3. How do Kafka partitions and consumer groups work?
  4. How does Kafka achieve exactly-once semantics?
  5. How do you handle large payloads in messages?

Python Developer Recommended 47

  1. Most asked Explain generators in Python.
  2. Most asked Explain decorators in Python.
  3. Most asked Explain context managers in Python.
  4. Most asked Explain GIL in Python.
  5. Most asked Backend Python interview: explain N+1 queries.
  6. Most asked Backend Python interview: explain SQL injection prevention.
  7. Most asked Explain LEGB scoping in Python.
  8. Most asked Explain *args and **kwargs in Python.
  9. Most asked Explain list/dict/set comprehensions in Python.
  10. Most asked Explain dataclasses in Python.
  11. Most asked Explain dunder methods in Python.
  12. Most asked Explain structural pattern matching (`match`/`case`).
  13. Most asked Walk through the request/response lifecycle in Django, and explain why middleware order matters.
  14. Most asked Explain MRO / C3 in Python.
  15. Explain __name__ == '__main__' in Python.
  16. Python packaging: virtualenv why?
  17. Backend Python interview: explain REST API design.
  18. Backend Python interview: explain migrations.
  19. How does asyncio work internally: event loop, coroutines, tasks and futures?
  20. Explain typing / type hints in Python.
  21. Explain exceptions hierarchy in Python.
  22. Python packaging: dependency pinning?
  23. Backend Python interview: explain FastAPI / Starlette.
  24. Backend Python interview: explain connection pooling.
  25. Backend Python interview: explain caching strategies.
  26. Backend Python interview: explain JWT pitfalls.
  27. Backend Python interview: explain idempotent APIs.
  28. Backend Python interview: explain background jobs.
  29. Backend Python interview: explain observability.
  30. Backend Python interview: explain 12-factor config.
  31. How do cancellation and timeouts work in asyncio?
  32. How does CPython manage memory?
  33. Explain slots in Python.
  34. Explain ABC / Protocol in Python.
  35. Explain property / descriptor in Python.
  36. Python packaging: semantic versioning?
  37. Python packaging: editable installs?
  38. Python packaging: entry points / scripts?
  39. Backend Python interview: explain rate limiting.
  40. How do you handle dates and time zones correctly in Python?
  41. How do `functools.cache`, `lru_cache` and `cached_property` work, and what are the pitfalls?
  42. How did annotation evaluation change in Python 3.14?
  43. How do sorting, `heapq` and `bisect` help with common algorithmic tasks?
  44. How do classic design patterns look in idiomatic Python?
  45. How do descriptors power properties, methods and ORMs?
  46. Python packaging: namespace packages?
  47. How does Python's garbage collection work?

MySQL Recommended 14

  1. Most asked How does a composite index work, and what is the leftmost-prefix rule?
  2. Most asked How does MySQL replication work? Explain the binary log, asynchronous and semi-synchronous replication, and GTIDs.
  3. Most asked How do you back up a MySQL database, and how does point-in-time recovery work?
  4. Most asked How do you change the schema of a large MySQL table without downtime?
  5. Most asked Explain INNER, LEFT and RIGHT joins. What is the classic LEFT JOIN mistake?
  6. How does MVCC work in InnoDB?
  7. How do prepared statements prevent SQL injection?
  8. How does MySQL handle connections, and why do applications use connection pooling?
  9. How do NULLs behave in MySQL comparisons, indexes and unique constraints?
  10. Is it worth indexing a low-cardinality column such as status or a boolean flag?
  11. A query shows 'Using filesort' and 'Using temporary'. What does that mean and how do you fix it?
  12. How do you handle a 'hot row', such as a global counter updated on every request?
  13. How do upserts work in MySQL, and why should you avoid REPLACE?
  14. CHAR, VARCHAR or TEXT: which do you use?

pandas Recommended 1

  1. Explain groupby in pandas: split-apply-combine, agg, transform and filter.

Databases & Transactions Recommended 5

  1. Most asked Explain transaction isolation levels and the anomalies they prevent.
  2. Most asked How do database indexes work and when do they help or hurt?
  3. How does database replication work, and what is replication lag?
  4. How do you scale a relational database?
  5. How does the CAP theorem apply to databases?

Behavioral & STAR Recommended 8

  1. Most asked Describe a disagreement you had with a coworker and how you resolved it.
  2. Most asked Describe a mistake that had a significant impact and how you handled it.
  3. Most asked Describe a project you owned from start to finish.
  4. Describe a situation where you had to make a decision without all the information you wanted.
  5. Describe how you decide what to work on when everything feels urgent.
  6. Describe how you handle working on something without a clear owner.
  7. Describe your approach to onboarding a new team member.
  8. Describe how you typically respond to criticism.

Was this page helpful?

Report a mistake