Distributed Data Processing with Spark and Hadoop Questions

Distributed compute engines for large-scale data processing, with Apache Spark as the primary focus: driver/executor architecture, the RDD/DataFrame/Dataset APIs, lazy evaluation and the Catalyst/Tungsten optimizers, shuffle and partitioning, data skew detection and mitigation (salting, broadcast joins, adaptive query execution), memory tuning, and caching/persistence strategies. Covers engine-internal execution and recovery within a single job: how the DAG scheduler breaks work into stages and tasks, task retries, speculative execution, stage recomputation from RDD lineage, and Structured Streaming's own checkpointing and write-ahead logs for exactly-once semantics. Also covers the Hadoop ecosystem as historical foundation (HDFS, MapReduce, YARN, Hive) and modern lakehouse table formats (Delta Lake, Iceberg) that have largely replaced it in current interview practice. The distributed-processing depth expected of data engineers at scale: writing and tuning jobs, diagnosing OOMs and skew, and choosing the right engine, storage format, and cluster configuration for a workload. Distinct from workflow-orchestration-and-scheduling, which owns the external, Airflow-style scheduler that invokes jobs like these as steps in a larger multi-system pipeline, and from data-reliability-and-fault-tolerance, which owns designing idempotent, cross-system pipeline behavior around job failures rather than the engine's own internal recovery mechanics.

MediumTechnical
62 practiced

A production Spark job shows many straggler tasks: most tasks complete quickly but a few take 10x longer. Describe the steps you would take using the Spark UI and logs to identify whether the cause is data skew, GC, IO, network, or resource starving, and list three concrete mitigations for each possible root cause.

EasyTechnical
128 practiced

Compare Spark cluster manager options (YARN, Kubernetes, Standalone). For a cloud-native team that wants containerized, reproducible jobs and autoscaling, which manager would you recommend and why? Discuss deployment, isolation, and lifecycle differences.

EasyTechnical
74 practiced

Compare Hive and HBase in terms of data model, query patterns, latency, and typical use cases. For a given use case (analytics over large historical datasets vs random low-latency lookups by key), explain which system you would choose, why, and how you might integrate both in a single architecture.

MediumTechnical
79 practiced

Compare file formats (Parquet, ORC, Avro, CSV) for storing large-scale tables. Discuss columnar benefits, compression codecs (snappy, lz4, gzip), schema evolution, and how partitioning and bucketing choices affect query and join performance.

MediumTechnical
78 practiced

Outline a batch ETL pipeline in PySpark that reads raw JSON logs from S3, performs cleansing (drop nulls, normalize timestamps), computes hourly aggregates, and writes partitioned Parquet files partitioned by date and hour. Describe how to enforce schema, stage temporary output to ensure atomic commits, and handle schema evolution safely.

Unlock Full Question Bank

Get access to all Distributed Data Processing with Spark and Hadoop interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.