Big data interview questions and answers for data engineers
Big data interview questions test the ideas underneath the tools: why data is split across machines, how partitioning and file formats decide speed and cost, what changes when data arrives as a stream, and which guarantees a pipeline really gives. Expect fundamentals on the Vs, distributed storage and columnar formats, intermediate questions on partitioning, skew, windows and table formats, and senior scenarios on small files, late data, backfills and deleting a customer's records from a data lake.
By Evin JohnPublished 8 min read
What "big data" interviews actually test
The phrase is used for data engineer, analytics engineer, data platform and some backend interviews, and also for graduate roles where the panel wants to see that you can reason about data too large for one machine. Tools change; the questions about partitioning, formats and guarantees do not, which is why this page stays at the concept level. Engine-specific questions on executors, stages and joins are on Spark and Hadoop interview questions. Platform design at the architect level, with migrations and governance programs, is on big data architect interview questions.
- Concept roundShort questions on distributed storage, formats, partitioning and streaming terms.
- CodingSQL with window functions or a PySpark or pandas transformation on a sample dataset.
- Pipeline designIngest clickstream, orders or logs, and serve dashboards or features with stated freshness.
- Scenario and debuggingA slow job, a skewed key, duplicates in a table, or a bill that grew faster than the data.
Big data fundamentals questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What makes data "big"? | Framing | The usual Vs: volume, velocity, variety, often with veracity and value. The practical test is whether one machine can store or process it in the time required. |
| Scale up or scale out? | Architecture | Scaling up buys a bigger machine and stays simple until it hits a ceiling. Scaling out spreads data and work over many commodity machines, at the price of network shuffles and partial failures. |
| What is data locality? | Distributed compute | Running computation on the nodes that hold the data, so bytes are read from local disk instead of the network. Cloud object storage weakens this, which is why compute and storage are now often separated. |
| Why replicate blocks in a distributed file system? | Fault tolerance | Machines fail routinely at scale. Copies on different nodes and racks let reads and jobs continue when one fails. |
| Row-oriented or columnar format? | Storage layout | Row formats (CSV, JSON, Avro) suit writing and reading whole records. Columnar formats (Parquet, ORC) suit analytics: queries read only the columns they need and compress far better. |
| Why does Avro show up in streaming and Parquet in analytics? | Format choice | Avro is compact, row-based and has strong schema evolution rules, so it fits messages and landing data. Parquet is columnar with statistics per row group, so it fits large scans and filters. |
| What is a splittable file? | Parallel reads | One that many tasks can read in parts. A single large gzip text file is not splittable, so one task reads it all; block-compressed columnar files are. |
| Schema on read versus schema on write? | Modeling | A warehouse enforces structure on load. A lake stores raw files and applies structure when queried, which is flexible but moves errors downstream. |
| What are the main NoSQL data models? | Breadth | Key-value, document, wide-column and graph stores, chosen by access pattern rather than by data size alone. |
| What does the CAP theorem say, and how is it misused? | Distributed systems | During a network partition a system must choose between consistency and availability. It says nothing about normal operation; PACELC adds the latency versus consistency trade-off when there is no partition. |
Partitioning, skew and file layout questions
- What is partitioning, at two levels? Storage partitioning splits a table into folders or files by a column such as date, so queries skip what they do not need. Compute partitioning splits work across tasks, usually by hashing a key during a shuffle.
- How do you choose a partition column for a table? One that queries filter on and that has moderate cardinality. Partitioning by date fits most event data; partitioning by user ID creates millions of tiny folders.
- What is data skew, and how do you spot it? A few keys hold most of the rows, so a few tasks run much longer than the rest. Task duration and input size per task show it; a stage stuck at its last few tasks is the classic sign.
- How do you fix skew? Salt the hot key and aggregate in two steps, broadcast the small side of a join, filter or pre-aggregate the hot key separately, or let an adaptive engine split large partitions.
- Why are small files a problem? Each file costs metadata, an open call and task scheduling, so millions of small files make listing and planning slower than reading. Compact them on a schedule and size writes sensibly.
- What is predicate pushdown? Filters are applied at the storage reader using file and row group statistics, so blocks that cannot match are never read. Sorting or clustering data by filter columns makes the statistics far more useful.
- Bucketing versus partitioning? Partitioning creates folders by value; bucketing hashes a key into a fixed number of files so joins and aggregations on that key can avoid a shuffle.
from collections import Counter
from zlib import crc32
# 30 clicks from one very active user, one click each from nine others.
events = ["user-1"] * 30 + [f"user-{i}" for i in range(2, 11)]
REDUCERS = 3
def partition(key, n=REDUCERS):
return crc32(key.encode()) % n # stable hash, like a shuffle partitioner
def load(keys):
per_reducer = Counter(partition(k) for k in keys)
return [per_reducer[r] for r in range(REDUCERS)]
print("records per reducer:", load(events))
# Salting: split the hot key into sub-keys, aggregate them, then combine.
salted = [f"{k}_{i % REDUCERS}" if k == "user-1" else k for i, k in enumerate(events)]
print("after salting: ", load(salted))
partial = Counter(salted) # first aggregation, spread out
final = Counter()
for key, n in partial.items():
final[key.split("_")[0]] += n # second, small aggregation
print("user-1 total:", final["user-1"])
# Output:
# records per reducer: [7, 2, 30]
# after salting: [17, 12, 10]
# user-1 total: 30The busiest reducer drops from 30 records to 17. Point out the cost too: salting adds a second aggregation, and it only works for operations that can be combined in steps, such as sums and counts. A distinct count needs a different approach.
Streaming and delivery guarantee questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Batch, micro-batch or true streaming? | Processing models | Batch processes bounded data on a schedule. Micro-batch processes small batches continuously. Record-at-a-time streaming gives the lowest latency. Pick by the freshness the business needs, not by fashion. |
| Event time versus processing time? | Time semantics | Event time is when it happened; processing time is when the system saw it. Aggregates by processing time shift whenever the pipeline is delayed. |
| What is a watermark? | Late data | The system's estimate that events older than a given time have arrived, so a window can close. Data later than the watermark is dropped or routed elsewhere, by your choice. |
| Tumbling, sliding and session windows? | Windowing | Tumbling windows are fixed and do not overlap, sliding windows overlap, and session windows close after a gap of inactivity. |
| At-most-once, at-least-once, exactly-once? | Guarantees | At-most-once can lose data, at-least-once can duplicate it, and exactly-once in practice means effectively once: replayable sources, checkpoints, and idempotent or transactional sinks. |
| How does a log-based broker help pipelines? | Messaging | A durable, ordered log per partition lets consumers replay from an offset and lets many consumers read the same data independently. Kafka details are on Apache Kafka interview questions. |
| What is backpressure? | Flow control | What a system does when consumers are slower than producers: buffer, slow the source, or shed load. Unbounded buffering ends in memory failures. |
Architecture questions: lakes, warehouses and table formats
- Data lake, data warehouse or lakehouse? A lake stores raw files cheaply in many formats. A warehouse stores modeled, governed tables for fast SQL. A lakehouse adds table formats and governance on top of lake storage so one copy serves both.
- What do open table formats (Delta Lake, Apache Iceberg, Apache Hudi) add to Parquet files? A metadata layer with atomic commits, snapshots and time travel, schema evolution, and row-level updates and deletes on object storage.
- ETL or ELT? ETL transforms before loading, which suited expensive warehouses. ELT loads raw data first and transforms inside a scalable engine, which keeps raw history for reprocessing.
- What is change data capture? Reading a database's change log to stream inserts, updates and deletes downstream instead of copying full tables, which keeps load on the source low and freshness high.
- Lambda versus Kappa architecture? Lambda runs a batch layer and a speed layer and merges them, at the cost of two code paths. Kappa uses one streaming path and replays the log to reprocess.
- How do you make a pipeline rerunnable? Write by partition with overwrite or MERGE, make each run depend only on its inputs and parameters, and avoid appends that duplicate rows when a run is retried.
- How do you test data, not just code? Schema checks, null and uniqueness checks on keys, row-count and freshness checks against expectations, and alerts that block publishing bad partitions downstream.
Senior and scenario questions
| Scenario | Likely cause | What a strong answer covers |
|---|---|---|
| A daily aggregate job doubled in runtime while the data grew a few percent. | Skew, small files or a plan change | Compare stage metrics with an earlier run, look for one slow task, check input file counts, and check whether a join stopped using a broadcast after a table grew. |
| Dashboard numbers change for days after the date has passed. | Late data | Events arrive late from mobile clients or partners. Recompute recent partitions on a rolling window, publish when data is considered final, and show the freshness on the dashboard. |
| A table has duplicate orders after a retry. | Non-idempotent writes | Find the run that appended twice, dedupe by a business key keeping the latest version, and switch the load to MERGE or partition overwrite. |
| Legal asks you to delete one customer's records across the lake. | Privacy deletes | Find every dataset with that customer's identifier using a catalog, run row-level deletes with a table format, compact and expire old snapshots so the data is physically gone, and record what was done. |
| You need to backfill two years of data with new logic. | Backfills | Run by partition in parallel batches with resource limits, write to a new table or version, compare counts and sums against the old output, then swap atomically. |
| Storage and compute costs grow faster than usage. | Cost | Lifecycle and retention rules for raw data, columnar formats with compression, partition pruning, killing duplicate copies of the same dataset, and showing cost per pipeline to its owners. |
Fictional example
- Interviewer
- A shopping app emits around a few thousand events a second. Product managers want hourly metrics by page and country, and analysts want raw events for ad hoc questions.
- Candidate
- I would put events on a partitioned log first, keyed by session so related events stay ordered. A streaming job writes them every few minutes into a bronze table in a columnar format partitioned by event date, keeping the raw payload for analysts. A second job builds hourly aggregates by event time with a watermark, so late mobile events still land in the right hour, and recomputes the last day nightly to catch stragglers. For guarantees, the stream checkpoints offsets and the sink uses MERGE on event ID, so a restart does not double count. I would add freshness and volume checks per hour and compact files daily. If a single country or page is hot, I would expect skew in the aggregation and salt that key.
Big data practice plan
- Days 1 and 2: explain, out loud and briefly, the difference between storage and compute partitioning, row and columnar formats, and why small files hurt.
- Day 3: write a skewed aggregation like the sketch above in SQL or PySpark and fix it two ways.
- Day 4: draw a streaming pipeline with event time, watermarks and an idempotent sink, then explain what happens on restart.
- Day 5: compare lake, warehouse and lakehouse for one company you know, and say which you would choose and why.
- Days 6 and 7: rehearse the scenarios, especially late data, duplicates and privacy deletes, two minutes each.
Next steps by platform: Azure Databricks interview questions applies these ideas to Delta Lake and Unity Catalog, and data engineer interview questions covers the full role loop.
Design answers in this area run long, and it is easy to forget guarantees or cost until the interviewer asks. Natively, an AI interview assistant for Mac and Windows, transcribes a mock data round on your computer, so you can read back whether you named the delivery semantics without being prompted. In practice it can read a query plan, a stage table or a coding problem from a screenshot and help work through it, and with Pro or the free trial it can use the résumé and job description you add. The session's transcript and notes are kept for you.
Questions people ask
What big data questions are asked in interviews?
Scale up versus scale out, row versus columnar formats, partitioning and skew, small files, batch versus streaming, event time and watermarks, delivery guarantees, data lake versus warehouse versus lakehouse, and pipeline scenarios.
How do I explain data skew in an interview?
Say that a few keys hold most rows, so a few tasks run far longer. Show how you spot it in task metrics and fix it by salting, broadcasting the small side of a join or handling the hot key separately.
Are big data interviews the same as Spark interviews?
They overlap. Big data questions cover concepts that apply to any engine, such as formats, partitioning and guarantees, while Spark questions go into executors, stages, joins and memory.
What is the difference between a data lake and a lakehouse?
A data lake stores raw files cheaply. A lakehouse adds an open table format and governance on the same storage, giving transactions, schema control and updates so one copy serves analytics and engineering.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
