Interview practice question
Applying CDC from Kafka with Spark
Data Engineering · Spark · Experienced
Design a pipeline that consumes database CDC events from Kafka and keeps a Delta table in sync, including updates and deletes.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Stream CDC events into a bronze table as is.
- Use foreachBatch to MERGE into the silver table.
- Deduplicate per batch to the latest change per key using LSN or sequence.
- Handle deletes and out-of-order events by comparing sequence numbers.
- Or use declarative pipelines with AUTO CDC / APPLY CHANGES.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.