โ† All Data Engineering Flashcard Decks

Slowly Changing Dimensions (SCDs) Flashcards

7 cards from real Data Engineering practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Slowly Changing Dimensions (SCDs) flashcards as text
  1. In a Type 2 SCD, what is the primary purpose of a surrogate key on the dimension table?

    Answer: To uniquely identify each historical version of a dimension record

    Surrogate keys let multiple rows share one natural key while each version remains uniquely identifiable.

  2. A Type 1 SCD update is applied to a customer's address. What happens to the prior value?

    Answer: It is overwritten and lost

    Type 1 overwrites the existing value, retaining no history of the previous state.

  3. Which columns are most commonly added to support a Type 2 dimension?

    Answer: effective_date, end_date, and is_current flag

    Validity dates plus a current-record indicator are the standard Type 2 tracking columns.

  4. What does a Type 3 SCD typically store to track change?

    Answer: A previous-value column alongside the current value

    Type 3 adds a column (e.g., previous_address) to hold one prior value, allowing limited history.

  5. Why are surrogate keys preferred over natural keys when joining facts to a Type 2 dimension?

    Answer: They point a fact to the correct dimension version active at event time

    The surrogate key resolves to the specific historical row valid when the fact occurred.

  6. A business wants to keep full history but only queries the current value 95% of the time. Which design helps?

    Answer: Type 2 with an is_current flag for fast current-state filtering

    The current flag lets common queries filter to active rows while full history remains available.

  7. What is a Type 0 SCD?

    Answer: An attribute that never changes once written (retain original)

    Type 0 preserves the original value permanently and ignores later source changes.