Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

Legal places a litigation hold on three years of customer communications. Lifecycle rules delete such data after 1 year, privacy erasure requests keep arriving, and some of the data sits in archive tiers.

As the engineering leader, how do you reconcile the hold with retention and erasure, and what controls do you build so this is routine next time?

A legal hold overrides scheduled deletion for the data in scope, so lifecycle rules and erasure jobs are paused or exempted for exactly that scope, which legal confirms in writing, using storage features such as object-level legal holds or retention locks rather than switching off lifecycle for whole buckets. Erasure requests that touch held data are recorded and executed when the hold lifts, with the decision and its legal basis documented per request. To make this routine, we build a data inventory that maps data classes to systems, owners, retention and hold status, and we audit regularly that holds are applied and released.

Why this question is asked

Three obligations collide here. Retention policy says delete after a year, privacy law says delete when a person asks, and the litigation hold says delete nothing in scope. An engineering leader cannot resolve this by picking one; the organisation needs all three honoured, in the right order of priority, with evidence. Interviewers ask this to see whether a leader can turn a legal requirement into precise technical controls and a repeatable process. In this answer, we will clarify what a hold means, apply it with exact scope, handle erasure requests, build the inventory that makes holds routine, and set up audits so holds do not live forever.

1What a Legal Hold Requires

A litigation hold is an instruction from legal counsel to preserve information that may be relevant to a lawsuit or investigation. Once it is in place, destroying data in scope, even through an automatic process that was running long before, can have serious legal consequences for the company. So the hold takes precedence over our normal retention schedule.

Privacy law usually recognises this. Under the GDPR, for example, the right to erasure does not apply where the data is needed for the establishment, exercise or defence of legal claims, which is why held data can be kept despite an erasure request. But this exemption is narrow: it covers what the hold covers, for as long as the hold lasts. Holding more than necessary, or holding it longer, is itself a privacy problem. So the whole design turns on precise scope.

2Applying the Hold to Exactly the Right Scope

The first step is a written scope from legal: which customers or accounts, which kinds of communication (email, chat, call recordings), and which date range, here three years. Engineering then translates that into concrete data locations and confirms the translation back to legal, because a vague scope such as 'customer communications' can mean six systems or sixty.

Then we stop deletion for exactly that scope. The blunt way, disabling lifecycle rules on whole buckets, also stops deletion of everything else and quietly breaks our retention promises for unrelated data. Where the storage supports it, we place object-level holds instead. S3 Object Lock offers a legal hold flag per object version that blocks deletion until it is removed, with no end date; Google Cloud Storage has object holds and Azure Blob Storage has legal holds on immutable storage (check the exact features and prerequisites of your provider, for example Object Lock must be enabled on the bucket). For databases and search indexes, the deletion jobs read a hold table and skip anything in scope.

SQL
-- deletion jobs consult one place before deleting anything
CREATE TABLE legal_hold (
hold_id text PRIMARY KEY, -- 'LIT-2026-014'
data_class text NOT NULL, -- 'customer_communications'
subject_ids bigint[], -- customer accounts in scope
from_date date, to_date date,
placed_by text, approved_by text, -- legal approver recorded
released_at timestamptz);
-- lifecycle job: skip anything a live hold covers
SELECT count(*) FROM legal_hold h
WHERE h.released_at IS NULL AND h.data_class = 'customer_communications'
AND :customer_id = ANY(h.subject_ids) AND :created_on BETWEEN h.from_date AND h.to_date; -- 1 = keep

3Handling Erasure Requests for Held Data

Erasure requests keep arriving, and some will cover data under hold. We still process them; we just split each request. Data outside the hold is erased on the normal timeline. Data inside the hold is recorded as pending, with the request, the hold that blocks it, and the legal basis for keeping it, and the person is told, as the law requires, that some data is retained for legal reasons. When the hold lifts, a job executes every pending erasure automatically.

Step throughAn erasure request when a hold may apply
  1. Receive and verify the erasure requestidentity confirmed
  2. Is any of the person's data under a live hold?
    YesSplit the requestNoErase everything on the normal timeline
  3. Erase data outside the hold nowdatabases, archives, analytics copies
  4. Record the held part as pendinghold id, legal basis, date, approver
  5. Execute pending erasure when the hold is releasedautomatic, with evidence

5 steps in order. Play them, or step through them one at a time.

Documenting each decision matters as much as the decision itself. If a regulator later asks why a person's data still existed eighteen months after they asked for erasure, we can show the hold, its approval, and the exact date the erasure was finally carried out.

4Building a Data Inventory So Holds Become Routine

The reason holds are painful the first time is that nobody knows where the data lives. Customer communications might sit in a production database, an archive bucket in a deep archive class, nightly backups, a search index and three analytics copies in the warehouse. A hold applied only to the first two still destroys evidence through the others.

So the lasting control is a data inventory: a catalogue that maps each data class to the systems that hold it, the owner of each system, its retention rule and its current hold status. With it, applying a new hold is a query and a checklist, not a week of archaeology. It also serves privacy work, because erasure requests need the same map.

Data inventory entries for one data class
SystemOwnerRetentionHold mechanism
Messages databaseMessaging team1 yearDeletion job reads hold table
Archive bucket (deep archive)Platform team1 yearObject-level legal hold
Search indexSearch team1 yearHold-aware purge job
Warehouse copiesData team13 monthsHold-aware partition expiry
Database backupsDBA team35 daysDecision recorded with legal
One row per place the data lives; a hold is applied to every row, not just the obvious ones.

5Auditing That Holds Are Applied and Released

Holds have two failure modes. A hold not applied everywhere destroys evidence. A hold never released keeps personal data for years without any legal basis and keeps paying for storage. So we audit both ways on a schedule, for example quarterly: legal confirms each open hold is still needed, and engineering checks that every system in the inventory honours each open hold and that released holds have actually been removed and their pending erasures executed. Holds get a review date when they are placed, so a forgotten hold produces a reminder instead of silence.

6Follow-up questions

Who should be able to place and release a hold in your systems?

Legal decides; engineering executes. A hold is requested and approved by legal counsel, and placed through an audited tool by a small group of data custodians, never by ad hoc scripts or individual engineers with storage admin rights. Release follows the same path with legal's written approval. Separating who decides from who executes, and logging both, means no single person can quietly delete held data or keep data forever.

Does a hold apply to backups?

It can, and the answer must come from legal for each hold. Often backups that rotate on a short schedule are left alone, because the same data is preserved in the primary systems, but that decision should be explicit and recorded, not assumed.

Why not simply turn off all deletion until the case ends?

Because it breaks retention promises and privacy obligations for everything unrelated to the case, grows storage costs, and creates more data that could itself become discoverable. Precise scope protects the company on both sides.

7Conclusion

In this answer, we saw that a legal hold overrides scheduled deletion only for its scope, which legal confirms in writing and engineering applies with object-level holds, retention locks and hold-aware deletion jobs instead of disabling lifecycle rules wholesale. Erasure requests are split, with held parts recorded and executed when the hold lifts. A data inventory makes holds routine across databases, archives, backups and analytics copies, and regular audits make sure holds are both applied and released.

What to say in the interviewAbout 80 seconds aloud

Open with

The hold wins over scheduled deletion, but only for its exact scope, so the first thing I do is get the scope from legal in writing: which customers, which kinds of communication, which three years.

Then, if they want more

Then I stop deletion for exactly that data. Rather than disabling lifecycle rules for whole buckets, which would break retention for everything else, I use storage features like S3 Object Lock legal holds on the objects in scope, and make our database, search and warehouse deletion jobs check a hold table before deleting. Erasure requests keep being processed.

Data outside the hold is erased as normal; the held part is recorded as pending with the hold and its legal basis, the person is told, and it is erased automatically when the hold lifts, with the decision documented per request.

To make this routine next time, I would build a data inventory that maps each data class to every system holding it, its owner, retention and hold status, including archives, backups and analytics copies, so applying a hold is a checklist, not an investigation.

Finally, I would audit holds regularly with legal, because a hold that is never released becomes a privacy and cost problem of its own.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "As the engineering leader, how do you reconcile the hold with retention and erasure, and...": https://scrivio-interview-library.netlify.app/architecture/storage-and-pipelines/53bcf1639b/