data engineering
Applied AI interview questions tagged data engineering, across every topic.
22 questions · 9 unlocked for you
Concepts behind "data engineering"
The curriculum that explains the ideas these questions test.
Foundational
Window FunctionsWindow functions compute across a set of rows related to the current row, without collapsing them like GROUP BY does, so you can rank within groups, compute running totals and moving averages, and compare a row to its neighbors (LAG/LEAD), all in one pass. They are the backbone of analytics SQL: top-N-per-group, sessionization, cohort analysis, and period-over-period. Applied-AI interviews probe them because they are the single most-tested SQL skill and the cleanest way to express analytical queries.🗄️ Data & SQL Engineering
Foundational
Data Quality and ContractsModels and analytics are only as good as their data, and a silent upstream data change (a renamed column, a units switch, a spike in nulls) corrupts everything downstream with no error. Data quality means automated checks (schema, ranges, nulls, freshness, volume, uniqueness) plus data contracts between producers and consumers enforced in CI. Applied-AI interviews probe it because 'garbage in, garbage out' is the most common, hardest-to-diagnose cause of model and dashboard failures.🗄️ Data & SQL Engineering
Foundational
CTEs and SubqueriesA CTE (the WITH clause) names an intermediate result so a query reads as a top-to-bottom pipeline instead of nested subqueries. The skill is knowing when a subquery should be correlated versus uncorrelated, when a recursive CTE is the right tool for hierarchies and graphs, and when a CTE acts as an optimization fence that blocks the planner. Applied-AI interviews probe it because refactoring a tangled nested query into a readable, correct pipeline is a daily data-engineering task.🗄️ Data & SQL Engineering
Foundational
Parsing Messy Real-World Data: Defensive Parsing PatternsHow to read malformed input: validate, decide per record whether to skip, default, or fail, and keep one bad row from killing the whole batch.💻 Coding & Engineering Craft
Core
Idempotent Data Pipelines: Reruns Without Duplicate RowsHow to make a pipeline safe to rerun: insert-overwrite by partition, MERGE keyed on a business id, and deterministic transforms instead of blind appends.🗄️ Data & SQL EngineeringSign in
Core
Gaps and Islands (Sessionization)Gaps-and-islands is the pattern for grouping consecutive rows into runs (islands) separated by breaks (gaps), the engine behind sessionization, streak detection, and consolidating contiguous ranges. The trick is to assign a group id that stays constant within a run, classically with window functions: ROW_NUMBER differences or LAG-based break flags with a running sum. Applied-AI interviews probe it because sessionizing events (user sessions, activity streaks, contiguous time ranges) is a constant data task and a sharp test of window-function fluency.🗄️ Data & SQL EngineeringSign in
