SpinTheMic
Pro

Interview practice question

Tracking customer tier history

Data Engineering · Medallion · Intermediate

The business wants to analyze sales by the customer's tier at the time of each sale, but the source only stores the current tier. How do you design it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Capture changes over time using CDC or daily snapshots into bronze.
  • Build an SCD2 customer table in silver.
  • Gold fact joins to the tier valid at the sale date.
  • History only starts from when capture begins.
  • Validate one current row per customer.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics