Skip to content
RED SAGSkills
easyData Engineer interview question

What is change data capture (CDC), and why do data teams use it?

What the interviewer wants to hear

  • CDC captures inserts, updates and deletes from a source database
  • Log-based CDC reads the transaction log, such as the binlog or WAL
  • It avoids heavy full extracts and catches hard deletes
  • Changes usually flow through Kafka into the lake or warehouse
  • Target applies changes with MERGE, keeping order per key

Model answer

Change data capture means capturing every change made to a source database, inserts, updates and deletes, and streaming those changes to other systems. The most reliable form is log-based CDC, where a tool like Debezium reads the database transaction log, such as the MySQL binlog or the PostgreSQL WAL. Compared with nightly full extracts or polling on updated_at, it puts little load on the source, gives near real-time data and captures hard deletes that polling would miss. Typically the change events go into Kafka topics keyed by primary key, and a downstream job applies them to a lake or warehouse table with a MERGE, using the log position or a sequence number to keep changes in order per key. Teams use it to keep analytics tables fresh, feed caches and search indexes, and replicate data without touching application code.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy Data Engineer questions