Question 228 of 846
Design and implement data storagehardMultiple ChoiceObjective-mapped

Quick Answer

The optimal folder structure is /year/month/day/, as this Hive-style partitioning enables both Spark and Azure Synapse Serverless SQL to perform efficient partition pruning. By organizing data into nested directories that mirror the partition columns, Spark’s partition discovery reads only the relevant folders, while Synapse Serverless SQL leverages file path metadata to filter out unnecessary partitions, minimizing cross-partition scans and reducing data read overhead. On the DP-203 exam, this scenario tests your understanding of how different compute engines interact with ADLS Gen2’s hierarchical namespace; a common trap is choosing a flat structure like /date=2023-12-25/, which works for Spark but not for Synapse Serverless SQL’s path-based pruning. Remember the mnemonic “Year, Month, Day—keep the scans away” to recall that deeper nesting aligns with both batch and interactive workloads.

DP-203 Optimize folder structure Practice Question

This DP-203 practice question tests your understanding of design and implement data storage. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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.

You are designing a data lake on Azure Data Lake Storage Gen2. The data will be used by both batch processing (Spark) and interactive querying (Azure Synapse Serverless SQL). The data is partitioned by date and stored as Parquet. What is the optimal folder structure to minimize cross-partition scans for both workloads?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

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

/year/month/day/ (e.g., /2023/12/25/)

Option B (/year/month/day/) is optimal because it aligns with Hive-style partitioning, which both Spark and Azure Synapse Serverless SQL can leverage for partition pruning. Spark uses partition discovery to read only relevant directories, and Synapse Serverless SQL uses the file path metadata to filter partitions, minimizing cross-partition scans and reducing data read overhead.

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.

  • All files in a single folder

    Why it's wrong here

    No partitioning at all, causing full scans.

  • /yyyy-mm-dd/ (e.g., /2023-12-25/)

    Why it's wrong here

    Single-level partitioning does not allow efficient pruning for yearly or monthly queries.

  • Files named by date (e.g., data_20231225.parquet)

    Why it's wrong here

    Partition pruning requires folder hierarchy, not file names.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The DP-203 exam frequently reuses these exact scenarios with slightly different constraints.

/year/month/day/ (e.g., /2023/12/25/)Correct answer
All files in a single folderWrong answer — click to see why

Why this is wrong here

No partitioning at all, causing full scans.

/yyyy-mm-dd/ (e.g., /2023-12-25/)Wrong answer — click to see why

Why this is wrong here

Single-level partitioning does not allow efficient pruning for yearly or monthly queries.

Files named by date (e.g., data_20231225.parquet)Wrong answer — click to see why

Why this is wrong here

Partition pruning requires folder hierarchy, not file names.

Analysis generated from the official DP-203blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume a flat date-based folder or filename pattern is sufficient for partitioning, but both Spark and Synapse Serverless SQL require hierarchical folder structures to enable automatic partition pruning and avoid full scans.

Detailed technical explanation

How to think about this question

Under the hood, Spark's partition discovery scans the directory tree and maps subdirectories to partition columns, while Azure Synapse Serverless SQL uses the OPENROWSET function with a folder path pattern (e.g., /year=2023/month=12/day=25/) to automatically infer partitions. In real-world scenarios, using Hive-style partitioning (e.g., /year=2023/month=12/day=25/) is even more robust because it explicitly names partition columns, avoiding ambiguity when folder names are numeric and ensuring compatibility with both engines' metadata-driven pruning.

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 implement data storage — This question tests Design and implement data storage — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: /year/month/day/ (e.g., /2023/12/25/) — Option B (/year/month/day/) is optimal because it aligns with Hive-style partitioning, which both Spark and Azure Synapse Serverless SQL can leverage for partition pruning. Spark uses partition discovery to read only relevant directories, and Synapse Serverless SQL uses the file path metadata to filter partitions, minimizing cross-partition scans and reducing data read overhead.

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.

Are there clue words in this question I should notice?

Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

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

Keep practising

More DP-203 practice questions

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.