FDEInterviews logoFDE/Interviews

SQL & Data Engineering

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

SQL & Data Engineering Interview Questions

Window functions, gaps-and-islands, Spark internals, lakehouse design, idempotent pipelines and CDC: the Databricks/Snowflake/Palantir data track.

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

You have 10 free answers unlocked here.Sign in free for 10 more · 23 are premium.
01–18Foundationsthe vocabulary every loop assumes you already have0/18 done
19–34Core loopsthe questions every loop actually asks0/16 done
35–43Field scenariosthe messy, half-specified problems from real deployments0/9 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.

Foundational
SQL Window FunctionsWindow functions compute a value across a set of rows related to the current row without collapsing them, so you can rank, compare to a neighbor, or run a cumulative total while keeping every row. They are how analysts answer 'compared to what?' questions in pure SQL, and most interviewers use them to tell people who know SQL from people who know GROUP BY.
Core
Sign in
Idempotent Data PipelinesPipelines retry, get re-run, and get backfilled, and every one of those re-runs must produce the same result as running once. Idempotency is the property that makes that true: write by key with upsert or partition overwrite, never blind append, so a retry cannot double-count. It is the single property that makes a pipeline safe to operate, because the alternative is a 2 a.m. page where you cannot tell if it is safe to run the job again.
Core
Sign in
Data Quality and ValidationA deployment lives or dies on the customer's data, and that data is worse than their sample suggested. The job is to build automated quality gates (schema, null, range, uniqueness, freshness) at the boundary, quarantine bad records instead of failing the whole batch, and alert on the rate so a Tuesday-shaped degradation surfaces before a dashboard goes wrong. This is the difference between a pipeline that fails loudly and one that lies quietly.
Core
Sign in
Deduplication and LSHExact duplicates fall out of hashing the normalized content, but near-duplicates (the same record with a typo, a reordered address, boilerplate that repeats across documents) need similarity, not equality. MinHash estimates Jaccard similarity cheaply, and Locality-Sensitive Hashing buckets similar signatures so you only compare likely pairs instead of all O(n^2). This is a constant reflex when merging messy enterprise data and when curating training corpora.
Advanced
🔒 Premium
Gaps and IslandsGaps and islands is the SQL pattern for collapsing a sequence of rows into the contiguous runs (islands) and the breaks between them (gaps). The trick is a difference of two row numbers that stays constant inside a run, giving every row in the same island an identical group key you can then aggregate. It powers sessionization, login streaks, and contiguous date-range queries, and interviewers love it because the naive self-join answer is both slow and wrong on ties.
Advanced
🔒 Premium
Change Data Capture (CDC)Change Data Capture streams row-level inserts, updates, and deletes out of a source database so downstream systems stay in near-real-time sync without full reloads. The strong form reads the database transaction log rather than polling tables, which captures deletes, preserves commit order, and adds almost no load to the source. The hard parts are ordering, tombstones for deletes, and applying the stream idempotently so a replay does not corrupt the target.
Unlock all 43 answers · ₹2,000 / $25