# Transform data — Practice reading

Exam: DP-600 — Implementing Analytics Solutions Using Microsoft Fabric
Knowledge domain: Prepare data (45–50%)
HTML: https://learningpathx.com/learning-path/DP-600/learn/492

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: Create views, functions, and stored procedures

An analytics team uses a Fabric Warehouse. Report readers need a reusable SQL object that presents selected and derived columns from several Warehouse tables. Readers must be able to query the object directly without supplying parameters, and the object must return results based on the current table data. What should you create, and how should you verify it?

### Options

**A**

Create a view over the Warehouse tables, then query the view and compare its output with the base tables after loading a new row.

**B**

Create a table-valued function with an input parameter, then call it with several parameter values and compare the returned rows.

**C**

Create a stored procedure that runs the SELECT statement, then execute the procedure after loading a new row and inspect its result set.

**D**

Create a measure in a semantic model, then refresh the model after loading a new row and inspect the measure in a report.

Correct answer: A

### Explanation

A view is appropriate because readers need a reusable relational projection over Warehouse tables and do not need to supply parameters or execute procedural work. Querying the view and comparing its output with the base tables after a new row is loaded verifies that it returns current results.

## Question 2

Type: single\_choice
Knowledge point: Create views, functions, and stored procedures

A data engineer maintains a Fabric Warehouse containing dbo.Sales. Report authors need a reusable SQL object that accepts a region code supplied by the caller and returns the matching sales rows as a table that can be used in a SELECT statement. The engineer must also verify that different parameter values produce the expected row counts and sales totals when compared with equivalent filters on dbo.Sales. What should the engineer create and test?

### Options

**A**

Create a view over dbo.Sales, query the view with a separate WHERE clause for each region, and compare each result with the base table.

**B**

Create a supported table-valued function with a region-code parameter, call it with at least two region codes, and reconcile each returned table with the corresponding filtered base-table rows.

**C**

Create a stored procedure that returns sales rows, execute it for at least two region codes, and compare its result sets with the corresponding filtered base-table rows.

**D**

Create a scalar function that accepts a region code and returns a sales total, invoke it for at least two regions, and compare each scalar value with the base-table total.

Correct answer: B

### Explanation

The reusable object must both accept a caller-supplied parameter and return a tabular SQL result that can participate in a SELECT statement. A supported table-valued function satisfies both constraints. Calling it with multiple region codes and reconciling its rows and totals with equivalent base-table filters confirms that the parameter changes the output correctly.

## Question 3

Type: single\_choice
Knowledge point: Create views, functions, and stored procedures

A data engineer must implement a governed load in a Fabric Warehouse. Each run must validate staged rows, write valid rows to a curated table, and write invalid rows to a rejection table. The steps require supported table modifications and must be invoked through one explicit execution boundary. After invocation, the engineer must verify that the complete set of steps ran by checking both destination tables. Which SQL object and validation approach should the engineer use?

### Options

**A**

Create a view over the staging table, query the view once, and compare its returned rows with the staging rows.

**B**

Create a table-valued function for the staged rows, invoke the function once, and inspect its returned table.

**C**

Create a stored procedure for the load, execute the procedure once, and inspect the resulting curated and rejected-row tables.

**D**

Create a visual query over the staging table, run the query once, and inspect its preview results.

Correct answer: C

### Explanation

The load requires several procedural T-SQL operations against Warehouse tables and must expose an explicit execution boundary. A stored procedure is designed to group and execute that multi-statement work. Executing the procedure once and then validating both the curated and rejected-row outputs confirms that the intended boundary performed the complete load.

## Question 4

Type: single\_choice
Knowledge point: Create views, functions, and stored procedures

A data engineer maintains Delta tables in a Fabric Lakehouse. Existing Spark jobs must continue to consume those tables in place, and analysts must retain the views, functions, and stored procedures currently defined through the Lakehouse SQL analytics endpoint. A new script sends Warehouse-style UPDATE and MERGE statements to that endpoint, but the table modifications fail. What should the engineer do?

### Options

**A**

Perform the table changes through a Spark-oriented Lakehouse write process and continue using the SQL analytics endpoint for the existing SQL objects.

**B**

Move the tables and update script to a Warehouse, recreate the SQL objects in the Warehouse, and provide the Spark jobs with shortcuts to those tables.

**C**

Keep the current endpoint and place the UPDATE and MERGE statements inside a stored procedure invoked by the script.

**D**

Rebuild the update logic in the Visual Query Editor, publish its result as a Lakehouse table, and retain the existing SQL objects.

Correct answer: A

### Explanation

The Lakehouse SQL analytics endpoint provides a read-oriented table surface while supporting reusable SQL objects such as views, functions, and stored procedures over exposed Delta tables. Because the tables must remain in the Lakehouse for existing Spark consumers, the data modifications should use a Lakehouse-supported write process, while the SQL endpoint continues to host the read-oriented objects.

## Question 5

Type: single\_choice
Knowledge point: Enrich data by adding new columns or tables

A Dataflow Gen2 loads an Orders table that has a correctly typed OrderDate column. The loaded table must retain one row per order, and downstream consumers require a stable OrderMonth value on every row after each refresh. Which action should you take?

### Options

**A**

Add an OrderMonth custom column from OrderDate during preparation, load the enriched Orders table, and verify the stored month on representative rows after refresh.

**B**

Create an OrderMonth DAX measure in the semantic model, publish the model, and verify its result under report date filters.

**C**

Group Orders by month during preparation, load one aggregate row per month, and verify the number of monthly rows after refresh.

**D**

Load a separate month lookup table, relate it to Orders in the semantic model, and verify that report visuals can display a month for each order.

Correct answer: A

### Explanation

OrderMonth is a stable value derived from each order's correctly typed OrderDate. Adding it during Dataflow Gen2 preparation and loading the enriched table stores the value on each order row without changing the table's grain. Inspecting refreshed rows checks the result.

## Question 6

Type: single\_choice
Knowledge point: Enrich data by adding new columns or tables

A data engineer is preparing an Orders table in Dataflow Gen2\. Each order contains LocalAmount, CurrencyCode, and OrderDate. Finance publishes a currency-rate lookup on an independent nightly schedule, retaining its historical dated rates. The lookup contains exactly one matching row for every CurrencyCode and OrderDate combination in Orders, with EffectiveDate equal to OrderDate. Historical orders must use the rate applicable on their order date, and newly published rates must be usable without editing the transformation formula. What should the data engineer do?

### Options

**A**

Add a custom column to Orders that uses hard-coded conversion values for each currency.

**B**

Load the exchange rates as a separate table and merge it with Orders by CurrencyCode and OrderDate-to-EffectiveDate.

**C**

Load the exchange rates as a separate table and merge it with Orders by CurrencyCode only.

**D**

Retrieve the latest rate for each currency during refresh and apply it to every historical order in that currency.

Correct answer: B

### Explanation

The independently maintained exchange rates belong in a separate lookup. The lookup contains exactly one matching row for every order's currency and order date, so merging on CurrencyCode and OrderDate-to-EffectiveDate selects the applicable historical rate without multiplying order rows. Refreshing the lookup makes newly published rates available without changing hard-coded conversion values.

## Question 7

Type: single\_choice
Knowledge point: Enrich data by adding new columns or tables

A semantic model contains an order-line fact table with SalesAmount and CostAmount columns. A report uses product and date slicers. The profit margin must recalculate for the current selections, and products with different sales amounts must contribute proportionally to the result. Which calculation should you create?

### Options

**A**

Create a measure that divides the sum of profit amount by the sum of sales amount.

**B**

Create a calculated column for each row's profit-margin percentage and average the column.

**C**

Use Power Query to group the rows by product, calculate each product's profit-margin percentage, and load the result.

**D**

Create a measure that calculates each row's profit-margin percentage and sums the percentages.

Correct answer: A

### Explanation

Profit margin is a non-additive ratio. A measure based on aggregated profit and aggregated sales is evaluated in the report's current filter context, so product and date selections affect both totals. Dividing those totals also weights each order line according to its sales amount instead of treating row percentages equally.

## Question 8

Type: single\_choice
Knowledge point: Enrich data by adding new columns or tables

An Orders source contains a numeric Amount column with no nulls. A Dataflow Gen2 adds a text column named ReviewBand. Orders with Amount at least 1000 must be labeled Review; all other orders must be labeled Routine. The dataflow is configured to create OrdersEnriched in the Ops lakehouse. The final Power Query preview shows the expected labels, and the first refresh succeeds. The refreshed data includes orders with amounts 999, 1000, and 1001\. Notebook users will read OrdersEnriched directly. Which validation plan should you use before handing the table to these users?

### Options

**A**

Inspect the final Power Query preview for numeric Amount, text ReviewBand, and expected classifications; confirm that the destination settings name OrdersEnriched in Ops.

**B**

Inspect OrdersEnriched in Ops for a ReviewBand column and a row count matching the input; confirm that refresh history reports a successful run without errors.

**C**

Inspect the refreshed OrdersEnriched table in Ops for numeric Amount and text ReviewBand; verify that amounts 999, 1000, and 1001 have labels Routine, Review, and Review.

**D**

Inspect the source Orders table for numeric Amount; review the conditional-column step for the expected classifications and confirm that destination settings name OrdersEnriched in Ops.

Correct answer: C

### Explanation

Dataflow Gen2 applies the enrichment and loads its output into a destination table. Because notebook users will read that table directly, validation must establish that the refreshed OrdersEnriched table is in the Ops lakehouse, has the intended column types, and contains correct ReviewBand values. Checking amounts below, equal to, and above 1000 tests both conditional branches and the inclusive boundary. A correct Power Query preview and destination configuration describe the intended output but do not establish what was persisted. Refresh success and matching row counts also do not establish that the conditional logic is correct.

## Question 9

Type: single\_choice
Knowledge point: Implement a star schema for a lakehouse or warehouse

An analytics engineer is designing a physical sales schema in a Fabric warehouse. FactSales must retain one row per order line, including Quantity and NetAmount. Report users must consistently slice those values by reusable product attributes and calendar attributes. Which design should the engineer implement?

### Options

**A**

Create conformed DimProduct and DimDate tables with unique keys referenced by FactSales.

**B**

Store all product and calendar descriptions directly in every FactSales row without separate dimensions.

**C**

Replace FactSales with a table aggregated to one row for each product and date.

**D**

Create product and date tables, but match FactSales to them by descriptive fields such as product name and month name.

Correct answer: A

### Explanation

FactSales must remain at order-line grain while product and calendar attributes consistently slice its numeric values. Conformed product and date dimensions provide reusable descriptive attributes, and their unique keys give each fact row an unambiguous reference without aggregating or duplicating the sales lines.

## Question 10

Type: single\_choice
Knowledge point: Implement a star schema for a lakehouse or warehouse

An analytics engineer is loading FactOrderLine in a Fabric Warehouse. Each source row represents one shipped order line and contains OrderDate and ShipDate. Some lines are ordered in one month and shipped in the next. The existing conformed DimDate contains one row per calendar date with a unique DateKey and covers all source dates. Analysts need totals by order month and by shipping month. FactOrderLine must retain one row per order line and reuse DimDate. Which date-key mapping should the engineer use?

### Options

**A**

Look up OrderDate in DimDate and store its DateKey in both OrderDateKey and ShipDateKey.

**B**

Look up OrderDate and ShipDate in DimDate and store their DateKey values in OrderDateKey and ShipDateKey, respectively.

**C**

Look up ShipDate in DimDate and store its DateKey in both OrderDateKey and ShipDateKey.

**D**

Look up both dates in DimDate and create two fact rows per order line, storing each date's DateKey in a shared DateKey column.

Correct answer: B

### Explanation

Order date and shipping date are two business roles for the same Date dimension. Mapping each source date to its corresponding fact column preserves both roles on the original order-line row. Queries can join OrderDateKey to DimDate.DateKey for order-month analysis or ShipDateKey for shipping-month analysis. Copying the order-date key into both columns preserves the grain but assigns shipments to the order month when the dates differ. The Warehouse design uses one Date dimension whose role depends on the fact column used in the join, as described in Microsoft's [star schema guidance](https://learn.microsoft.com/en-us/power-bi/guidance/star-schema).

## Question 11

Type: single\_choice
Knowledge point: Implement a star schema for a lakehouse or warehouse

A sales warehouse contains a customer dimension and an order-line fact table. Customer C7 has moved from the West region to the East region. The business requires every report to classify all of C7's sales, including sales recorded before the move, under East. Historical regional assignments must not be preserved, the change must not alter the overall sales amount, and existing fact-table foreign keys must not be rewritten. Which action and validation should you use?

### Options

**A**

Overwrite the region on the existing customer dimension row. Verify that sales from both before and after the move group under the new region and that the overall sales total is unchanged.

**B**

Expire the existing customer dimension row and insert a new row with a new surrogate key. Verify that sales before the move remain under the former region and later sales appear under the new region.

**C**

Insert a new customer dimension row for the new region and update all historical fact rows to its surrogate key. Verify that no facts reference the former customer version and that the overall sales total is unchanged.

**D**

Keep the existing customer dimension row unchanged and add a transaction-date filter to reports. Verify that earlier sales remain under the former region and only later sales appear under the new region.

Correct answer: A

### Explanation

Because reports must show both earlier and later sales under the customer's current region, the dimension must not retain region history. A Type 1 change overwrites the region on the existing customer dimension row. Facts already referencing that row are therefore regrouped under East without rewriting their foreign keys. Validation should confirm that pre-change and post-change sales appear under East while the overall sales total remains unchanged.

## Question 12

Type: single\_choice
Knowledge point: Implement a star schema for a lakehouse or warehouse

A Fabric warehouse contains FactSales at one row per order line. The team is adding daily inventory snapshots that contain one row per product, location, and day. Several sales order lines can share the same product, location, and date. The model must retain order-line detail and produce accurate sales and inventory totals without duplicating either measure. Which modeling change should you make?

### Options

**A**

Merge each inventory snapshot into FactSales by product, location, and date, keeping the existing order-line grain.

**B**

Aggregate FactSales to product-location-day grain and append the sales and inventory records into one fact table.

**C**

Create a separate inventory fact table at product-location-day grain and connect both fact tables to conformed dimensions.

**D**

Store each day's inventory quantity as an attribute in the product-location dimension and overwrite the previous quantity.

Correct answer: C

### Explanation

Sales and inventory have different declared grains. Because multiple order lines can exist for one product-location-day, joining a daily snapshot directly to those lines would repeat the inventory quantity. Aggregating sales first would discard the required order-line detail. A separate inventory fact preserves one row per product-location-day while conformed dimensions allow sales and inventory to be analyzed consistently without a fact-to-fact row join.

## Question 13

Type: single\_choice
Knowledge point: Implement a star schema for a lakehouse or warehouse

A Fabric Warehouse contains a Type 2 customer dimension and a sales fact table at one row per order line. During the fact load, an order line for customer C7 has no dimension surrogate key whose effective-date range includes the transaction date. The order line must remain in the fact table so that financial totals reconcile, and it must not be assigned to an unrelated or historically invalid customer version. After loading, the team will reconcile fact row counts, sales amounts, and dimension-key coverage. Which action should the team take?

### Options

**A**

Reject the order line from the fact load, investigate the dimension mismatch, and validate only the loaded rows for matching customer keys.

**B**

Assign the most recent surrogate key for C7, load the order line, and confirm that the total sales amount is unchanged.

**C**

Assign a governed Unknown customer surrogate key, investigate the missing effective-dated dimension coverage, and reconcile the affected rows after remediation.

**D**

Generate a new customer surrogate key in the fact row, load the order line, and confirm that the new key is unique within the fact table.

Correct answer: C

### Explanation

The fact row must be retained for financial reconciliation, but no existing customer dimension version is valid on its transaction date. A governed Unknown member preserves referential integrity without falsely attributing the sale while the missing or incorrect dimension coverage is investigated. The team should then reconcile affected fact rows, amounts, and key coverage after correcting the dimension or source data.

## Question 14

Type: multiple\_choice
Knowledge point: Implement a star schema for a lakehouse or warehouse

A Fabric Warehouse contains FactSales at one row per order line and a Type 2 DimCustomer. A defect introduced repeated CustomerVersionKey values and overlapping effective-date windows for some CustomerIDs. Joining the tables now returns multiple dimension matches for affected sales and multiplies NetAmount totals. Historical sales must remain assigned to the customer region that was valid on each OrderDate. Which two actions should you take? (Choose 2.)

### Options

**A**

Rebuild DimCustomer so every CustomerVersionKey identifies exactly one row, and enforce nonoverlapping effective-date windows for each CustomerID.

**B**

Aggregate FactSales by CustomerID before joining it to DimCustomer, and reconcile only the resulting regional totals.

**C**

Replace every customer's historical dimension rows with one row containing the latest region, and update all facts to that row.

**D**

Assign each FactSales row to the single customer version effective on its OrderDate, and verify that no fact has zero or multiple valid version matches.

**E**

Remove repeated FactSales rows after the join until the joined row count equals the original fact-table row count.

Correct answer: A, D

### Explanation

The inflated totals result from a dimension-side cardinality defect, so the dimension must first be restored to one row per surrogate key with nonoverlapping version windows. Because the dimension retains Type 2 history, each fact must then reference the single surrogate-key version effective on its transaction date. These checks address both causes that determine correctness: dimension-version uniqueness and date-valid fact-key coverage.

## Question 15

Type: single\_choice
Knowledge point: Denormalize data

A Fabric Warehouse uses a Type 2 DimProduct table with one row per ProductVersionKey and a separate DimCategory table. Each product version belongs to exactly one category, and several product versions share each category. Most reports group sales by category, and the category join is a dominant part of their query paths. The team must reduce this join without changing sales totals or the unique product-version grain. Which design change and validation should the team use?

### Options

**A**

Merge the category attributes into DimProduct, then verify that ProductVersionKey remains unique and that sales totals reconcile with the current model.

**B**

Merge the product attributes into DimCategory, then verify that CategoryKey remains unique and that category totals reconcile with the current model.

**C**

Copy the category attributes into FactSales and aggregate it to category grain, then verify that CategoryKey is unique and that sales totals reconcile.

**D**

Create a product-category bridge between DimProduct and DimCategory, then verify that each product-category pair is unique and that sales totals reconcile.

Correct answer: A

### Explanation

Each product version has a single category, so merging category attributes into the product dimension can remove the separate category lookup without adding product-version rows. ProductVersionKey uniqueness checks the dimension grain, and reconciliation checks that sales totals remain unchanged. Reversing the merge conflicts with the shared category grain, aggregating the fact table loses product-version detail, and introducing a bridge adds a join to a single-valued association.

## Question 16

Type: single\_choice
Knowledge point: Denormalize data

A retail analytics model has a sales fact table at a grain of one row per sale. Sale 581 has a NetAmount of 120 and is associated with promotions P10, P22, and P35\. Expanding the promotions into the sales fact would create three rows, each containing a NetAmount of 120\. Reports must retain every promotion association, preserve an overall revenue total of 120 for the sale, and use a documented rule if revenue is attributed among promotions. Which modeling decision should you make?

### Options

**A**

Keep one row per sale in the sales fact and relate it to a sale-to-promotion bridge. If promotion-level revenue attribution is required, store allocated amounts under a documented rule that reconciles to each sale amount.

**B**

Expand the promotion values into separate sales-fact rows and store the full NetAmount on every expanded row.

**C**

Keep one row per sale but retain only the first promotion associated with each sale.

**D**

Expand the promotion values, group the resulting rows by promotion, and use the summed full NetAmount as promotion revenue.

Correct answer: A

### Explanation

The sales fact must retain its declared grain of one row per sale. Because a sale can have multiple promotions, expanding the promotions directly into the fact creates multiple copies of the same additive NetAmount and overstates revenue. A sale-to-promotion bridge preserves every association without changing the sales fact grain. If revenue must be attributed to individual promotions, a separate allocation fact can be used only with a documented allocation rule whose allocated amounts reconcile to the original sale amount.

## Question 17

Type: single\_choice
Knowledge point: Denormalize data

A Fabric Warehouse model has one product-dimension row per product, and each product belongs to exactly one category at a time. Each category is shared by several products. Category attributes, such as the category manager and classification, are maintained centrally and can change independently of product attributes. A proposed design would copy the category attributes into every applicable product row, but previous bulk updates have left conflicting values for products in the same category. Which modeling decision should you make?

### Options

**A**

Retain a separate category dimension and store the category key in the product dimension.

**B**

Flatten all category attributes into the product dimension and remove the category dimension.

**C**

Store the category attributes directly in the sales fact table for every order line.

**D**

Create a bridge between the sales fact table and the category dimension, bypassing the product dimension.

Correct answer: A

### Explanation

The category data has a different maintenance grain from the product data: one category serves multiple products, and its attributes can change without a product changing. Repeating those attributes in every product row would require coordinated updates and could produce inconsistent category values. Retaining a category dimension and storing its key in the product dimension preserves centralized maintenance while supporting the one-category-per-product relationship.

## Question 18

Type: single\_choice
Knowledge point: Denormalize data

A data engineer proposes copying the single category assigned to each product version into the product dimension to remove a join from frequently executed sales queries. Before approving the denormalized design, the team must determine whether it reduces query cost without changing reported sales results. Which validation should the data engineer perform?

### Options

**A**

Run the representative queries against both designs, compare their query cost, and reconcile the resulting sales totals.

**B**

Refresh both designs, compare their refresh duration, and confirm that the dimension has the expected row count.

**C**

Measure the storage used by both designs, compare their compression, and confirm that every product has a category value.

**D**

Open the same report with both designs, compare visual rendering time, and count products that have a blank category.

Correct answer: A

### Explanation

The proposed change is intended to improve analytic read performance, so it should be evaluated against the representative query workload. Because denormalization can alter row cardinality and duplicate measures, the evaluation must also confirm that sales totals remain unchanged. The flattened dimension should be accepted only if query cost improves without changing the business result.

## Question 19

Type: single\_choice
Knowledge point: Aggregate data

A data analyst is preparing a monthly sales aggregate in Power Query. All records shown are from the same month:

| Region | Product | Amount |
| --- | --- | --- |
| West | A | 20 |
| West | A | 30 |
| West | B | 7 |
| East | A | 5 |

The output must contain one row for each Region–Product combination, report revenue rather than transaction volume, and preserve the source Amount total of 62\. Which Group By configuration and resulting validation meet these requirements?

### Options

**A**

Group by Region and Product, and sum Amount. Confirm results of West–A = 50, West–B = 7, and East–A = 5, with an aggregate total of 62.

**B**

Group by Region, and sum Amount. Confirm results of West = 57 and East = 5, with an aggregate total of 62.

**C**

Group by Region and Product, and count rows. Confirm results of West–A = 2, West–B = 1, and East–A = 1, with a transaction total of 4.

**D**

Group by Product, and sum Amount. Confirm results of A = 55 and B = 7, with an aggregate total of 62.

Correct answer: A

### Explanation

Region and Product must both be grouping keys because the required output grain is one row per Region–Product combination. Revenue is additive, so Amount must be summed rather than counted. The resulting values are 50, 7, and 5, and their total reconciles to the source total of 62.

## Question 20

Type: single\_choice
Knowledge point: Aggregate data

A Power Query table contains the following sales records:

| SaleID | Region | CustomerID |
| --- | --- | --- |
| 1001 | East | C101 |
| 1002 | East | C101 |
| 1003 | East | C102 |
| 1004 | West | C201 |
| 1005 | West | C201 |

A data analyst must create a summary with exactly one row for each region. The value must represent the number of sales records, not the number of unique customers, so separate records belonging to the same customer must remain counted. Which Power Query Group By configuration and validation result should the analyst use?

### Options

**A**

Group by Region, apply Count rows, and confirm that the results are East = 3 and West = 2.

**B**

Group by Region, apply Count distinct values to CustomerID, and confirm that the results are East = 2 and West = 1.

**C**

Group by Region and CustomerID, apply Count rows, and confirm separate counts for each region-customer combination.

**D**

Group by CustomerID, apply Count rows, and confirm that each customer's records are counted across all regions.

Correct answer: A

### Explanation

The requested output has one row per region, so Region must be the only grouping column. Because every sales record must be counted, including multiple records for the same customer, the aggregation must be Count rows. East therefore has 3 records and West has 2; using a distinct customer count or adding CustomerID to the grouping would answer a different question.

## Question 21

Type: single\_choice
Knowledge point: Aggregate data

You are preparing a Sales query in Power Query with the columns Region, SaleID, CustomerID, and Amount. The required output has one row per Region and a Details column containing that region's complete sale records for later inspection. Every input row, including repeated rows, must remain available with all its original columns. In Group By, you select Region as the grouping column and Details as the new column name. Which operation should you select?

### Options

**A**

Count rows

**B**

Count distinct rows

**C**

All rows

**D**

Max on Amount

Correct answer: C

### Explanation

Grouping by Region creates one outer row per region. All rows stores each region's complete input records in a nested table in Details, preserving their original columns and repeated rows. Count rows preserves the number of records but returns a scalar, so the records themselves would no longer be available for inspection.

## Question 22

Type: single\_choice
Knowledge point: Aggregate data

You are preparing sales data in a Fabric Dataflow Gen2 by using Power Query. The input is shown below. Each SaleID identifies a separate original sale, and Amount has a numeric data type.

| SaleID | Region | Amount |
| --- | --- | --- |
| S101 | North | 20 |
| S102 | North | 20 |
| S103 | North | 80 |
| S104 | South | 30 |
| S105 | South | 90 |

The output must contain one row per Region with the arithmetic mean sale amount for that region. Which transformation should you apply?

### Options

**A**

Group by Region and use the Median operation on Amount.

**B**

Group by Region and use the Average operation on Amount.

**C**

Remove duplicates using Region and Amount, then group by Region and use the Average operation on Amount.

**D**

Group by Region and Amount and use the Average operation on Amount.

Correct answer: B

### Explanation

Grouping by Region and applying Average to Amount produces the required regional grain and arithmetic mean. North's mean is (20 + 20 + 80) / 3 = 40, and South's mean is (30 + 90) / 2 = 60\. The two North sales with an Amount of 20 are separate observations. Removing repeated Region–Amount combinations would change North's mean to 50.

## Question 23

Type: single\_choice
Knowledge point: Merge or join data

A data engineer is preparing these tables in Dataflow Gen2\. Orders contains (OrderID, CustomerID): (101, C1), (102, C2), and (103, C3). Customers contains unique CustomerID values C1, C2, and C4 and a CustomerName column populated for every customer. The transformed result must contain exactly one row per order and no customer-only rows, add customer details when a match exists, and make orders without a customer match identifiable from the added lookup fields. Which merge and validation result satisfy the requirements?

### Options

**A**

Use a left outer merge from Orders to Customers, expand CustomerName, and verify that three order rows remain and order 103 has a null CustomerName.

**B**

Use an inner merge from Orders to Customers, expand CustomerName, and verify that two matched order rows remain with no null CustomerName values.

**C**

Use a left anti merge from Orders to Customers and verify that only order 103 remains.

**D**

Use a full outer merge from Orders to Customers, expand CustomerName, and verify that four rows remain, including a customer-only row for C4.

Correct answer: A

### Explanation

A left outer merge retains every row from Orders while adding matching fields from Customers. Because CustomerID values are unique in Customers, expansion preserves exactly one row per order. CustomerName is populated for every customer, so the null expanded CustomerName for order 103 identifies its missing customer match. A full outer merge would additionally introduce a customer-only row, which the required output excludes.

## Question 24

Type: single\_choice
Knowledge point: Merge or join data

You are preparing an order data-quality exception set in Power Query. Orders contains (OrderID, CustomerID): (101, C01), (102, C02), (103, C03), and (104, null). Customers contains CustomerID values C01, C02, and C04\. The result must contain only orders whose CustomerID has no matching customer, including a missing CustomerID. It must exclude both matched orders and customer records that have no order. Which merge join kind should you use?

### Options

**A**

Use an inner join with Orders as the left table.

**B**

Use a left anti join with Orders as the left table.

**C**

Use a left outer join with Orders as the left table.

**D**

Use a right anti join with Orders as the left table.

Correct answer: B

### Explanation

A left anti join returns rows from the left table only when no matching row exists in the right table. With Orders as the left table and Customers as the right table, the result contains orders 103 and 104, excludes matched orders 101 and 102, and does not include customer-only row C04.

## Question 25

Type: single\_choice
Knowledge point: Merge or join data

A data analyst merges an Orders query with a Customers query in Power Query. Orders contains customer codes ` c-101`, `C-102`, and `C-999`; Customers contains `C-101`, `c-102 `, and `C-777`. The customer-code columns currently use different data types and contain inconsistent case and whitespace. The result must include an order only when its customer code exists in Customers. It must exclude both orders without a matching customer and customers without a matching order. Which merge configuration should the analyst use?

### Options

**A**

Convert both key columns to text, trim whitespace, standardize case, and perform an inner join from Orders to Customers.

**B**

Convert both key columns to text, trim whitespace, standardize case, and perform a left outer join from Orders to Customers.

**C**

Convert both key columns to text, trim whitespace, standardize case, and perform a left anti join from Orders to Customers.

**D**

Convert both key columns to text, trim whitespace, standardize case, and perform a full outer join between Orders and Customers.

Correct answer: A

### Explanation

After both key columns are converted to text and normalized consistently, an inner join retains only rows whose keys occur in both tables. It returns orders C-101 and C-102 while excluding order C-999, which has no customer match, and customer C-777, which has no order.

## Question 26

Type: single\_choice
Knowledge point: Merge or join data

A Dataflow Gen2 query contains one row per order and must retain that grain for revenue reporting. A customer lookup is intended to contain one current row per CustomerID. After a left outer merge, the order query still contains nested customer tables; after those tables are expanded, the row count increases from 3 to 4 and total revenue increases from $300 to $380\. What should you do next?

### Options

**A**

Change to an inner merge, expand the customer fields, compare the resulting row count and revenue, and accept the totals if unmatched orders are removed.

**B**

Count rows in each nested customer table, investigate counts above one, and restore one approved current row per CustomerID before expanding.

**C**

Expand every customer match, group the result by OrderID, sum revenue by order, and accept the total after the duplicate rows are collapsed.

**D**

Enable fuzzy matching for CustomerID, keep the highest-scoring customer row for each order, expand the result, and accept the revised row count.

Correct answer: B

### Explanation

The lookup is expected to contribute at most one customer row to each order, but the increased row count and revenue after expansion show that at least one customer key has multiple matches. Count the rows in each nested customer table before expansion, investigate keys whose count exceeds one, and apply the approved current-row rule. Then expand and verify that the output still has one row per order and that revenue reconciles to the original total.

