Spark Tuning interview questions

117 real Spark Tuning questions from the Big Data bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is why a shuffle is expensive?

Mid
  1. A.it spills to disk, serializes data and transfers it over the network
  2. B.the garbage collector recommended for large Spark executor heaps, dividing the heap into regions to keep pause times bounded better than the older parallel collector
  3. C.adding a random prefix to a hot key to spread skew across partitions
  4. D.an uneven key distribution that makes one task a straggler
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Mid
  1. A.why a shuffle is expensive — an AQE feature that merges many small shuffle partitions into fewer right-sized ones based on runtime statistics
  2. B.why a shuffle is expensive — a task that runs much slower than its peers in a stage and delays the whole stage from completing
  3. C.why a shuffle is expensive — it spills to disk, serializes data and transfers it over the network
  4. D.why a shuffle is expensive — writing an RDD or DataFrame to reliable storage to truncate its lineage, preventing stack-overflow and recomputation in long iterative or streaming jobs
Reveal the answer + AI explanation — free account

4. What is spark.sql.shuffle.partitions?

Junior
  1. A.the mechanism (spark.dynamicAllocation.shuffleTracking.enabled) that lets dynamic allocation release executors safely without a separate external shuffle service by tracking which executors hold shuffle blocks
  2. B.the act of writing shuffle or aggregation data from memory to disk when it exceeds the available execution memory, slowing the job
  3. C.the config capping the number of bytes packed into a single partition when reading files, defaulting to 128 MB and controlling read-side parallelism
  4. D.the setting controlling post-shuffle partition count (default 200)
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.spark.sql.shuffle.partitions — the AQE feature that detects skewed join partitions at runtime and splits them into smaller subpartitions to balance task time
  2. B.spark.sql.shuffle.partitions — the config that sets how many concurrent task slots each Spark executor gets, commonly tuned to 4-5 to balance HDFS throughput against memory pressure
  3. C.spark.sql.shuffle.partitions — the config capping the number of bytes packed into a single partition when reading files, defaulting to 128 MB and controlling read-side parallelism
  4. D.spark.sql.shuffle.partitions — the setting controlling post-shuffle partition count (default 200)
Reveal the answer + AI explanation — free account

7. What is data skew?

Mid
  1. A.an uneven key distribution that makes one task a straggler
  2. B.the garbage collector recommended for large Spark executor heaps, dividing the heap into regions to keep pause times bounded better than the older parallel collector
  3. C.a skew-mitigation technique that appends a random prefix to hot keys to spread them across more reducers before aggregating
  4. D.writing an RDD or DataFrame to reliable storage to truncate its lineage, preventing stack-overflow and recomputation in long iterative or streaming jobs
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.data skew — an uneven key distribution that makes one task a straggler
  2. B.data skew — it spills to disk, serializes data and transfers it over the network
  3. C.data skew — the AQE setting that merges small post-shuffle partitions at runtime so the output partition count matches the actual data volume
  4. D.data skew — adding a random prefix to a hot key to spread skew across partitions
Reveal the answer + AI explanation — free account

10. What is salting?

Mid
  1. A.an uneven distribution of keys across partitions that overloads a few tasks and creates straggler-driven slowness
  2. B.the act of writing shuffle or aggregation data from memory to disk when it exceeds the available execution memory, slowing the job
  3. C.adding a random prefix to a hot key to spread skew across partitions
  4. D.adjusting JVM collector and heap settings to reduce long GC pauses that stall Spark executors
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.salting — adding a random prefix to a hot key to spread skew across partitions
  2. B.salting — the config that sets the JVM heap size per Spark executor, with task working memory drawn from it after reserving overhead and storage
  3. C.salting — a task that runs much slower than its peers in a stage and delays the whole stage from completing
  4. D.salting — an AQE feature that merges many small shuffle partitions into fewer right-sized ones based on runtime statistics
Reveal the answer + AI explanation — free account

13. What is autoBroadcastJoinThreshold?

Junior
  1. A.the size limit (default 10MB) under which Spark auto-broadcasts a table
  2. B.the AQE feature that detects skewed join partitions at runtime and splits them into smaller subpartitions to balance task time
  3. C.a performance issue where too many tiny output files create excessive task and metadata overhead on reads
  4. D.the AQE setting that merges small post-shuffle partitions at runtime so the output partition count matches the actual data volume
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.autoBroadcastJoinThreshold — the garbage collector recommended for large Spark executor heaps, dividing the heap into regions to keep pause times bounded better than the older parallel collector
  2. B.autoBroadcastJoinThreshold — the LRU process by which Spark drops the least-recently-used cached blocks from storage memory when space is needed, with MEMORY_AND_DISK spilling rather than recomputing
  3. C.autoBroadcastJoinThreshold — the practice of keeping each Spark partition near 128-200 MB so tasks are neither too small (scheduler overhead) nor too large (spilling and skew)
  4. D.autoBroadcastJoinThreshold — the size limit (default 10MB) under which Spark auto-broadcasts a table
Reveal the answer + AI explanation — free account

16. What is Data skew?

