DP-700 · Question #91
You have a Fabric warehouse named DW1 that contains a Type 2 slowly changing dimension (SCD) dimension table named DimCustomer. DimCustomer contains 100 columns and 20 million rows. The columns are…
The correct answer is A. a hash function to compare the attributes in the source table. To efficiently identify changes in a large Type 2 SCD dimension table with many columns, using a hash function on the relevant attributes in the source data is the most resource-efficient method.
Question
Options
- Aa hash function to compare the attributes in the source table.
- Ba direct attributes comparison across the attributes in the DimCustomer table.
- Ca direct attributes comparison for the attributes in the source table.
How the community answered
(38 responses)- A71% (27)
- B11% (4)
- C18% (7)
Why each option
To efficiently identify changes in a large Type 2 SCD dimension table with many columns, using a hash function on the relevant attributes in the source data is the most resource-efficient method.
Calculating a hash value across all relevant attributes in the source table allows for a single, fast comparison between the source hash and the target hash to detect changes, which significantly minimizes resource consumption compared to performing direct attribute-by-attribute comparisons across many columns, especially for wide tables.
A direct attributes comparison across 100 columns in the `DimCustomer` table for each row would involve many individual column comparisons, leading to high resource consumption and slow processing, especially with 20 million rows.
A direct attributes comparison for the attributes in the source table, while part of the change detection process, does not fully address the efficiency of comparing against the target table's existing records for identifying changes.
Concept tested: Efficient SCD change detection with hashing
Source: https://learn.microsoft.com/en-us/azure/architecture/data-analytics-end-to-end/dimension-tables#slowly-changing-dimensions
Topics
Community Discussion
No community discussion yet for this question.