DP-600 · Question #38
You need to create a data loading pattern for a Type 1 slowly changing dimension (SCD). Which two actions should you include in the process? Each correct answer presents part of the solution. NOTE: Ea
The correct answer is A. Update rows when the non-key attributes have changed. D. Insert new records when the natural key is a new value in the table.. A Type 1 SCD strategy overwrites changed attribute values with no history retention. The process requires exactly two actions: (A) updating existing rows when non-key attributes have changed - this is the 'overwrite' behavior defining Type 1; and (D) inserting new records when a
Question
You need to create a data loading pattern for a Type 1 slowly changing dimension (SCD). Which two actions should you include in the process? Each correct answer presents part of the solution. NOTE: Each correct answer is worth one point.
Options
- AUpdate rows when the non-key attributes have changed.
- BInsert new rows when the natural key exists in the dimension table, and the non-key attribute
- CUpdate the effective end date of rows when the non-key attribute values have changed.
- DInsert new records when the natural key is a new value in the table.
How the community answered
(17 responses)- A88% (15)
- B6% (1)
- C6% (1)
Explanation
A Type 1 SCD strategy overwrites changed attribute values with no history retention. The process requires exactly two actions: (A) updating existing rows when non-key attributes have changed - this is the 'overwrite' behavior defining Type 1; and (D) inserting new records when a natural key value is new to the dimension table - this handles genuinely new dimension members. Option B describes Type 2 behavior (inserting a new row when a key already exists to preserve history). Option C (updating effective end dates) is also Type 2 behavior used to close out superseded historical records. Neither B nor C belongs in a Type 1 pattern.
Topics
Community Discussion
No community discussion yet for this question.