SpinTheMic
Pro

Interview practice question

Source system reused IDs

Data Engineering · Data Warehousing · Intermediate

A source system reset its customer ID sequence after a migration, so new customers reuse old IDs. How do you handle this in the warehouse?

What a strong answer covers

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

  • Natural keys are no longer unique over time.
  • Use warehouse surrogate keys instead of source IDs as primary keys.
  • Combine source ID with source system or migration epoch.
  • Fix existing collisions and relationships.
  • Add uniqueness tests on business keys including the new qualifier.
Practise this topic

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

See all topics