Interview practice question
Testing a data migration script
Backend Engineering · Testing · Intermediate
You must run a script that transforms millions of customer records into a new format. How do you test it before running in production?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Unit test transformation logic with edge cases.
- Run on anonymised production-sized copy.
- Validate counts, checksums, sample comparisons.
- Idempotent and resumable.
- Dry-run mode, backups, rollback plan.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.