## Question 27

Type: single\_choice
Knowledge point: Merge or join data

A data engineer creates a left outer merge in a Dataflow Gen2 to add tax rates to an Orders query. Rates contains exactly one row for each valid RegionCode and ProductClass pair. The merge keys are configured as follows:

Orders:

1. RegionCode — Text
2. ProductClass — Whole number

Rates:

1. ProductClass — Text
2. RegionCode — Text

Source profiling confirms that corresponding composite-key pairs exist, but the merge preview shows empty nested Rates tables for every order. The solution must retain every Orders row and use exact business-key matching. After any correction, the engineer will reconcile matched and unmatched order counts and confirm that NetAmount totals remain equal to the pre-merge baseline.

Which change should the engineer make before performing that reconciliation?

### Options

**A**

Reselect the Rates keys as RegionCode first and ProductClass second, and convert Rates.ProductClass to a whole number.

**B**

Convert all four selected key columns to text, but keep the existing key-selection order.

**C**

Reselect the Rates keys as RegionCode first and ProductClass second, but retain the current column data types.

**D**

Convert the selected keys to text, keep their current order, and enable fuzzy matching.

Correct answer: A

### Explanation

Power Query compares multicolumn merge keys by their selection positions, so each position must represent the same field on both sides and use compatible data types. The current merge compares Orders.RegionCode with Rates.ProductClass and Orders.ProductClass with Rates.RegionCode. Reselecting the Rates keys in the corresponding order and converting Rates.ProductClass to a whole number corrects both defects. The left outer merge can then be rerun, and its matched and unmatched orders and NetAmount totals can be reconciled against the stated baselines.

## Question 28

Type: single\_choice
Knowledge point: Identify and resolve duplicate data, missing data, or null values

A data engineer is preparing a customer dimension in Power Query. Source profiling returns the following records:

| CustomerID | CustomerName |
| --- | --- |
| c042 | Alpine Sports |
| C042 | Alpine Sports |
| B117 | City Power |

The business treats CustomerID values as case-insensitive, and the dimension must contain only one governed customer key for each business identity. Which transformation should the data engineer apply?

### Options

**A**

Convert CustomerID values to a consistent case, detect duplicates using the normalized CustomerID, and retain one record for each normalized key.

**B**

Detect duplicates using the original CustomerID values, remove any detected duplicates, and then convert the remaining IDs to a consistent case.

**C**

Use fuzzy matching on CustomerID, assign a separate key to every source record, and flag high-similarity records for later review.

**D**

Retain both case variants with separate dimension keys and apply case-insensitive matching only when reports query the dimension.

Correct answer: A

### Explanation

Duplicate detection must use the business's case-insensitive key definition. Normalizing CustomerID before checking for duplicates makes c042 and C042 the same comparison value, after which one record can be retained as the governed key. Detecting duplicates before normalization can miss the pair because Power Query text comparisons are case-sensitive.

## Question 29

Type: single\_choice
Knowledge point: Identify and resolve duplicate data, missing data, or null values

You are preparing customer events in Power Query for a Fabric Dataflow Gen2\. The complete input is shown below, and the four displayed columns are its only columns.

| CustomerID | EventTime | EventType | Amount |
| --- | --- | --- | --- |
| C14 | 2026-06-03 09:00 | Sale | 80 |
| C14 | 2026-06-03 09:00 | Sale | 80 |
| C14 | 2026-06-03 09:00 | Return | 80 |
| C14 | 2026-06-03 09:00 | Sale | 120 |
| C14 | 2026-06-03 10:00 | Sale | 80 |
| C28 | 2026-06-03 11:00 | Sale | 40 |

The source delivery replayed some records. A customer can have separate valid events at the same timestamp, including events with different types or amounts. You need one copy of each complete event record, with its original values retained.

Which transformation should you apply?

### Options

**A**

Select CustomerID, then apply Remove duplicates.

**B**

Select CustomerID and EventTime, then apply Remove duplicates.

**C**

Select CustomerID, EventTime, EventType, and Amount, then apply Remove duplicates.

**D**

Select CustomerID, EventTime, EventType, and Amount, then apply Keep duplicates.

Correct answer: C

### Explanation

Power Query compares the selected columns when removing duplicates. Comparing all four columns removes the repeated copy of the sale for 80 at 09:00 while retaining the other events, producing five complete records. CustomerID and EventTime alone are insufficient because valid events share those values but differ in EventType or Amount. No ordered survivor selection is needed because the repeated copies have identical values throughout.

## Question 30

Type: single\_choice
Knowledge point: Identify and resolve duplicate data, missing data, or null values

A Dataflow Gen2 prepares customer records for a dimension table. CustomerKey is mandatory, placeholder keys are prohibited, and only the source system can supply or correct a customer identifier. During validation, one row has a null CustomerKey while its other fields are populated. Which action should you take?

### Options

**A**

Generate a new CustomerKey for the row and load it with the valid records.

**B**

Fill the null CustomerKey with the key from the preceding row and load it.

**C**

Group the records by CustomerKey and retain the newest record from each group.

**D**

Route the row to a rejected-records output for source repair and exclude it from the dimension load.

Correct answer: D

### Explanation

Because CustomerKey is mandatory and no approved rule can derive or substitute its value, the row cannot be assigned reliably to a customer. Isolating it preserves the valid load while allowing the source-owned identifier to be repaired. Generating or propagating a key would create an unsupported customer association, while retaining the newest record addresses duplicates rather than a missing key.

## Question 31

Type: single\_choice
Knowledge point: Identify and resolve duplicate data, missing data, or null values

A Dataflow Gen2 prepares monthly supplier rebate transactions. The source contract defines a null RebateAmount as “the supplier did not provide an amount,” while zero means “the supplier reported that no rebate was due.” Finance must preserve this distinction unless an approved fill rule documents another treatment. No fill rule has been approved. Finance also requires the monthly rebate totals and the number of supplied amounts to remain explainable after transformation. What should the data engineer do?

### Options

**A**

Replace every null RebateAmount with zero, then compare the monthly sums and total row counts.

**B**

Retain the null RebateAmount values, then reconcile monthly sums and compare total row counts with non-null RebateAmount counts.

**C**

Remove every row that has a null RebateAmount, then compare the remaining monthly averages and row counts.

