Privacy Regulations Compliance (GDPR, DPDP Act, HIPAA, Right to be Forgotten)
Design pipelines that support GDPR/DPDP/HIPAA requirements including deletion and consent.
In plain words
Purpose, basis, region, controller, and processor. Next, fields, retention, access, and pseudonymization. Finally, lineage, consent, processor notice, and deletion/incident logs.
Think of it like…
Privacy compliance is a provenance and permissions ledger, not a banner: it records why each copy exists, who may use it, when it must expire, and how a rights request reaches every branch.
Where you’ve seen it
A consented user record has a region-specific purpose/expiry; a subject request fans out to Postgres, Kafka compacted keys, S3/Iceberg delete/merge, feature stores, vector indexes, and processors with ticketed evidence, while an approved HIPAA audit record is retained separately.
Words you’ll hear
- GDPR
- The EU framework for personal data principles, rights, lawful processing, breach notification, and accountability.
- DPDP
- India's Digital Personal Data Protection Act and rules/implementation requiring consent/notice and data-principal controls subject to applicable scope.
- HIPAA
- US healthcare privacy/security framework for covered entities/business associates and protected health information.
- Operational boundary
- Running a global
DELETE FROM warehousedoes not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention. Map data purpose, controller/processor, region and lawful basis with counsel, propagate subject-right requests by identifier/lineage, preserve only documented legal holds, encrypt/limit access, and produce evidence and retention/deletion SLAs.
Visual diagram
Theory & deep dive
GDPR: the working mechanism
GDPR, India's DPDP Act, and HIPAA impose different consent, purpose, minimization, security, breach, subject-rights, processor/controller, and deletion/retention duties that require design and legal mapping.
Purpose, basis, region, controller, and processor. Fields, retention, access, and pseudonymization, then access, correction, restriction, deletion, portability; this exposes the state governed by HIPAA.
A consented user record has a region-specific purpose/expiry; a subject request fans out to Postgres, Kafka compacted keys, S3/Iceberg delete/merge, feature stores, vector indexes, and processors with ticketed evidence, while an approved HIPAA audit record is retained separately.
Privacy Regulations Compliance: failure mode and production response
Running a global DELETE FROM warehouse does not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention.
Map data purpose, controller/processor, region and lawful basis with counsel, propagate subject-right requests by identifier/lineage, preserve only documented legal holds, encrypt/limit access, and produce evidence and retention/deletion SLAs. Track Deletion coverage as "all live, derived, cached, backup, and processor copies", and make Purpose/consent expiry visible to the dataset owner.
How it works, step by step
Step 1 of 41. Map processing
Purpose, basis, region, controller, and processor. GDPR, India's DPDP Act, and HIPAA impose different consent, purpose, minimization, security, breach, subject-rights, processor/controller, and deletion/retention duties that require design and legal mapping.
- Deletion coverage
- all live, derived, cached, backup, and processor copies
- DPDP
- India's Digital Personal Data Protection Act and rules/implementation requiring consent/notice and data-principal controls subject to applicable scope.
When to use it & trade-offs
What it is
GDPR, India's DPDP Act, and HIPAA impose different consent, purpose, minimization, security, breach, subject-rights, processor/controller, and deletion/retention duties that require design and legal mapping. A consented user record has a region-specific purpose/expiry; a subject request fans out to Postgres, Kafka compacted keys, S3/Iceberg delete/merge, feature stores, vector indexes, and processors with ticketed evidence, while an approved HIPAA audit record is retained separately.
Why it matters: Running a global DELETE FROM warehouse does not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention. Map data purpose, controller/processor, region and lawful basis with counsel, propagate subject-right requests by identifier/lineage, preserve only documented legal holds, encrypt/limit access, and produce evidence and retention/deletion SLAs.
When to reach for it
- Design pipelines that support GDPR/DPDP/HIPAA requirements including deletion and consent.
- Choose GDPR because it provides this capability: The EU framework for personal data principles, rights, lawful processing, breach notification, and accountability.
- Keep evidence for Deletion coverage at "all live, derived, cached, backup, and processor copies" so the last production stage-Evidence - lineage, consent, processor notice, and deletion/incident logs-remains testable.
When to avoid or be careful
- Running a global
DELETE FROM warehousedoes not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention. - Do not conflate DPDP with GDPR. The second concept contributes different behavior: India's Digital Personal Data Protection Act and rules/implementation requiring consent/notice and data-principal controls subject to applicable scope.
- Release only after this guardrail is in place: Map data purpose, controller/processor, region and lawful basis with counsel, propagate subject-right requests by identifier/lineage, preserve only documented legal holds, encrypt/limit access, and produce evidence and retention/deletion SLAs.
GDPR / DPDP / HIPAA - roles, limits, and operating cost
Strengths: The EU framework for personal data principles, rights, lawful processing, breach notification, and accountability. GDPR, India's DPDP Act, and HIPAA impose different consent, purpose, minimization, security, breach, subject-rights, processor/controller, and deletion/retention duties that require design and legal mapping.
Watch out: Running a global DELETE FROM warehouse does not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention.
Strengths: India's Digital Personal Data Protection Act and rules/implementation requiring consent/notice and data-principal controls subject to applicable scope. In this workflow it supports: Honor rights - access, correction, restriction, deletion, portability.
Watch out: The operating cost is real: timestamp and retention rule per data use.
Strengths: US healthcare privacy/security framework for covered entities/business associates and protected health information. Its output can be checked with Subject request SLA.
Watch out: Operating guardrail: Map data purpose, controller/processor, region and lawful basis with counsel, propagate subject-right requests by identifier/lineage, preserve only documented legal holds, encrypt/limit access, and produce evidence and retention/deletion SLAs.
Interview signals & numbers to know
When this topic comes up
- “Where is the failure boundary for GDPR, and how would Deletion coverage reveal it?”
- “Why is DPDP distinct from this behavior: US healthcare privacy/security framework for covered entities/business associates and protected health information?”
- Production clue: Running a global DELETE FROM warehouse does not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention.
- Design probe: Map data purpose, controller/processor, region and lawful basis with counsel, propagate subject-right requests by identifier/lineage, preserve only documented legal holds, encrypt/limit access, and produce evidence and retention/deletion SLAs.
Benchmarks & rules of thumb
- Deletion coverage
- all live, derived, cached, backup, and processor copies
- Purpose/consent expiry
- timestamp and retention rule per data use
- Subject request SLA
- legal deadline plus internal owner/identity verification
Common mistakes & follow-ups
Common interview mistakes
- Running a global
DELETE FROM warehousedoes not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention. - Reporting success from a job exit code without checking Deletion coverage and Purpose/consent expiry.
- Treating this example as complete without replay, rollback, or access boundaries: A consented user record has a region-specific purpose/expiry; a subject request fans out to Postgres, Kafka compacted keys, S3/Iceberg delete/merge, feature stores, vector indexes, and processors with ticketed evidence, while an approved HIPAA audit record is retained separately.
Likely interviewer follow-ups
- How would you prove this contract instead of only checking that the command ran: The EU framework for personal data principles, rights, lawful processing, breach notification, and accountability.
- What does the recovery plan do when this occurs? Running a global
DELETE FROM warehousedoes not erase lake copies, backups, logs, model artifacts, or downstream processors; collecting consent once can be mistaken for unlimited purpose or indefinite retention. - When is GDPR insufficient for Purpose/consent expiry, and what does adding DPDP cost in Deletion coverage?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Privacy Regulations Compliance (GDPR, DPDP Act, HIPAA, Right to be Forgotten) with data engineer interview Q&A and hands-on practice.