AppliedAIPrep logoAppliedAI/Prep

SQL & Data Engineering

58 questions
0 of 58 done · 10 unlocked for you
DONEUNLOCKEDLOCKED

Window functions, gaps-and-islands, Spark internals, lakehouse design, idempotent pipelines and CDC: the data plumbing under every production AI system.

Grounded in real Applied AI Engineer interview loops and written to a senior-engineer editorial bar.

You have 10 free answers unlocked here.Sign in free for 10 more · 38 are premium.
01–24Foundationsthe vocabulary every loop assumes you already have0/24 done
25–45Core loopsthe questions every loop actually asks0/21 done
46–58Field scenariosthe messy, half-specified problems from real deployments0/13 done

The concepts behind SQL & Data Engineering

The vocabulary and mental models these questions assume, from our curriculum. Start with the foundations free; the deeper, interview-defining ideas are part of premium.

Core
Sign in
Transactions, ACID, and Isolation LevelsA transaction groups several reads and writes so they either all commit or all roll back, with the ACID guarantees of atomicity, consistency, isolation, and durability. Isolation level is the dial that trades concurrency anomalies (dirty reads, non-repeatable reads, phantoms) against throughput, and most databases default to a weaker level than engineers assume. Applied AI and data interviews probe it because pipelines that ignore isolation produce silent, intermittent corruption that no unit test catches.
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.
Core
Sign 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.
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.
Core
Sign 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.
Core
Sign in
Change Data CaptureChange Data Capture (CDC) streams the inserts, updates, and deletes from a source database so downstream systems stay in sync without expensive full reloads. It powers incremental pipelines, real-time analytics, and keeping a search index or feature store fresh. The key concerns are handling updates and deletes (not just inserts), ordering, and idempotent application of the change stream. Applied-AI interviews probe it because keeping a RAG index, feature store, or warehouse current is a constant need, and full reloads do not scale.
Core
Sign in
Deduplication (Exact and Fuzzy)Duplicates creep into data from retries, joins, and multiple sources, and they corrupt counts, training sets, and aggregates. Exact dedup is a window-function job: ROW_NUMBER over a key, keep rank 1. Fuzzy/near-duplicate dedup (same content, slightly different) needs similarity, embeddings or MinHash/LSH to find near-matches at scale without comparing all pairs. Applied-AI interviews probe it because deduping training data and pipeline outputs is constant, and naive all-pairs comparison does not scale.
Foundational
SQL JoinsJoins combine rows across tables on a matching condition, and the join type (inner, left, right, full, semi, anti) controls which non-matching rows survive. Applied AI interviews probe joins because they are the single most error-prone SQL construct: the wrong type silently drops or duplicates rows, and a non-unique join key fans out your row count without raising an error.
Unlock all 58 answers · ₹2,000 / $25