Essential cookies keep authentication working. With your permission, we also use analytics cookies to understand and improve the product. Read our Privacy Policy

DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPricingBlog
ProLogin
Home/Questions/System Design/Architecture/CDC During Migration - explain approaches for real-time Change Data Capture

CDC During Migration - explain approaches for real-time Change Data Capture

System Design/Architectureeasy0.5 min read

Reviewed by Aditya Kumar · Last reviewed 2026-03-24

CDC captures inserts, updates, and deletes from a source and applies them to a target in near real-time, enabling minimal-downtime migrations. **Approaches**: Log-based CDC (Debezium, AWS DMS)—reads WAL/redo logs; lowest latency, no schema change. Trigger-based—triggers on...

🤖 Analyze Your Answer
Frequency
Low
Asked at 2 companies
Category
179
questions in System Design/Architecture
Difficulty Split
15E|6M|158H
in this category
Total Bank
1,863
across 7 categories
Asked at these companies
MoonfareSnowflake
Interview Pro Tip

Red Flag: Claiming trigger-based CDC is 'real-time' without acknowledging write amplification. Pro-Move: Mention handling schema evolution (e.g., Debezium SMT) and idempotent writes to avoid duplicates during retries.

Why This Question Matters

This easy-level System Design/Architecture question appears frequently in data engineering interviews at companies like Moonfare, Snowflake. While less common, it tests deeper understanding that distinguishes strong candidates.

How to Approach This

Start by clearly defining the core concept being asked about. Interviewers want to see that you understand the fundamentals before diving into implementation details. Structure your answer with a definition, then explain the practical application with a concise example.

Expert Answer
109 words

CDC captures inserts, updates, and deletes from a source and applies them to a target in near real-time, enabling minimal-downtime migrations. Approaches: Log-based CDC (Debezium, AWS DMS)—reads WAL/redo logs; lowest latency, no schema change. Trigger-based—triggers on source; adds load and schema coupling. Timestamp/version columns—incremental only; misses deletes and out-of-order updates. Dual-write with reconciliation—applications write to both; eventual consistency and complexity. Why log-based: Non-invasive, captures all changes, low source overhead. Scalability: Kafka as CDC backbone allows multiple consumers and backpressure handling. Cost: DMS/MongoDB Atlas CDC have per-hour costs; Debezium is OSS but requires Kafka infra. Trade-off: Initial full snapshot + CDC is required; plan for schema evolution and idempotent upserts.

⚡
Pro Tip

Red Flag: Claiming trigger-based CDC is 'real-time' without acknowledging write amplification. Pro-Move: Mention handling schema evolution (e.g., Debezium SMT) and idempotent writes to avoid duplicates during retries.

Want all answers as a PDF for offline study?
Seven focused volumes with 750+ in-depth answers — Answer Vault →
Related Study Guides
🏗️

System Design Interview Patterns for Data Pipelines

Master 179 system design/architecture questions with expert answers. Real questions from 97+ companies.

22 min read →
📨

Apache Kafka Interview Questions for Data Engineers: 15 Questions That Actually Get Asked (2026)

Kafka is in every data engineering job description, but most candidates only know 'producers and consumers.' Master these 15 questions covering partitioning strategy, exactly-once semantics, and Kafka Connect patterns.

16 min read →
🔧

7 Data Pipeline Design Patterns Every Senior Data Engineer Must Know (2026)

Interviewers don't ask 'build a pipeline.' They ask 'how would you handle late data, schema changes, and exactly-once processing?' Master the 7 patterns that answer these questions.

15 min read →

Related System Design/Architecture Questions

hardWhat architecture are you following in your current project, and why?FreehardBriefly explain the architecture of Kafka.FreehardDescribe the data pipeline architecture you've worked with.FreehardExplain the trade-offs between batch and real-time data processing. Provide examples of when each is appropriate.FreehardCan you explain the trade-offs you made during the design process?
Weak vs Strong Answer Breakdown

Compare your response with a stronger, structured example and identify missing concepts.

Read Answer Analysis

Level up your prep

Recommended
Educative
Educative Unlimited

800+ hands-on courses — Grokking System Design, Coding Patterns, and AI mock interviews for your DE loop.

Start learning →

Some links below are affiliate links. If you buy through them we may earn a small commission at no extra cost to you — it helps keep DataEngPrep free.

According to DataEngPrep.tech, this is one of the most frequently asked System Design/Architecture interview questions, reported at 2 companies. DataEngPrep.tech maintains an editor-reviewed database of 1,863 data engineering interview questions across 7 categories.

← Back to all questionsMore System Design/Architecture questions →
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeAWSAzureMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsPySpark QuestionsTop Python QuestionsTop System DesignKafka QuestionsAirflow QuestionsSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerAnswer Vault PDFsPricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer