Question 913 of 966
Prepare the datahardMultiple ChoiceObjective-mapped

Quick Answer

The answer is that the `QuoteStyle.None` option will cause commas inside quoted fields to be treated as delimiters. This is because `QuoteStyle.None` instructs Power Query to ignore standard CSV quoting rules, so a value like "Smith, John" is split into two separate columns at the comma, breaking the row structure and misaligning subsequent data. On the PL-300 exam, this tests your understanding of how Power Query’s M code handles CSV import settings, often appearing in a scenario where a file with quoted fields imports incorrectly. A common trap is assuming that all CSV imports automatically respect quotes, but without explicitly setting `QuoteStyle.Csv`, Power Query defaults to `QuoteStyle.None` in certain code patterns. To remember: think “None means no protection” — without quote style, commas cut through quotes like a knife through butter.

PL-300 Prepare the data Practice Question

This PL-300 practice question tests your understanding of prepare the data. 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.

Exhibit

Refer to the exhibit.
```
let
    Source = Csv.Document(File.Contents("C:\data\sales.csv"),[Delimiter=",", Columns=5, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"OrderDate", type datetime}, {"Amount", type number}})
in
    #"Changed Type"
```

You are debugging a Power Query that imports a CSV file. The exhibit shows the M code. The CSV file contains a header row and data. Some rows have a comma inside a quoted field (e.g., "Smith, John"). What issue will arise from this code?

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.
```
let
    Source = Csv.Document(File.Contents("C:\data\sales.csv"),[Delimiter=",", Columns=5, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"OrderDate", type datetime}, {"Amount", type number}})
in
    #"Changed Type"
```

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

The QuoteStyle.None option will cause commas inside quotes to be treated as delimiters.

Option B is correct because the M code uses `QuoteStyle.None`, which tells Power Query to treat commas inside quoted fields as column delimiters rather than as part of the field value. This causes rows with values like "Smith, John" to be split incorrectly, resulting in extra columns and misaligned data. The correct option for CSV files with quoted fields is `QuoteStyle.Csv`, which respects the standard CSV quoting rules.

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.

  • The encoding 1252 is incorrect for the file.

    Why it's wrong here

    1252 is a common encoding for Western languages; it is likely fine.

  • The QuoteStyle.None option will cause commas inside quotes to be treated as delimiters.

    Why this is correct

    QuoteStyle.None ignores quoting, so commas inside quotes break columns.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The number of columns specified (5) is too many.

    Why it's wrong here

    The actual number of columns might be different, but specifying 5 may cause errors.

  • The Promoted Headers step will fail because the first row contains quotes.

    Why it's wrong here

    Promoted Headers works on the first row regardless of quotes.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may assume the issue is with encoding or column count, but the core problem is the misuse of `QuoteStyle.None` instead of `QuoteStyle.Csv`, which directly causes quoted commas to be misinterpreted as delimiters.

Detailed technical explanation

How to think about this question

In Power Query, `QuoteStyle.None` disables quote handling, so the CSV parser treats every comma as a delimiter regardless of surrounding quotes. The standard CSV RFC 4180 requires that commas inside double-quoted fields be ignored as delimiters, which is achieved by `QuoteStyle.Csv`. A real-world scenario is importing employee data where names like "Smith, John" appear; without proper quote handling, the name splits into two columns, corrupting the dataset.

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 cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

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 PL-300 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 PL-300 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 PL-300 question test?

Prepare the data — This question tests Prepare the data — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The QuoteStyle.None option will cause commas inside quotes to be treated as delimiters. — Option B is correct because the M code uses `QuoteStyle.None`, which tells Power Query to treat commas inside quoted fields as column delimiters rather than as part of the field value. This causes rows with values like "Smith, John" to be split incorrectly, resulting in extra columns and misaligned data. The correct option for CSV files with quoted fields is `QuoteStyle.Csv`, which respects the standard CSV quoting rules.

What should I do if I get this PL-300 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 24, 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 PL-300 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 PL-300 exam.