A customer exercises a legal right to have their data deleted, and their records sit in Apache Iceberg tables in the data lake. What should the team do?
- Exam domain
- Data Store Management26% of the exam
- Difficulty
- Hard
- In this mock
- 23 questions on this domainPractise this domain
Why the exam asks this
Task Statement 2.3: Manage the lifecycle of data.
Objective in the exam guide: Delete data to meet business and legal requirements.
Privacy laws require real deletion, not hiding. In data lakes, old file versions can quietly keep deleted data, which is a compliance risk.
Why C is the answer
Delete the customer's rows with a row-level DELETE on the Iceberg tables, then expire old snapshots so the data is fully removed
Iceberg supports row-level deletes, and expiring old snapshots removes the deleted data from storage.
Remember: Legal deletion in an Iceberg lake: delete the rows, then expire old snapshots.
How it works
Apache Iceberg tables support row-level DELETE, so specific records can be removed without rewriting the whole table by hand.
Iceberg keeps earlier snapshots for time travel, and those can still reference the deleted rows.
Expiring old snapshots removes them, so the data is no longer retained.
Clues in the question
The words that point to the answer, and what each one tells you.
- Legal right to have their data deleted
- Real removal is required.
- Apache Iceberg tables
- Row-level deletes and snapshots.
In detail
- Open table formats keep old snapshots for time travel, which can still contain deleted rows.
- Deletion must follow both business and legal requirements, and be recorded.
Side by side with look-alikes
| Action | Data actually removed? |
|---|---|
| Row DELETE plus snapshot expiry | Yes |
| Row DELETE only | Old snapshots may keep it |
| Soft-delete flag | No |
| Drop the table | Removes everyone |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Add a "deleted" flag but keep the data foreverWrongMost tempting
A flag hides the data but does not delete it.
Why it tempts: Soft deletes are common in applications. But the data still exists, which does not meet a legal deletion request.
B. Ignore the request because the data is in S3Wrong
Legal deletion applies wherever the data is stored.
C. Delete the customer's rows with a row-level DELETE on the Iceberg tables, then expire old snapshots so the data is fully removedRight
Legal deletion in an Iceberg lake: delete the rows, then expire old snapshots.
D. Delete the whole tableWrong
Deleting the whole table destroys everyone else's data.
In practice
- Log each deletion request and the actions taken, for audit.
Use case
An illustrative scenario, not a real incident.
A team deletes one customer's rows across three Iceberg tables and expires snapshots older than the deletion.
See how it works
flowchart LR R["Deletion request"] --> D["Row-level DELETE in Iceberg"] D --> E["Expire old snapshots"] E --> L["Record the deletion for audit"]
How to read this chart
- Read it in order: Deletion request, then Row-level DELETE in Iceberg, then Expire old snapshots, then Record the deletion for audit.