Data Engineering interview question · Most asked

How do you handle personal data (PII) in a data warehouse?

Summary

Minimise what you load, keep personal attributes in one restricted identity table, use pseudonymous keys elsewhere, tag personal columns and track lineage, apply column-level access control and masking, automate deletion requests, and set retention periods for snapshots, exports and backups.

Longer Answer

Under the GDPR, pseudonymised data is still personal data, while properly anonymised data is not. Keyed hashes (HMAC with a secret) are safer pseudonyms than plain hashes, which can be reversed by dictionary attack.

Key Points

  • Minimise and separate identity.
  • Pseudonymous keys (HMAC).
  • Tag, mask and restrict access.
  • Automated deletion and retention.

Deep dive: ETL and Data Pipelines: Personal Data, Privacy and Retention

Explanation

What interviewers look for

Design-level answers, not just 'encrypt it'.

More most-asked Data Engineering questions

← All Data Engineering questions