Interview Q&A · questions with model answers
Data Engineering Interview Questions
Part of the study plan for: Data Engineer · Machine Learning Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Write SQL to keep only the latest version of each record in a table of change rows.
Rank rows per key by their change timestamp (or log position) descending and keep rank 1, excluding keys whose latest change is a delete.
-
Write SQL that calculates a 7-day rolling average of daily revenue, including days with no orders.
Generate a continuous date series, left join daily revenue onto it so missing days count as zero, then use a window function over the previous six rows plus the current one. Without the date series,…