AppliedAIPrep logoAppliedAI/Prep

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
🗄️ Data & SQL Engineering
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.
Foundational
🗄️ Data & SQL Engineering
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.
Foundational
🗄️ Data & SQL Engineering
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.
Foundational
💻 Coding & Engineering Craft
Parsing Messy, Real-World DataReal data is messy: inconsistent formats, missing fields, encoding issues, malformed records, and surprises you did not anticipate. Defensive parsing means handling the unhappy path deliberately, validating input, deciding per-record whether to skip, default, or fail, and never letting one bad record crash the batch. Applied-AI interviews probe it (often as a coding screen) because ingesting documents and data for AI systems is half the job, and brittle parsers that assume clean input fail immediately in production.
Core
🗄️ Data & SQL EngineeringSign in
Idempotent Data PipelinesData pipelines fail and get rerun, so a pipeline must be idempotent: rerunning it produces the same result, not duplicated or corrupted data. You achieve it with insert-overwrite by partition, MERGE/upsert keyed on a business id, and deterministic transforms, rather than blind appends that double-count on retry. Applied-AI interviews probe it because flaky pipelines are the norm, and a non-idempotent pipeline turns a routine retry into duplicated revenue numbers or a corrupted table.
Core
🗄️ Data & SQL EngineeringSign in
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.