Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Several teams are migrating data at the same time as part of a modernisation programme, and one migration lost records. How would you govern data migrations across teams?

I would make the safe way the easy way by providing standard tooling and patterns, such as CDC pipelines, batch backfill jobs and verification scripts, and then require every migration to have a plan with verification steps and rollback, signed off by the data owner when the data is critical. No old store would be decommissioned without reconciliation reports of counts, checksums and sampled comparisons. I would schedule migrations to avoid shared peaks and overlapping risky changes, and review incidents across teams to keep updating the standards.

Why this question is asked

When several teams migrate data at once, each one invents its own scripts, its own checks and its own idea of done. Most of the time that works, until one migration silently loses records and nobody notices until a customer complains. The loss is rarely caused by carelessness; it is caused by a gap that a standard process would have caught. Interviewers ask this to see whether a senior engineer can add governance that prevents the next loss without slowing every team down. In this answer, we will look at how records typically get lost, then at standard tooling, required plans and sign-off, reconciliation before decommissioning, scheduling, and learning across teams.

1How Records Usually Get Lost

It helps to know the common failure modes, because the governance is designed around them. A backfill job skips rows that do not match its query, such as rows with a null key or an unexpected status. A bulk copy and a change data capture stream start at different points, so changes made in between are never copied. A transformation drops rows it cannot parse and only logs a warning. Or the old store is turned off before anyone compares the totals, so the gap is discovered weeks later, when restoring it is hard.

Notice that none of these fails loudly. The job finishes, the new system works, and the missing records are simply absent. So the core of the governance is verification that compares old and new, not trust in the job's success message.

2Providing Standard Tooling and Patterns

Rules alone make teams slower; rules plus tools make them safer and faster. The platform or data team provides a small set of supported building blocks: a CDC pipeline template, for example Debezium into Kafka with standard settings for snapshot and stream so the start point is handled correctly; a batch backfill framework that processes rows by key range, records progress and reports rows it rejected; and verification scripts that compute counts and checksums the same way on both sides.

With these, a team does not have to design the risky parts themselves. They configure what to move and the tooling handles snapshot positions, retries and reporting. Teams can still use something else, but then they must show it meets the same checks.

3Requiring a Plan and Data Owner Sign-Off

Every migration has a short written plan before it starts: what data moves, how, how it will be verified, how to roll back, and when the old store will be decommissioned. It does not need to be long; one page is usually enough. Its value is that the verification and rollback steps are thought through before the work begins, not improvised afterwards.

For critical data, such as customer accounts, payments or anything with legal retention rules, the data owner, the business person accountable for that data, signs off the plan and later the reconciliation result. That puts a second pair of eyes on the definition of done and makes the business aware of the risk.

Step throughGates for a data migration
  1. Write the migration planscope, method, checks, rollback
  2. Critical data?
    YesyesNodata owner signs off the plan
  3. Run migration with standard toolingrejected rows reported
  4. Reconciliation report passes?
    YesyesNodata owner signs off result
  5. Decommission the old storeafter a retention period

5 steps in order. Play them, or step through them one at a time.

4Reconciliation Before Decommissioning

The one rule I would make absolute: no old store is turned off until a reconciliation report shows the data arrived. Reconciliation compares source and target at three levels. Counts per table, and per meaningful group such as per month or per status, show whether rows are missing. Checksums per table or partition show whether values match. Sampled row comparisons, a few hundred rows chosen at random, catch problems in transformations that change the shape of the data.

Example reconciliation report
CheckSourceTargetResult
Customers, total rows4,812,3304,812,330match
Orders 2019 to 2025, rows per year7 groups7 groupsmatch
Orders 2018, rows611,204610,987217 missing
Checksum, accounts partitions6464match
Sampled rows compared500500500 equal
Grouped counts show where the loss is: here, 217 orders from 2018 were skipped.

Notice how grouped counts locate the problem. A total count might hide a loss if duplicates elsewhere balance it, and a single total does not tell us where to look. Counting per year points straight at the 2018 rows, which turn out to be orders with a status value the backfill query did not expect.

5Scheduling Migrations to Avoid Overlap

Migrations put load on shared systems: databases, Kafka clusters, networks and on-call people. Two large backfills on the same database cluster can slow each other and the production traffic. A migration during the month-end peak competes with the busiest business period. So we keep a shared migration calendar, where teams book windows for heavy steps such as bulk loads and cutovers, and we avoid scheduling a risky cutover at the same time as another major change to a system it depends on.

This is light coordination, not a central approval board. A weekly look at the calendar by the people running the programme is usually enough to spot clashes.

6Learning Across Teams

When a migration incident happens, such as the lost records, we run a blameless review, focused on what in the process allowed it rather than who made the mistake, and share it with every team running migrations. Each review ends with a change to the standards or the tooling: a new check in the verification script, a default in the backfill framework that reports rejected rows, a rule in the plan template.

Over time this turns individual incidents into shared protection. The team that lost records helps all the others avoid the same gap, and the standards stay grounded in real failures rather than in theory.

7Follow-up questions

Will teams see this as bureaucracy?

Some will at first, which is why the tooling must come before the rules. When the standard backfill framework and verification scripts save a team effort, the plan and reconciliation steps feel like part of the work. Keeping the plan to one page and sign-off only for critical data also keeps the overhead small.

How long should the old store be kept after migration?

Long enough to cover at least one full business cycle, such as a month-end or quarter-end, and any period in which problems would typically be found. For critical data I would keep it read-only, or keep a backup, for a defined period agreed with the data owner, and then decommission it with a recorded decision.

What would you do about the records already lost?

Restore them from the old store or a backup while they still exist, reconcile again to confirm, and tell the data owner and any affected customers if needed. Then find every other migration that used the same method and reconcile those too, because the same gap may exist there.

8Conclusion

In this answer, we saw how to govern data migrations across teams after one lost records. We looked at how losses usually happen silently, provided standard CDC pipelines, backfill jobs and verification scripts, and required a short plan with verification and rollback, signed off by the data owner for critical data. We made reconciliation with counts, checksums and sampled comparisons a condition for decommissioning, scheduled heavy steps on a shared calendar, and turned incident reviews into updates to the standards.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start from the fact that records are usually lost silently: a backfill query skips rows with unexpected values, a bulk copy and CDC start at different points, or a transformation drops rows with only a warning.

Then, if they want more

So governance has to be about verification, not about trusting that a job finished. First, I would give teams standard tooling, a CDC pipeline template, a backfill framework that works by key range and reports rejected rows, and verification scripts, so the risky parts are solved once.

Second, every migration needs a one-page plan with how it will be verified and rolled back, and for critical data the data owner signs off both the plan and the result. Third, the one absolute rule: no old store is decommissioned until a reconciliation report shows counts, grouped counts, checksums and sampled row comparisons match.

Grouped counts are important because they show where a loss is. Fourth, a shared migration calendar so heavy steps do not overlap on the same systems or land on peaks like month-end. And finally, blameless incident reviews shared across teams, each ending with a change to the tooling or the standard, so the lost records incident protects everyone else.

For the records already lost, I would restore them while the old store still exists and reconcile other migrations that used the same method.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Several teams are migrating data at the same time as part of a modernisation programme...": https://scrivio-interview-library.netlify.app/architecture/modernization/02e4cd6c18/