Design Change Data Capture From Dynamics 365 Into a Data Lake
Last updated: November 29, 2026
Quick Overview
Design a pipeline that continuously captures inserts, updates and deletes from Dynamics 365 tenant databases and lands them in a customer's data lake as queryable tables with low lag.
Microsoft
November 29, 20260
0
0 solved
Design a pipeline that continuously captures inserts, updates and deletes from Dynamics 365 tenant databases and lands them in a customer's data lake as queryable tables with low lag.
Business Applications teams at Microsoft build export pipelines like this so customers can analyze CRM and ERP data in their own lake. The interviewer wants log-based capture, correct ordering per row, handling of schema changes and a clear story for initial snapshot plus incremental sync.
What the Interviewer Expects
- Uses log-based CDC instead of polling modified timestamps
- Does an initial snapshot and joins it cleanly with the change stream
- Keeps per-row ordering and idempotent merges
- Handles schema evolution when admins add custom columns
- Writes to an open table format with upsert support
- Isolates tenants for security and throttling
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you switch from snapshot to streaming without missing or duplicating changes?
- A customer adds a custom column to the Account table. What happens downstream?
- How do you represent hard deletes in the lake?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Each Dynamics tenant picks tables (Account, Contact, Opportunity, custom entities) to export. Target: their own storage account as Delta or Parquet tables. Lag under 15 minutes, exactly-once effect on...
High-Level Design
- CDC reader per database shard tails the transaction log (or the database's change tracking feature), emitting change events
(table, primaryKey, op, columns, commitLSN). - Events go to a **pa...