Question 214 of 846
Design and develop data processinghardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to increase `spark.sql.shuffle.partitions` to a higher value, such as 500. This configuration change directly resolves the OutOfMemoryError during shuffles by reducing the amount of data each partition must hold, thereby lowering memory pressure on each executor. When a Spark job processes 500 GB of data with only 10 workers of 14 GB each, the default shuffle partitions (often 200) create partitions too large for the available executor memory, causing the failure. On the DP-203 exam, this scenario tests your understanding of Spark shuffle memory tuning and resource allocation in Azure Databricks—a common trap is to over-provision by adding more workers, which wastes cost, when a simple partition adjustment suffices. Remember the mnemonic: “Shuffle partitions shrink strain” to recall that increasing partition count reduces per-partition memory load.

DP-203 Design and develop data processing Practice Question

This DP-203 practice question tests your understanding of design and develop data processing. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company is running a Spark job on Azure Databricks that processes 500 GB of data daily. The job frequently fails with 'OutOfMemoryError' during shuffles. The cluster uses 10 workers of type Standard_DS3_v2 (14 GB memory each). Which configuration change should you make to improve stability without over-provisioning?

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Set spark.sql.shuffle.partitions to a higher value, e.g., 500.

The 'OutOfMemoryError' during shuffles indicates that individual partitions are too large for the executor memory. Increasing `spark.sql.shuffle.partitions` to 500 reduces the amount of data per partition, lowering memory pressure during shuffle operations. This directly addresses the error without adding more hardware.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set spark.sql.shuffle.partitions to a higher value, e.g., 500.

    Why this is correct

    Reduces data per partition, easing memory.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Increase the driver memory to 28 GB.

    Why it's wrong here

    Driver memory not the bottleneck.

  • Increase the number of workers to 20.

    Why it's wrong here

    Increases parallelism but may not address memory per task.

  • Reduce spark.sql.shuffle.partitions to 100.

    Why it's wrong here

    Increases partition size, worsening OOM.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume adding more workers (Option C) is the only way to fix memory errors, but the question tests understanding that partition size, not just cluster size, is the root cause of shuffle OOM errors.

Detailed technical explanation

How to think about this question

Spark's shuffle operation uses a hash-based partitioning scheme where each partition is written to a separate file. The default `spark.sql.shuffle.partitions` is 200, which for 500 GB of data results in ~2.5 GB per partition, exceeding the ~4 GB executor memory (after overhead) on a Standard_DS3_v2 node. Increasing partitions to 500 reduces each partition to ~1 GB, fitting comfortably within memory. Real-world tuning often involves balancing partition size to avoid both memory errors and excessive small file overhead.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DP-203 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DP-203 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DP-203 question test?

Design and develop data processing — This question tests Design and develop data processing — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Set spark.sql.shuffle.partitions to a higher value, e.g., 500. — The 'OutOfMemoryError' during shuffles indicates that individual partitions are too large for the executor memory. Increasing `spark.sql.shuffle.partitions` to 500 reduces the amount of data per partition, lowering memory pressure during shuffle operations. This directly addresses the error without adding more hardware.

What should I do if I get this DP-203 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DP-203 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-203 exam.