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
- Most asked Explain slowly changing dimensions, especially Type 1 and Type 2.
- Most asked How do you handle late-arriving data in a daily batch pipeline?
- Most asked Data warehouse, data lake or lakehouse: what is the difference?
- Most asked How do you handle personal data (PII) in a data warehouse?
- How do partitioning and clustering improve warehouse performance and cost?
- How does a dbt incremental model work, and what are its pitfalls?
- How do you handle schema changes from source systems?
- How do you test a data pipeline before deploying changes?
- How do Kafka and stream processors fit into data pipelines?
SQL & Databases Core 35
- Most asked SQL interview: explain INNER JOIN.
- Most asked SQL interview: explain LEFT JOIN.
- Most asked SQL interview: explain GROUP BY.
- Most asked SQL interview: explain HAVING.
- Most asked SQL interview: explain window functions.
- Most asked SQL interview: explain ACID.
- Most asked SQL interview: explain isolation levels.
- Most asked Data modeling: normalization 1NF/2NF/3NF?
- Most asked Indexing/performance: B-tree index?
- Most asked Indexing/performance: EXPLAIN / EXPLAIN ANALYZE?
- SQL interview: explain SELECT filtering.
- SQL interview: explain NULL semantics.
- SQL interview: explain transactions.
- Data modeling: primary key?
- Data modeling: foreign key?
- Data modeling: many-to-many?
- Indexing/performance: composite index?
- Indexing/performance: index write overhead?
- SQL interview: explain RIGHT / FULL JOIN.
- SQL interview: explain ORDER BY / LIMIT.
- SQL interview: explain subqueries.
- SQL interview: explain CTEs (WITH).
- SQL interview: explain CASE expressions.
- SQL interview: explain dirty/nonrepeatable/phantom reads.
- Data modeling: denormalization?
- Data modeling: constraints?
- Indexing/performance: covering index?
- Indexing/performance: cardinality?
- Indexing/performance: vacuum / analyze (Postgres)?
- SQL interview: explain CROSS JOIN.
- SQL interview: explain DISTINCT.
- Data modeling: star schema?
- Data modeling: 1:1 relationships?
- Indexing/performance: hash index?
- Indexing/performance: partial index?
PostgreSQL Core 17
- Most asked How does MVCC work in PostgreSQL?
- Most asked JSON or JSONB in PostgreSQL, and how do you index JSONB?
- Most asked How does CREATE INDEX CONCURRENTLY work, and what are its caveats?
- Most asked How does INSERT ... ON CONFLICT work in PostgreSQL?
- Most asked Streaming (physical) replication or logical replication: what is the difference?
- Most asked How do backups and point-in-time recovery work in PostgreSQL?
- Most asked text or varchar(n)? timestamp or timestamptz?
- How should an application handle serialization failures and deadlocks in PostgreSQL?
- Give a practical example of window functions in PostgreSQL.
- Sequential scan, index scan, or bitmap scan: how does the planner choose?
- Explain nested loop, hash and merge joins.
- How do planner statistics work, and what are extended statistics?
- Are CTEs optimisation fences in PostgreSQL?
- How does full-text search work in PostgreSQL?
- How do you scale PostgreSQL writes beyond one server?
- How is high availability usually achieved for self-managed PostgreSQL?
- How do roles, privileges and schemas work in PostgreSQL, and what is the search_path risk?
Database Concurrency & Scaling Core 10
- Most asked Database CPU is at 85%. How do you decide what to optimise before buying a bigger server?
- Most asked A user saves their profile and the next page shows the old data. Reads go to replicas. How do you fix it?
- Most asked An order is saved but the 'OrderPlaced' event sometimes never reaches Kafka. How do you fix it?
- Most asked A Spring @Transactional method threw an exception but the data was still saved. What are the likely causes?
- Scale a read-heavy product catalog 100× — where do you start?
- Explain write skew with a real example and how to prevent it.
- A customer has two active subscriptions created 40 ms apart. How do you make that impossible?
- A viral post's like counter makes requests slow. How do you handle hot rows?
- A scheduled job runs on every app instance and double-bills customers. How do you fix it?
- A dashboard aggregates years of data on every view. How would you speed it up?
Messaging & Queues Core 5
Python Developer Recommended 47
- Most asked Explain generators in Python.
- Most asked Explain decorators in Python.
- Most asked Explain context managers in Python.
- Most asked Explain GIL in Python.
- Most asked Backend Python interview: explain N+1 queries.
- Most asked Backend Python interview: explain SQL injection prevention.
- Most asked Explain LEGB scoping in Python.
- Most asked Explain *args and **kwargs in Python.
- Most asked Explain list/dict/set comprehensions in Python.
- Most asked Explain dataclasses in Python.
- Most asked Explain dunder methods in Python.
- Most asked Explain structural pattern matching (`match`/`case`).
- Most asked Walk through the request/response lifecycle in Django, and explain why middleware order matters.
- Most asked Explain MRO / C3 in Python.
- Explain __name__ == '__main__' in Python.
- Python packaging: virtualenv why?
- Backend Python interview: explain REST API design.
- Backend Python interview: explain migrations.
- How does asyncio work internally: event loop, coroutines, tasks and futures?
- Explain typing / type hints in Python.
- Explain exceptions hierarchy in Python.
- Python packaging: dependency pinning?
- Backend Python interview: explain FastAPI / Starlette.
- Backend Python interview: explain connection pooling.
- Backend Python interview: explain caching strategies.
- Backend Python interview: explain JWT pitfalls.
- Backend Python interview: explain idempotent APIs.
- Backend Python interview: explain background jobs.
- Backend Python interview: explain observability.
- Backend Python interview: explain 12-factor config.
- How do cancellation and timeouts work in asyncio?
- How does CPython manage memory?
- Explain slots in Python.
- Explain ABC / Protocol in Python.
- Explain property / descriptor in Python.
- Python packaging: semantic versioning?
- Python packaging: editable installs?
- Python packaging: entry points / scripts?
- Backend Python interview: explain rate limiting.
- How do you handle dates and time zones correctly in Python?
- How do `functools.cache`, `lru_cache` and `cached_property` work, and what are the pitfalls?
- How did annotation evaluation change in Python 3.14?
- How do sorting, `heapq` and `bisect` help with common algorithmic tasks?
- How do classic design patterns look in idiomatic Python?
- How do descriptors power properties, methods and ORMs?
- Python packaging: namespace packages?
- How does Python's garbage collection work?
MySQL Recommended 14
- Most asked How does a composite index work, and what is the leftmost-prefix rule?
- Most asked How does MySQL replication work? Explain the binary log, asynchronous and semi-synchronous replication, and GTIDs.
- Most asked How do you back up a MySQL database, and how does point-in-time recovery work?
- Most asked How do you change the schema of a large MySQL table without downtime?
- Most asked Explain INNER, LEFT and RIGHT joins. What is the classic LEFT JOIN mistake?
- How does MVCC work in InnoDB?
- How do prepared statements prevent SQL injection?
- How does MySQL handle connections, and why do applications use connection pooling?
- How do NULLs behave in MySQL comparisons, indexes and unique constraints?
- Is it worth indexing a low-cardinality column such as status or a boolean flag?
- A query shows 'Using filesort' and 'Using temporary'. What does that mean and how do you fix it?
- How do you handle a 'hot row', such as a global counter updated on every request?
- How do upserts work in MySQL, and why should you avoid REPLACE?
- CHAR, VARCHAR or TEXT: which do you use?
pandas Recommended 1
Databases & Transactions Recommended 5
Behavioral & STAR Recommended 8
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Describe a project you owned from start to finish.
- Describe a situation where you had to make a decision without all the information you wanted.
- Describe how you decide what to work on when everything feels urgent.
- Describe how you handle working on something without a clear owner.
- Describe your approach to onboarding a new team member.
- Describe how you typically respond to criticism.