CertLumen

Microsoft Fabric Data Engineer (DP-700) · Section 2 · 33% of the exam

Denormalize data

One of the objectives of the Microsoft Certified: Fabric Data Engineer Associate (exam DP-700: Implementing Data Engineering Solutions Using Microsoft Fabric) exam, in the section “Ingest and transform data”. Here is what it covers, the points to remember and a question to try.

What it covers

The same four jobs appear in every engine: reshape and join data, denormalize it for analytics, group and aggregate it, and make it trustworthy by removing duplicates, filling gaps and absorbing late arrivals. This lesson shows each in PySpark, T-SQL or Spark SQL, and KQL, and which approach suits which store.

Points to remember

  • Transformations are equivalent across engines: filter, join, group (summarize), window and write.
  • Use built-in Spark functions instead of Python UDFs; PySpark is lazy until an action runs.
  • Denormalize dimensions (wide, flat attributes); keep fact tables narrow with keys and measures.
  • Flatten nested JSON with dot notation and explode; broadcast the small side of a join.
  • Exact duplicates: distinct or dropDuplicates; duplicate keys: row_number over a window (QUALIFY in T-SQL, arg_max in KQL).

Try a question

A feed has NULL in unit_price for some order lines. Finance says a missing price must never be treated as 0 revenue, but a list price exists in a product table for most items. Items without any price must be reviewed manually. Which handling meets all requirements?

  1. AReplace every NULL price with 0 so that the revenue sums still work for every order line
  2. BDrop every order line that has a NULL price from the load and ignore it afterwards
  3. Ccoalesce the product list price into gaps; quarantine rows that still lack a price
  4. DReplace NULL with the average unit price calculated across all of the products
Show the answer

C. Handling missing data is a business decision per column: repair from a trusted source, impute only where acceptable, default only when the default has the same meaning, and quarantine what you can't resolve so it remains visible.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Transforming data with PySpark, SQL and KQL teaches this objective (about 55 minutes), and 18 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 49 objectives · Next objective →