All lessons Leer en español

Security in depth · Unit 25 · Lesson 3 of 12

Protect data through its whole life

Connect classification, encryption, access, retention, and deletion.

11 minready

Helpful before thisCloud identity

After this lesson you can

  • distinguish encryption from authorization
  • identify data and key lifecycle decisions
  • explain why less retained data reduces exposure

A team encrypts its customer database, then exports a copy to a shared folder. The database control still works, but the data has acquired another life. Protection has to follow the information.

Data minimization: Collecting and retaining only data needed for a defined purpose.

Collect only what is needed → Protect data and keys → Retain, recover, then delete1Collect only what isneeded2Protect data and keys3Retain, recover, thendelete
Copies and keys need owners throughout the data lifecycle.

Start with purpose and copies

Classify data by the consequences of disclosure, alteration, or loss. A public brochure and a medical record deserve different handling. Classification should lead to decisions: who may read it, where it may travel, how long it stays, and how recovery works.

Map replicas, exports, logs, analytics, caches, and backups. A policy for the primary database alone leaves many copies unaccounted for. Avoid collecting a sensitive field just because it might become useful someday.

Encryption changes a particular risk

Transport encryption protects a connection; storage encryption protects stored representations against certain forms of access. Neither automatically stops an authorized application from returning the wrong customer’s record. An application with decrypt permission can still expose plaintext.

Keys need separate access policies, accountable owners, monitoring, and recovery planning. Losing the only usable key can make an intact backup unreadable. Rotation needs a plan for older data and dependencies; it is not equivalent to instantly rewriting every historical copy.

Retention is an engineering requirement

Define a reason and duration for retention, with applicable legal or contractual constraints reviewed by the responsible people. Implement deletion across relevant copies and document where backups expire on a different schedule. Do not promise instant erasure from immutable backups if the system cannot provide it.

Test restore and access together: can the right people recover readable data without granting broad access to everyone? A smaller, well-understood dataset is usually easier to protect and explain.

Follow one record through dated copies

The fictional Cedar club collects contact record R22 on 1 April 2031 to send a workshop reminder. Its agreed policy ends that purpose after the workshop. Mina approves removal on 12 April. These are exercise assumptions, not legal deadlines.

The supplied map:

Item and owner Supplied lifecycle Constraint
Primary record, Mina Created 1 April; deletion confirmed 12 April No longer available to ordinary application use
Reminder export, Sol Created 9 April; deletion confirmed 12 April Must not survive as an untracked working copy
Backup B10, Jae Created 10 April; expires 10 May Restricted immutable backup, with no selective record deletion
Backup key K1, Noor Protects B10 and other retained records Remains available for authorized recovery while those copies need it
Deletion journal, Mina Records R22’s removal on 12 April; review scheduled 11 May Retains only the necessary reference and date, with restricted access

The primary deletion does not establish deletion of the export; its own confirmation matters. Likewise, the backup’s scheduled expiry is a future condition, not proof that it has already disappeared. Mina cannot accurately announce “every copy was erased on 12 April.” She can report removal from working copies and explain the restricted backup schedule and restoration safeguards.

The deletion journal is itself retained information. It does not need R22’s contact details. Its owner documents why the minimal reference remains necessary through the backup window and reviews removal afterward. Verify that future backups exclude R22 after primary deletion.

Restore the service without undoing the deletion

On 20 April, Jae restores B10 after a fictional storage failure. B10 predates the deletion and contains R22. The club’s recovery requirement says removed records must not return to ordinary use. The current deletion journal is protected separately; restoring an older database must not replace it with outdated instructions.

Before reopening service, Jae applies the required deletion reconciliation and verifies that R22 is absent from the recovered working data. The intended remaining records must still be readable by their authorized users. This checks both privacy and availability; merely confirming that the database opens would miss half the requirement.

PredictOn 15 April the club starts using new key K2 for new backups. Can Jae restore B10 with K2 simply because it is the current key?

No. B10 remains dependent on K1 unless it was deliberately transformed under a verified process. Rotation changes new use; it does not automatically rewrite historical ciphertext. Destroying K1 would also affect other retained records, so it is not a selective shortcut for deleting R22.

Make the final promise match the evidence

Accept the working-copy deletion on the supplied confirmations, while keeping backup expiry and restore reconciliation explicit. On 10 May, verify that B10’s expiry actually completed; on 11 May, review the journal and remaining K1 dependencies with their owners. Do not delete a shared recovery key merely because one backup expired. This record-by-record reasoning makes a retention promise specific enough to implement, check, and explain.

EXPLORE THE CONCEPT

What does this control actually protect?

A fictional service stores private notes. Compare three decisions.

Encrypt the database volume

This helps protect stored data in relevant storage-access scenarios. It does not decide which customer the application may serve.

Restrict decrypt permission

This limits who or what can use the key. Review the application identities and the data access path as well.

Remove unnecessary exports

This reduces the number of sensitive copies. Keep required evidence and retention obligations in view.

A simplified learning model. It connects to no systems and uses no real data.

Turn the idea into a decision

Write one policy sentence for the data and another for its keys. Then follow a record into its exports and backups.

Terms you met

Data minimization

Check yourself

No timer. No penalties. Read the explanation and try again whenever you like.

  1. The club encrypts B10 and gives its recovery service permission to decrypt it. What must still control who receives restored records?

    Show the answer

    Correct answer: The restored application’s resource permissions and the recovery process’s authorized audience. Encryption protects a representation; it does not choose the correct recipient after decryption.

  2. K2 becomes the key for new backups on 15 April. What does Jae need for B10’s encrypted contents?

    Show the answer

    Correct answer: The usable K1 recovery dependency, unless B10 was deliberately transformed and verified. A new key does not automatically decrypt historical data protected by another key.

  3. Which items belong in R22’s lifecycle map?

    Show the answer

    Correct answer: The primary, export, backup, relevant keys, and minimal deletion journal, with owners and dates. The map must include secondary copies and dependencies that affect deletion or recovery.

  4. Which statement accurately describes the supplied status on 12 April?

    Show the answer

    Correct answer: Working copies were deleted; B10 remains restricted until its scheduled expiry and restores must reconcile deletion. This distinguishes completed actions from remaining retention and recovery obligations.

Try it

  • WriteUse the supplied fictional R22 lifecycle to produce a five-row copy-and-key map. Name each owner, relevant date, permitted use, and deletion or recovery constraint. Write the accurate status on 12 April 2031, then explain what Jae must verify before restoring service on 20 April. Include why deleting K1 immediately would be the wrong shortcut.
References