Modern QA2026Practical Exercise — tiles
Log inJoin
64 / 65 · 15 SQL & Database Testing · Data Masking and Anonymization← prev⊞ allnext →☰ Read as one page

8.8Practical Exercise

  1. Write a masking script that transforms emails and phone numbers while preserving format
  2. Write tests that verify masked data: format preservation, relationship consistency, referential integrity
  3. Write a GDPR deletion test: create a user with activity across 4 tables, delete them, verify all traces are removed
  4. Test that no original values appear in the masked dataset
  5. Compare statistics (count, average, distribution) between original and masked datasets