**D**

Fill each null RebateAmount from the preceding supplier row, then compare monthly sums and distinct supplier counts.

Correct answer: B

### Explanation

A null RebateAmount represents an unreported value, while zero represents a reported absence of a rebate. Because no fill rule has been approved, retaining the null preserves that business distinction. Comparing monthly sums, total row counts, and non-null amount counts before and after the transformation verifies both aggregate accuracy and missing-value behavior.

## Question 32

Type: single\_choice
Knowledge point: Identify and resolve duplicate data, missing data, or null values

A data engineer profiles a customer key column in a Dataflow Gen2 query. The column contains nulls, empty or whitespace-only strings, and populated values such as `ab12`, `AB12`, and `AB12`. The source owner states that null means the key was not supplied, while a blank string means the source application submitted an invalid key. The approved business key rule treats letter case and surrounding spaces as insignificant only for populated keys. The quality report must preserve separate null and blank counts, and the prepared data must be checked for duplicate valid keys after applying that rule. Which preparation decision should the engineer make?

### Options

**A**

Profile nulls and blank or whitespace-only strings separately, then trim and uppercase only populated keys before checking uniqueness.

**B**

Replace nulls and blank or whitespace-only strings with an Unknown key, then uppercase all values before profiling.

**C**

Profile nulls and blank or whitespace-only strings separately, but retain every populated key exactly as received before checking uniqueness.

**D**

Convert blank or whitespace-only strings to null, remove duplicate raw values, and then trim and uppercase the surviving keys.

Correct answer: A

### Explanation

Nulls and blank or whitespace-only strings must first be measured as separate data-quality conditions because they have different source meanings and remediation paths. Valid nonblank keys should be trimmed and converted to uppercase because the declared business key rule treats surrounding spaces and letter case as insignificant. After that rule-based normalization, the team can test key uniqueness while keeping null and blank counts available for reconciliation.

## Question 33

Type: multiple\_choice
Knowledge point: Identify and resolve duplicate data, missing data, or null values

You maintain a Dataflow Gen2 query that must retain one record for each CustomerID. The retained record must have the latest UpdatedAt value. When two records have the same UpdatedAt value, the record with the highest SourceRowID must be retained; SourceRowID is unique within each CustomerID. The current query sorts by UpdatedAt and SourceRowID in descending order and then applies Table.Distinct to CustomerID. Across refreshes, the retained record varies because the earlier sort does not guarantee which duplicate Table.Distinct preserves. Which two changes should you make? (Choose 2.)

### Options

**A**

Group the rows by CustomerID and use the All Rows operation to preserve a nested table of candidates for each customer.

**B**

Within each customer's nested table, order by SourceRowID descending and UpdatedAt descending, and then select the first row.

**C**

Group by CustomerID to calculate the maximum UpdatedAt value, and then join to the source using only CustomerID and UpdatedAt.

**D**

Within each customer's nested table, order by UpdatedAt descending and SourceRowID descending, and then select the first row.

**E**

Apply Table.Distinct using every column so that only completely identical rows are removed.

Correct answer: A, D

### Explanation

In the current unbuffered query, the preceding sort does not guarantee which duplicate Table.Distinct retains. Grouping by CustomerID with All Rows preserves each customer's candidates. Ordering each nested table by UpdatedAt descending and then SourceRowID descending establishes the required rank: the newest record wins, and the highest unique row identifier resolves equal timestamps. Selecting the first row therefore produces one deterministic winner per customer. Validate both customer-key uniqueness and the selected ranking pair.

## Question 34

Type: single\_choice
Knowledge point: Convert column data types

A data analyst loads a CSV file into a Dataflow Gen2\. The source system uses a locale in which a comma is the decimal separator, and the Amount column arrives as Text with values such as "1,25" and "2,50". The destination requires a Decimal Number column. After a full refresh, the two values must total 3.75, and any conversion failures must remain visible for investigation instead of being silently discarded. Which transformation approach should the analyst use?

### Options

**A**

Change Amount to Decimal Number by using the source locale, inspect conversion errors, and then aggregate the converted column.

**B**

Change Amount to Decimal Number by using the authoring environment's default locale, replace conversion errors with null, and then aggregate the column.

**C**

Keep Amount as Text, apply a currency display format, and then aggregate the formatted column.

**D**

Remove the commas from Amount, convert the remaining text to a whole number, and then aggregate the column.

Correct answer: A

### Explanation

The Amount values must be converted from text by using the locale that recognizes a comma as the decimal separator. This produces decimal values of 1.25 and 2.50, which sum to 3.75\. Inspecting conversion errors across the full refresh confirms that malformed values have not been silently excluded.

## Question 35

Type: single\_choice
Knowledge point: Convert column data types

A data engineer is preparing an orders query in Dataflow Gen2\. The OrderTimestamp column is typed as Text and contains en-US values such as "07/31/2026 11:59:59 PM" and "08/01/2026 12:00:00 AM". The query must retain every order in July 2026, exclude the midnight value at the start of August, and remain reliable for other timestamps in the full refresh. Which transformation should the engineer apply?

### Options

**A**

Keep OrderTimestamp as Text and compare it with en-US text strings for the start and end of July.

**B**

Convert OrderTimestamp to Date and filter from July 1 through August 1 by using inclusive boundaries.

**C**

Convert OrderTimestamp to Date/Time by using the en-US locale, and then filter for values greater than or equal to July 1 and less than August 1.

**D**

Apply an ISO-style display format, leave OrderTimestamp as Text, and compare it with the July boundaries.

Correct answer: C

### Explanation

OrderTimestamp must be converted from Text to Date/Time before temporal comparisons are applied. The en-US locale interprets the source month, day, and time correctly, and a half-open interval includes all July timestamps while excluding the August 1 boundary.

## Question 36

Type: single\_choice
Knowledge point: Convert column data types

A Dataflow Gen2 query imports an OrderID text column that must be converted to a whole number for numeric comparisons. The preview shows 200 valid values, and the generated type-conversion step succeeds in the editor. During a full refresh, a later row containing `N/A` causes a conversion error. What should you do?

### Options

**A**

Change OrderID to the Any data type and keep every source row unchanged.

**B**

Inspect the conversion-error rows from the full refresh, then repair the malformed values or isolate those records according to a defined data-quality rule.

**C**

Apply a whole-number display format to OrderID without changing the existing transformation.

**D**

Refresh the preview and validate only the rows that appear there before publishing the dataflow.

Correct answer: B

### Explanation

The preview contains only valid values, but the full refresh processes later rows and exposes a malformed value that cannot be converted to a whole number. Because the column must remain numeric, inspect the conversion-error rows across the full refresh and repair the source value or isolate the invalid record under an explicit data-quality rule.

## Question 37

Type: single\_choice
Knowledge point: Convert column data types

You are preparing invoice data with Power Query for a Fabric analytics solution. Amount has the Text data type and contains values such as "125.50" and "40.25". All Amount values are valid numeric strings in the query's locale. The report requires currency display formatting. A colleague proposes keeping Amount as Text in Power Query and relying only on currency display formatting in the report to enable numeric summation. The prepared Amount column must support numeric summation and retain fractional amounts. Which action should you choose?

### Options

**A**

Keep Amount as Text in Power Query and rely on the proposed currency display formatting.

**B**

Change Amount to Decimal number in Power Query.

**C**

Change Amount to Whole number in Power Query.

**D**

Change Amount to Any in Power Query.

Correct answer: B

### Explanation

Currency display formatting controls presentation; it does not convert text values into numeric values. Changing Amount to Decimal number in Power Query converts the locale-compatible numeric strings to a numeric type that supports summation and fractional amounts. Currency display formatting is a separate report requirement.

## Question 38

Type: single\_choice
Knowledge point: Filter data

You are preparing regional sales data in a Fabric warehouse. Regions contains North, South, and West, each with a unique RegionID. North has both Completed and Cancelled orders, South has only Cancelled orders, and West has no orders. Every order has a non-null OrderID and Amount.

The result must include every region, and only Completed orders may contribute to CompletedTotal. Use the supplied LEFT JOIN and total expression; COALESCE returns 0 when SUM has no contributing amounts.

```sql
SELECT
    r.RegionID,
    r.RegionName,
    COALESCE(SUM(o.Amount), 0) AS CompletedTotal
FROM Regions AS r
LEFT JOIN Orders AS o
    ON r.RegionID = o.RegionID
    /* Insert one fragment here. */
GROUP BY r.RegionID, r.RegionName;
```

Which fragment should replace the comment?

### Options

**A**

WHERE o.Status = 'Completed'

**B**

AND o.Status = 'Completed'

**C**

WHERE o.Status = 'Completed' OR o.OrderID IS NULL

**D**

AND o.Status = 'Completed' WHERE o.Status = 'Completed'

Correct answer: B

### Explanation

Apply the Completed predicate to the ON condition so only Completed orders match each region. The LEFT JOIN still retains regions without qualifying orders, and the supplied total expression returns 0 for them. Filtering the joined result for Completed status removes those retained rows. Adding an OrderID IS NULL exception to that WHERE filter preserves West, but loses South: South's cancelled orders matched the region key, so the join did not produce an unmatched row for South. These predicate-placement semantics are documented in [Microsoft's FROM and JOIN reference](https://learn.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql?view=sql-server-ver17).

## Question 39

Type: single\_choice
Knowledge point: Filter data

You are preparing a regional sales table in Dataflow Gen2\. The query contains Region and numeric Amount columns, with one row per order. An existing step retains only orders whose Status is Completed. The prepared table must contain one row per qualifying region and its completed sales total. A region qualifies when that total is greater than 100,000\. Which transformation sequence should you add?

### Options

**A**

Filter Amount to values greater than 100,000, then group by Region and sum Amount.

**B**

Group by Region and sum Amount as TotalSales, then filter TotalSales to values greater than 100,000.

**C**

Group by Region and calculate the maximum Amount as LargestSale, then filter LargestSale to values greater than 100,000.

**D**

Group by Region and calculate the average Amount as AverageSale, then filter AverageSale to values greater than 100,000.

Correct answer: B

### Explanation

Qualification depends on each region's completed sales total. Group By must first sum the retained order amounts by Region, after which a filter can retain totals greater than 100,000\. Filtering individual amounts first can exclude orders that collectively make a region qualify. For example, two completed orders of 60,000 produce a qualifying total of 120,000, although neither order individually exceeds the threshold.

## Question 40

Type: single\_choice
Knowledge point: Filter data

A data analyst is preparing dbo.Orders for a data-quality review. The Status column contains the following values:

| OrderID | Status |
| --- | --- |
| 101 | Completed |
| 102 | NULL |
| 103 | '' (empty string) |
| 104 | Cancelled |

The review must return only the row whose Status is SQL NULL. Populated statuses and the empty string must be excluded because blank text is reviewed separately. Which WHERE clause should the analyst use?

### Options

**A**

WHERE Status IS NULL

**B**

WHERE Status = NULL

**C**

WHERE Status = ''

**D**

WHERE Status IS NOT NULL

Correct answer: A

### Explanation

The required row has a SQL NULL in Status, while rows containing populated statuses or an empty string must be excluded. SQL tests for a null value with IS NULL; an equality comparison to NULL does not evaluate as true.

## Question 41

Type: single\_choice
Knowledge point: Filter data

A data engineer runs two adjacent calendar-day loads. The first window starts at 00:00 on June 10 and ends at 00:00 on June 11; the next window begins at that same June 11 midnight. Every event must be loaded once, and an event timestamped exactly at midnight must belong to the new calendar day. The engineer will validate the filter by testing an event timestamped June 11 at 00:00 against both adjacent runs. Which filter design should the engineer use for both runs to meet the requirements?

### Options

**A**

Use EventTime >= @StartTime AND EventTime <= @EndTime.

**B**

Use EventTime >= @StartTime AND EventTime < @EndTime.

**C**

Use EventTime > @StartTime AND EventTime <= @EndTime.

**D**

Use EventTime > @StartTime AND EventTime < @EndTime.

Correct answer: B

### Explanation

Each daily window must include its start timestamp and exclude its end timestamp. With EventTime >= @StartTime AND EventTime < @EndTime, the June 11 midnight event fails the June 10 window's upper-bound comparison and satisfies the June 11 window's lower-bound comparison. The boundary test therefore returns the event only in the new calendar day's run, meeting both the once-only and calendar-day requirements.

