Skip to main content

Must-know Data engineering interview questions

7 reported frequent at Snowflake and Databricks. “Reported” because the company tags have no public source. Every quick answer is free.

Questions on this page
7
Must know
0
picked by the editor
Reported frequent
7
company tags, reported
Companies
2
with a frequent tag

Reported frequent· 7

Tagged as frequent at a company. Reported: the tags have no public source.

  1. Design a distributed job/task scheduler (in the spirit of a Spark job scheduler) that runs many tasks across a cluster reliably.A coordinator turns jobs into task DAGs and sends ready tasks to heartbeating workers, placing them near their data. It persists state for recovery and uses leader election for high availability. Reschedule tasks from dead workers, keep tasks idempotent, and handle stragglers with speculative execution and retries.Advanced₹499 (Pro plan required)Reported frequent at Databricks
  2. Multiply a large sparse matrix by a vector, and by another sparse matrix, efficiently. Write the code and give the complexity.Store only non-zero entries (CSR or dict-of-rows). Sparse matrix times vector loops over non-zeros: O(nnz) time. Sparse times sparse: for each non-zero A[i][k], scan row k of B and accumulate into a hash map, which costs O(sum over non-zeros of the matching row sizes).Intermediate₹99 (Interview Prep or Pro plan required)Reported frequent at Databricks
  3. Design a data lakehouse metadata/transaction layer (like Delta Lake) that gives ACID transactions over files in cloud object storage.Keep immutable Parquet data files plus an ordered, append-only transaction log of add/remove-file commits. The live table is the log replayed, giving snapshot isolation. Atomic log appends give optimistic concurrency, checkpoints speed up reads, and old versions enable time travel. This is essentially Delta Lake.Expert₹499 (Pro plan required)Reported frequent at Databricks
  4. Design a cloud data warehouse that separates storage from compute and scales query concurrency elastically (the core Snowflake architecture).Use three decoupled layers: immutable columnar micro-partitions in object storage, independent elastic MPP virtual warehouses for compute, and a strongly consistent metadata layer for planning and pruning. Separating storage from compute lets each scale alone and avoids noisy neighbors; caches hide storage latency.Advanced₹499 (Pro plan required)Reported frequent at Snowflake
  5. Design a metadata service that tracks micro-partitions for a columnar storage engine, supporting sharding, concurrent updates, and an in-memory pruning index.Store per-micro-partition min/max statistics in a strongly consistent metadata store sharded by table ID, and cache them in memory as a zone map for pruning. Immutable partitions and versioned commits give snapshot isolation and time travel. Clustering keys keep min/max ranges tight so pruning works.Expert₹499 (Pro plan required)Reported frequent at Snowflake
  6. Design a distributed query engine that executes a SQL query (e.g., a large join and aggregation) across a cluster of nodes.Build a cost-based plan using statistics and partition pruning, then split it into stages across MPP workers connected by a shuffle. Hash joins shuffle both sides by key, or broadcast a small table. Aggregate in two phases, partial then final. Minimize shuffle, salt skewed keys, and spill to disk when needed.Advanced₹499 (Pro plan required)Reported frequent at Snowflake
  7. Design a scalable data ingestion pipeline that continuously loads high-volume event data into the warehouse with low latency and exactly-once semantics.Buffer events in a durable partitioned log such as Kafka, micro-batch them into staged files, and have a loader commit them as immutable micro-partitions with atomic metadata updates. Record loaded file names or offsets transactionally with each commit so retries skip duplicates, giving exactly-once loading.Advanced₹499 (Pro plan required)Reported frequent at Snowflake

Reported frequent at

Must-know questions for other tools