Interview practice question
CDC source with hard deletes
Data Engineering · Medallion · Intermediate
A source database sends CDC events including deletes. Downstream reports must not show deleted records, but auditors want to know what was deleted. How do you design it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Bronze keeps all CDC events, including deletes.
- Silver current table either removes deleted rows or marks them with is_deleted.
- Silver history or SCD2 table keeps the deleted record's final version with a deleted timestamp.
- Gold filters out deleted records.
- Auditors use bronze or silver history.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.