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
- Most asked What is the difference between ETL and ELT, and when would you choose each?
- Most asked Batch or streaming: how do you decide?
- Most asked Why use an orchestrator like Airflow or Dagster instead of cron?
- Most asked Which data quality checks would you put on a critical pipeline?
- What is the difference between append, overwrite and merge (upsert) load strategies?
- What is the difference between a view, a table and a materialised view in a warehouse?
SQL & Databases Core 5
PostgreSQL Core 7
- Most asked Which schema changes take heavy locks in PostgreSQL, and how do you avoid outages during migrations?
- Most asked Why do PostgreSQL deployments need connection pooling, and how do PgBouncer's modes differ?
- Most asked How does declarative partitioning work in PostgreSQL, and when should you use it?
- Most asked Which PostgreSQL extensions do you find most useful?
- How do you generate UUID keys in PostgreSQL, and which version should you use?
- When would you use array columns in PostgreSQL?
- serial or identity columns? And how do sequences behave?
Database Concurrency & Scaling Core 6
- Most asked What's the difference between Read Committed and Repeatable Read in practice?
- When would you choose optimistic locking over SELECT … FOR UPDATE?
- What is the difference between partitioning and sharding?
- When should you NOT use SKIP LOCKED?
- What's the difference between a deadlock and a lock wait timeout?
- How does Postgres SERIALIZABLE differ from MySQL SERIALIZABLE?
Messaging & Queues Core 7
- Most asked Compare Kafka and RabbitMQ (and managed queues like SQS).
- What is the difference between a work queue and publish/subscribe?
- Choreography vs orchestration for multi-service workflows?
- How do you schedule delayed or future work with queues?
- When is Redis (lists or streams) good enough as a queue?
- When would you use a workflow engine like Temporal instead of plain queues?
- When should a request be handled synchronously versus asynchronously?
Python Developer Recommended 37
- Most asked Explain mutable vs immutable in Python.
- Most asked Explain is vs == in Python.
- Most asked Explain threading vs multiprocessing vs asyncio in Python.
- Most asked Backend Python interview: explain authN vs authZ.
- Most asked Explain deepcopy vs copy in Python.
- When do you use the `asyncio` module/package?
- When do you use the `logging` module/package?
- When do you use the `unittest / pytest` module/package?
- When do you use the `venv` module/package?
- Which pytest features do you use most?
- When do you use the `pathlib` module/package?
- When do you use the `collections` module/package?
- When do you use the `itertools` module/package?
- When do you use the `functools` module/package?
- When do you use the `json` module/package?
- When do you use the `concurrent.futures` module/package?
- When do you use the `secrets` module/package?
- Python packaging: requirements.txt vs pyproject.toml?
- Backend Python interview: explain Django ORM vs SQLAlchemy.
- When do you use `TypedDict`, `Literal`, `Protocol` and `@overload`?
- Compare dataclasses, attrs and Pydantic models.
- Explain the iterator protocol and the difference between iterables and iterators.
- What's the difference between `__new__` and `__init__`?
- What's the difference between `str` and `bytes`, and how do you handle encodings?
- Why is `pickle` dangerous, and what should you use instead?
- What is the difference between WSGI and ASGI, and how does it affect how a Python web app handles concurrent requests?
- When do you use the `argparse` module/package?
- When do you use the `dataclasses.asdict` module/package?
- When do you use the `enum` module/package?
- When do you use the `hashlib` module/package?
- Python packaging: wheels vs sdist?
- Why can floating-point math surprise you, and when should you use `Decimal` or `Fraction`?
- Which `contextlib` utilities are worth knowing?
- Compare f-strings, `str.format` and `%` formatting.
- Which built-ins make Python loops cleaner?
- How do Django, Flask and FastAPI compare for a new backend project?
- What is the difference between a list and a tuple in Python?
MySQL Recommended 12
- Most asked Why is InnoDB the default storage engine, and how does it differ from MyISAM?
- Most asked What is the difference between utf8 and utf8mb4 in MySQL, and why does it matter?
- Most asked AUTO_INCREMENT or UUID primary keys in MySQL?
- Most asked MySQL or PostgreSQL: how would you choose for a new project?
- Optimistic or pessimistic locking: when do you use each in MySQL applications?
- DATETIME or TIMESTAMP: which should you use?
- When does table partitioning help in MySQL, and when does it not?
- Should you use foreign keys in MySQL?
- What are the binary log formats (ROW, STATEMENT, MIXED), and which should you use?
- Subquery or JOIN: which is faster in MySQL?
- What is the difference between DELETE, TRUNCATE and DROP?
- Surrogate or natural primary keys?