Interview practice question
Facts with missing dimension keys
Data Engineering · dbt · Intermediate
The relationships test fails because some orders have customer_ids not yet in dim_customers due to late customer data. How do you handle it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Late-arriving dimensions are common, the fact arrives before the dimension.
- Map unknown keys to a default "unknown" member row in the dimension.
- Or create inferred members that are filled later.
- Reprocess fact keys once the dimension arrives.
- Set the test to warn with a threshold or limit it to older data.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.