nerdexam
Microsoft

DP-700 · Question #89

You are implementing a medallion architecture in a Fabric lakehouse. You plan to create a dimension table that will contain the following columns: ID CustomerCode CustomerName CustomerAddress…

The correct answer is D. Type 3. To enable analysis of historical sales data by customer location while maintaining a limited history (typically current and one previous state) within the same record, a Type 3 Slowly Changing Dimension (SCD) would be utilized.

Design and implement data modeling

Question

You are implementing a medallion architecture in a Fabric lakehouse. You plan to create a dimension table that will contain the following columns:
  • ID
  • CustomerCode
  • CustomerName
  • CustomerAddress
  • CustomerLocation
  • ValidFrom
  • ValidTo
You need to ensure that the table supports the analysis of historical sales data by customer location at the time of each sale. Which type of slowly changing dimension (SCD) should you use?

Options

  • AType 2
  • BType 0
  • CType 1
  • DType 3

How the community answered

(36 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    6% (2)
  • D
    81% (29)

Why each option

To enable analysis of historical sales data by customer location while maintaining a limited history (typically current and one previous state) within the same record, a Type 3 Slowly Changing Dimension (SCD) would be utilized.

AType 2

Type 2 SCDs track full history by adding new rows with `ValidFrom` and `ValidTo` dates for each change, which is the standard approach for full historical context and typically suggested by the presence of such columns.

BType 0

Type 0 SCDs mean the dimension attributes never change or changes are not tracked, which does not meet the requirement of analyzing historical locations.

CType 1

Type 1 SCDs overwrite existing attribute values, meaning historical values are lost, making it unsuitable for analyzing historical sales by previous customer locations.

DType 3Correct

Type 3 SCDs allow tracking a limited history, usually the current and one previous value for a specific attribute like `CustomerLocation`, by adding new columns to the dimension table (e.g., `CurrentCustomerLocation`, `PreviousCustomerLocation`). This design enables direct comparison of a customer's location at the time of sale with their immediately preceding location, which can be useful for certain historical analyses, even if `ValidFrom` and `ValidTo` columns are also present for broader record validity.

Concept tested: Slowly Changing Dimension Type 3

Source: https://learn.microsoft.com/en-us/azure/architecture/example-scenario/data/dimension-modeling#slowly-changing-dimensions

Topics

#Slowly Changing Dimensions (SCD)#Data Modeling#Dimension Tables#Lakehouse Architecture

Community Discussion

No community discussion yet for this question.

Full DP-700 Practice