Data Engineering Interview Questions and Answers
ETL/ELT, warehouses, lakes, orchestration and data quality.
Whether you are preparing for entry-level Data Engineering interview questions for freshers or senior software engineer interview questions addressing concurrency, scalability, and system architecture, this track provides peer-reviewed model answers with syntax walkthroughs, edge cases, and practical interview tips.
1 How do you handle late-arriving data in a pipeline? Hard
Late data breaks the assumption that all events for a time window have arrived. Common strategies:
- Watermarks: define how long to wait for late events before closing a window. A ten-minute watermark holds windows open ten minutes past the latest event time. Events after that are dropped or routed separately.
- Allowed lateness: keep window state longer and update results when late events arrive, emitting revised aggregates downstream.
- Reprocessing: store raw immutable events in the lake, then rerun the affected partition to correct results. Idempotent writes and partitioning by event date make this safe.
- Reconciliation: combine a streaming near-real-time view with a batch correction that overwrites the same partitions.
The right choice balances latency, cost and correctness. Billing pipelines usually favor a batch correction layer, while dashboards may accept approximate streaming results.
2 How would you design a change data capture pipeline? Hard
CDC captures row-level changes from a source database and streams them downstream with low latency. A typical design:
- Capture: read the database transaction log with a tool like Debezium on the MySQL binlog or Postgres logical replication, rather than polling, so you get every insert, update and delete without load on the source.
- Transport: publish change events to Kafka, keyed by primary key to preserve per-entity ordering.
- Process: consume events, land them in a bronze table, then merge into silver entities. Handle deletes, schema evolution and ordering.
- Serve: expose current state and history for analytics.
{"op":"u","before":{"id":42,"city":"Paris"},"after":{"id":42,"city":"Lyon"}}
Considerations: initial snapshot plus streaming handoff, idempotent merges, tombstones for deletes, and monitoring replication lag.
Frequently Asked Questions About Data Engineering Interviews
What do hiring managers evaluate in Data Engineering technical rounds?
Technical interviewers look for foundational fluency, idiomatic syntax, clarity when communicating complex logic, and awareness of performance trade-offs (e.g. memory footprint, render performance, and network latency) in production environments.
What are the best interview tips for practicing Data Engineering questions?
Use active recall: summarize each answer in your own words before revealing the model solution. Focus on explaining why a certain approach is chosen rather than just memorizing code syntax.