How do you fulfill a GDPR erasure request across data stores?

This tests cross-system deletion under GDPR's 30-day SLA. A strong answer maps PII lineage across S3, databases, and analytics; uses soft deletes for backups; and handles dashboards via reprocessing.
What's really being asked
This question evaluates your ability to design a distributed data deletion workflow that satisfies GDPR right to erasure across the full data lifecycle. Interviewers want to see that you understand the 30 day response deadline, the difference between logical and physical deletion, and the complexity of removing data that has been replicated, backed up, or aggregated. It also tests your awareness of tradeoffs between compliance, system integrity, and auditability.
The full answer
First, discovery and lineage. You must locate the user's PII across raw data stores like S3, structured databases, and analytics warehouses. This requires a data catalog or tagging strategy so you know every object, table, partition, and derived dataset that contains the identifier. Second, raw object stores. For S3, this means deleting or overwriting the specific objects, or if the data is in immutable logs, using cryptographic erasure by shredding the encryption keys for that user's data. Third, structured databases. Here you need cascading hard deletes that respect referential integrity, or soft deletes with a tombstone flag if the record must be retained for legal hold while scrubbing PII fields. Fourth, aggregated analytics. Dashboards that count active users or sum revenue must be addressed by either reprocessing the underlying data pipeline to exclude the user or by using differential privacy techniques that prevent singling out the individual. Fifth, backups and replicas. You need a retention aware strategy: mark backups containing the user for crypto erasure at the end of their retention period, or if immediate deletion is required, restore, purge, and re backup. Sixth, audit and verification. The process must emit logs proving deletion completion to demonstrate compliance.
The mistakes people make
The biggest red flag is proposing a single SQL DELETE in the primary database and assuming the job is done. Another mistake is ignoring immutable architectures such as append only event streams or WORM S3 buckets where standard deletion is impossible. Candidates also err by saying they will simply subtract one from every dashboard aggregate without considering that the user might have contributed to complex metrics like averages or funnels. Failing to mention the 30 day SLA or legal exemptions such as contractual obligations is also a weakness.
What usually comes next
How would you handle a user ID that appears in a Kafka log or Kinesis stream that is already consumed by five downstream services? What if the backup is on Glacier with a 90 day minimum retention? How do you prove to a regulator that deletion was complete without revealing other users' data? Would you use soft deletes everywhere or mix strategies based on data classification?
A concrete example
Suppose a user requests erasure. Your service receives the request and writes a deletion event to an SQS queue. A mapper task queries AWS Glue Data Catalog to find all S3 prefixes, Redshift tables, and DynamoDB items tied to that user ID. For S3, it issues targeted delete object calls and adds the prefix to a manifest for key shredding if the bucket uses SSE KMS. For Redshift, it runs a transaction that deletes from the users table and cascades to orders and events tables, then vacuumes the table to reclaim space. For the QuickSight dashboard showing monthly active users, you trigger an Airflow DAG that reprocesses the last 90 days of activity, excluding the deleted user, and repopulates the aggregate table. Finally, a compliance worker writes a signed attestation to a DynamoDB audit table within 72 hours, well inside the 30 day window.
Interview question
When handling a GDPR erasure request, what is the correct way to update aggregated analytics dashboards derived from the user's data?
- a.Mask the user's identity in the dashboard UI while preserving their data in the aggregates
- b.Subtract the user's contributions from each displayed aggregate and decrement related counters
- c.Issue a hard delete in the primary database and rely on the next scheduled ETL run to update figures
- d.Reprocess the underlying data pipeline to exclude the user and rebuild all affected metricsCorrect
Why? this is the answer
The card states that aggregated dashboards must be fixed by reprocessing the underlying pipeline or using differential privacy, because simple subtraction fails for complex metrics like averages and funnels. Option B represents the common misconception of manually adjusting aggregates, which does not reliably remove the user's influence from derived metrics.
Just read this? Test yourself on what you have been reading.
Read the original → aws.amazon.com
- #gdpr
- #data-privacy
- #data-engineering
- #compliance
- #system-design
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.
See open roles