Junior
  1. A.memory managed outside the JVM heap by Spark (enabled with spark.memory.offHeap.enabled and sized by spark.memory.offHeap.size) to reduce garbage collection pressure on large workloads
  2. B.the AQE feature that detects skewed join partitions at runtime and splits them into smaller subpartitions to balance task time
  3. C.an uneven distribution of keys across partitions that overloads a few tasks and creates straggler-driven slowness
  4. D.a task that runs much slower than its peers in a stage and delays the whole stage from completing
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.Data skew — an uneven distribution of keys across partitions that overloads a few tasks and creates straggler-driven slowness
  2. B.Data skew — the config reserving off-heap memory per executor for JVM internals, shuffle buffers, and Python/native processes, defaulting to about 10 percent of executor memory
  3. C.Data skew — a skew-mitigation technique that appends a random prefix to hot keys to spread them across more reducers before aggregating
  4. D.Data skew — a faster Spark checkpoint variant that truncates lineage using executor local storage instead of reliable storage, trading fault tolerance for speed
Reveal the answer + AI explanation — free account

19. What is Salting?

Mid
  1. A.a skew-mitigation technique that appends a random prefix to hot keys to spread them across more reducers before aggregating
  2. B.a shuffle-free join made possible when both tables are pre-bucketed on the join key with the same number of buckets
  3. C.the fraction of usable heap shared by execution and storage in Spark unified memory management, defaulting to 0.6
  4. D.an uneven key distribution that makes one task a straggler
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Salting — a skew-mitigation technique that appends a random prefix to hot keys to spread them across more reducers before aggregating
  2. B.Salting — the garbage collector recommended for large Spark executor heaps, dividing the heap into regions to keep pause times bounded better than the older parallel collector
  3. C.Salting — an uneven key distribution that makes one task a straggler
  4. D.Salting — writing an RDD or DataFrame to reliable storage to truncate its lineage, preventing stack-overflow and recomputation in long iterative or streaming jobs
Reveal the answer + AI explanation — free account

22. What is Spill?

Mid
  1. A.an uneven key distribution that makes one task a straggler
  2. B.the act of writing shuffle or aggregation data from memory to disk when it exceeds the available execution memory, slowing the job
  3. C.the LRU process by which Spark drops the least-recently-used cached blocks from storage memory when space is needed, with MEMORY_AND_DISK spilling rather than recomputing
  4. D.the config that sets how many concurrent task slots each Spark executor gets, commonly tuned to 4-5 to balance HDFS throughput against memory pressure
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Mid
  1. A.Spill — adding a random prefix to a hot key to spread skew across partitions
  2. B.Spill — the Spark feature (spark.speculation) that relaunches copies of slow-running stragglers on other executors and keeps whichever finishes first to limit tail latency
  3. C.Spill — a faster Spark checkpoint variant that truncates lineage using executor local storage instead of reliable storage, trading fault tolerance for speed
  4. D.Spill — the act of writing shuffle or aggregation data from memory to disk when it exceeds the available execution memory, slowing the job
Reveal the answer + AI explanation — free account

25. What is Coalescing post-shuffle partitions?

Mid
  1. A.a task that runs much slower than its peers in a stage and delays the whole stage from completing
  2. B.an AQE feature that merges many small shuffle partitions into fewer right-sized ones based on runtime statistics
  3. C.the Spark feature (spark.dynamicAllocation.enabled) that scales executors up and down at runtime based on pending and idle tasks, requiring an external or shuffle-tracking service to preserve shuffle data
  4. D.a faster Spark checkpoint variant that truncates lineage using executor local storage instead of reliable storage, trading fault tolerance for speed
Reveal the answer + AI explanation — free account

26. Which term means: "an AQE feature that merges many small shuffle partitions into fewer right-sized ones based on runtime statistics"?

Mid
  1. A.localCheckpoint
  2. B.Salting
  3. C.Coalescing post-shuffle partitions
  4. D.speculative execution
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Mid
  1. A.Coalescing post-shuffle partitions — an AQE feature that merges many small shuffle partitions into fewer right-sized ones based on runtime statistics
  2. B.Coalescing post-shuffle partitions — the size limit (default 10MB) under which Spark auto-broadcasts a table
  3. C.Coalescing post-shuffle partitions — the practice of keeping each Spark partition near 128-200 MB so tasks are neither too small (scheduler overhead) nor too large (spilling and skew)
  4. D.Coalescing post-shuffle partitions — a faster Spark checkpoint variant that truncates lineage using executor local storage instead of reliable storage, trading fault tolerance for speed
Reveal the answer + AI explanation — free account

28. What is Small files problem?

Senior
  1. A.an uneven distribution of keys across partitions that overloads a few tasks and creates straggler-driven slowness
  2. B.the config reserving off-heap memory per executor for JVM internals, shuffle buffers, and Python/native processes, defaulting to about 10 percent of executor memory
  3. C.the config that sets how many concurrent task slots each Spark executor gets, commonly tuned to 4-5 to balance HDFS throughput against memory pressure
  4. D.a performance issue where too many tiny output files create excessive task and metadata overhead on reads
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Senior
  1. A.Small files problem — a performance issue where too many tiny output files create excessive task and metadata overhead on reads
  2. B.Small files problem — the mechanism (spark.dynamicAllocation.shuffleTracking.enabled) that lets dynamic allocation release executors safely without a separate external shuffle service by tracking which executors hold shuffle blocks
  3. C.Small files problem — adding a random prefix to a hot key to spread skew across partitions
  4. D.Small files problem — it spills to disk, serializes data and transfers it over the network
Reveal the answer + AI explanation — free account

Showing 30 of 117 Spark Tuning questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Spark Tuning free