DP-600 - Prepare Data - Section 2.6

Cleanse and shape data by resolving duplicates, missing values, and null values, converting data types, merging or joining, and filtering.

Cleanse source data by resolving duplicates, replacing null values, and converting data types to match target schema requirements. Apply merge and join, filtering, and other Dataflows Gen2 transformations to shape datasets before loading them into a Lakehouse or Warehouse.

merge and joinduplicate and null handlingdata type conversionfilteringDataflows Gen2 transformations

Practice question for this objective

Free samplePrepare Datamedium

In a "Dataflows Gen2" query, a Supplier column holds the same supplier name with inconsistent leading and trailing spaces and stray non-printing control characters, so values that should match are treated as distinct and a later Remove Duplicates leaves several near-identical rows. The engineer must make matching suppliers collapse correctly. Which TWO transformations should be applied to the Supplier column before the deduplication step? Select TWO.

  • AApply the Trim transformation to the Supplier column so the leading and trailing spaces are stripped and otherwise equal values become byte-for-byte identical. Correct
  • BApply Capitalise Each Word to the Supplier column so the casing is standardised across every row and the supplier names then line up consistently for matching.
  • CApply the Clean transformation to the Supplier column so the stray non-printing control characters are removed and the remaining text compares as equal across rows. Correct
  • DApply Replace Values on the Supplier column to swap one specific malformed name for its correct spelling so that the affected rows then match the clean entries.
Use Trim to remove surrounding whitespace and Clean to remove non-printing characters so otherwise identical text values match before Remove Duplicates. Remove Duplicates compares the exact column values, so invisible differences such as edge whitespace and control characters stop equal suppliers from collapsing; Trim and Clean together normalise the text so the comparison treats them as the same value.

Why A is correct: Trim removes the surrounding whitespace that makes the same supplier compare as different, which is one of the two cleansing steps needed before Remove Duplicates can collapse the rows.

Why B is wrong: Changing the casing is tempting as a normaliser, but the stem describes whitespace and control characters, not casing, so this step alters the data without fixing the stated mismatch.

Why C is correct: Clean strips the non-printing control characters called out in the stem, which is the second cleansing step required so that otherwise identical supplier values match during deduplication.

Why D is wrong: Replace Values fixes a single named value but cannot address the general whitespace and control-character problem across every supplier, so most near-identical rows would still fail to collapse.

See more DP-600 practice questions, answers explained.

More in this domain

Back to all Prepare Data objectives, or the DP-600 cert hub.

Examworthy is not affiliated with or endorsed by Microsoft. Original, blueprint-aligned practice material only.