How do you handle data retention and compliance for stored data?
What they are really testing: Senior signal: thinks about retention policies, automated deletion, legal hold/WORM, right-to-erasure and data residency, and treats kept data as a liability, not just a cost.
A real interview question
How do you handle data retention and compliance for stored data?
What most people say
drag me
“I would keep all the data in case we need it later, storage is cheap.”
Keep-everything is exactly wrong at a senior level. Retained data is a liability (breach exposure, compliance risk), and regulations like GDPR require you to delete data and keep it in-region. You need retention policies and the ability to erase, not hoard.
The follow-ups they ask next
Why is keeping all data indefinitely a problem beyond cost?
It is a liability: a breach exposes everything you retained, and regulations (GDPR) may require deletion. Data minimization, keep only what has a purpose for as long as needed, reduces breach exposure and compliance risk.
What makes GDPR right-to-erasure technically hard?
You must locate and delete a specific user data everywhere it lives, including backups, replicas, and derived datasets. If data is scattered or backups are immutable, that requires deliberate design (e.g. crypto-shredding, mapping data to users).
What the interviewer is listening for
- Retention policies + automated deletion
- Treats data as a liability (minimization)
- Knows WORM/legal hold + GDPR erasure + residency
What sinks the answer
- "Keep everything, storage is cheap"
- No deletion/retention policy
- Unaware of erasure/residency requirements
If you genuinely do not know
Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.
“Treat data as [a liability, not just a cost]: [retention policies per data type with automated deletion (lifecycle), keep only what has a purpose, data minimization reduces breach/compliance risk]. Use [legal hold + WORM/immutability where regulation requires retention, and audit access]. Support [GDPR right-to-erasure, find and delete a user data incl. backups] and [data residency, keep data in required regions].”
Keep going with storage
Foundation
What is the difference between durability and availability for storage?
Foundation
What is the difference between backup and replication, and why is replication not a backup?
Junior
Explain the difference between object, block, and file storage, and give one good use case for each.
Junior
How does object storage achieve such high durability?
Junior
What consistency guarantees does object storage give, and why does it matter?
Junior
For block storage, what is the difference between IOPS and throughput, and how does it affect volume choice?
Knowing the answer is not the same as recalling it under pressure
Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.
Start free