Interview practice question
Customer history from CDC with SCD2
Data Engineering · Databricks · Intermediate
You need a customer dimension with full history from a CDC feed, handling out-of-order events. How would you build it on Databricks?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Land CDC events in bronze.
- Use AUTO CDC (APPLY CHANGES) with stored_as_scd_type 2 in a declarative pipeline.
- Set keys and sequence_by to handle ordering.
- Or implement MERGE-based SCD2 manually in foreachBatch.
- Validate one current row per key.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.