Module 8 of 52 · Foundations

Data lifecycle and flow

30 min 4 outcomes Interactive lifecycle explorer + drag challenge 5 standards cited

By the end of this module you will be able to:

  • Identify the GOV.UK data lifecycle stages for a described dataset
  • Apply the GDPR storage limitation principle to a retention decision
  • Explain why data lineage matters for audit and troubleshooting
  • Describe what metadata should be captured at each lifecycle stage

Six lifecycle control points wired as a closed loop

Every stage carries a control that travels with the data, from a purpose stated at Plan to erasure evidenced at Retire, and the sixth arrow closes the loop because that retirement evidence is what the next Plan is built on.

The data lifecycle is a closed loop because retirement evidence feeds the next plan. Each transition needs the control relevant to it, such as purpose, access, lineage, contract or retention. UK GDPR Article 5(2) requires controllers to be able to demonstrate compliance, while W3C PROV-DM models entities, activities, agents, responsibility and time so provenance can be recorded consistently.

Data lifecycle as a closed loop of six control points Six cards sit on a perimeter, three across the top and three across the bottom. The top row reads left to right: 1 Plan, 2 Collect, 3 Store. The bottom row reads right to left: 4 Process, 5 Share, 6 Retire. Each card names the control that must travel with the data at that stage, from purpose and owner through lawful basis, access control, lineage and contract to evidenced erasure. Red arrows run clockwise: along the top row, down the right-hand side, back along the bottom row, then up the left-hand side through the hole of the loop, where a label reads 6 to 1, close the loop. Retire is emphasised in red soft. A filled red band closes the figure with why the loop closes. The data lifecycle is a closed loop, and retirement feeds the next plan 1PlanPurpose stated, owner named 2CollectLawful basis recorded 3StoreAccess control + encryption 4ProcessLineage tracked 5ShareContract + audience scope 6RetireErasure or archive, evidenced 6 -> 1 (close the loop) Why the loop closesEvidence of what was erased or archived at Retire, and when, informs the next Plan: its purpose and what it needs to collect.W3C PROV-DM gives that record a shared shape: who did what, to which data, and when.

Why every shadow copy is a new retention liability

A sanctioned copy carries a named purpose and an expiry date; a shadow copy carries neither, so nothing ever fires to remove it and it sits on a local drive for years as an unbounded retention risk.

Every unauthorised copy of personal data is a fresh retention risk. UK GDPR Article 5(1)(e) requires personal data kept no longer than necessary, and that applies to every copy, not only the original.

Each unauthorised copy of personal data is a new risk A branch, not a row. Master record (controlled and audited) sits at the left on the axis between two lanes. Two red arrows leave its right edge. The upper one, labelled cloned to, reaches Sanctioned copy (named purpose, expiry); that path then runs a short dashed length into a solid end bar and stops. The lower one, labelled copied without basis, reaches Shadow copy (no purpose, no expiry), emphasised in red soft with a red border, and a further red arrow labelled becomes carries it on to Breach exposure (unbounded retention risk) at the right edge. The unbounded path is drawn visibly longer than the one that ends. A filled red band closes the figure. Two ways to copy one record, and only one of the copies ever ends 1Master recordControlled + auditedUK GDPR Art.5 2Sanctioned copyNamed purpose, expiryICO Sharing 3Shadow copyNo purpose, no expiryISO 27701 4Breach exposureUnbounded retention riskICO 2022 cloned to copied without basis becomes Shadow copies expire neverSpreadsheets pulled for one analysis sit on local drives for years. Track every copy or accept the residual retention liability.

Lifecycle risk review as an ordered audit path

The review runs register, classify, schedule and retire in that order, and the schedule step is what makes the other three real: a risk tier with no review date in the calendar ages quietly, which is why the missed review is what an audit finds.

A lifecycle risk review walks four steps: register every dataset, classify by risk, schedule the next review, retire with evidence. UK ICO data sharing code requires this loop for personal data; DAMA-DMBOK 2 generalises it to all governed datasets.

Lifecycle risk review is a four-step ordered decision path One left to right path of four steps standing on a calendar. Three white cards: Register (dataset in catalogue), Classify (risk tier and owner) and, at the far right, Retire (evidence and provenance). Between them stands step 3, Schedule (next review date), drawn as a gate: a wider pale red card, red bordered and proud of the row, carrying the line that the calendar is the control. Beneath the steps a grey datum runs the full width, ticked and named January to December. August, the fixed review date, is red, sits below the gate and rises to meet it. Red arrows read graded by, scheduled at and executed as. A red band at the foot names the missed scheduled review as the audit finding. Four steps, and nothing reaches Retire except through step three JanFebMarAprMayJunJulAugSepOctNovDec 1RegisterDataset in catalogueDMBOK 2 2ClassifyRisk tier + ownerUK GDQF 4RetireEvidence + provenanceW3C PROV-DM 3ScheduleNext review dateThe calendar is the controlICO graded by scheduled at executed as The missed scheduled review is the audit findingRisk classification without a calendared review date is a paper exercise. Schedule the review at classification.

What an archived dataset keeps besides the bytes

The bytes are one card of seven. ISO 14721 separates the object from the information that keeps it readable, citable, provable and lawful to serve, and each of the six fails in a way the others cannot cover for.

An archive that keeps the bytes and drops what explains them is not an archive, it is a folder of files nobody can open. Each of the six loses something different, so the gap is named rather than scored.

What an archived dataset keeps besides the bytes A container representing one archival package. On the left, a card for the archived data itself, the bytes. To its right, six cards for the information that has to travel with them, named after the ISO 14721 OAIS model: representation, reference, provenance, fixity, context and access rights. Each card carries whether that element is kept, partly kept or not kept, and the consequence of losing it: nobody can open it, nobody can cite it, it is not evidence, silent corruption, nobody knows why, or it cannot be served. The band below names the element that is missing and what is lost with it, because each one fails in a different way and averaging them into a score hides which. Six things travel with the bytes, and each one is lost differentlyInside the packageThe archived dataThe bytesthemselves. Everycard to the right hasto travel with them orthe bytes stopmeaning anything.RepresentationPartly keptWithout it, nobody canopen itReferenceKeptA persistent identifier forthis and nothing elseProvenanceKeptWhere it came from andevery change sinceFixityNot keptWithout it, silent corruptionContextPartly keptWithout it, nobody knowswhyAccess rightsKeptWho may read it, on whatterms, and for how longFixity is not kept, so silent corruptionA gap here is not a lower score, it is a named loss. The archive can hold every byte it was given and still fail on this one,because what is missing is what explains the bytes rather than the bytes themselves.

Every piece of data has a lifespan. GOV.UK frames that lifespan as planning, collection or ingestion, preparation and maintenance, use, sharing, and eventual archival or destruction. Managing these stages is not bureaucracy. It is how organisations prevent quality defects, meet regulatory obligations, control costs, and maintain trust with the people whose data they hold.

Lifecycle discipline starts before data is collected. Planning determines what data is needed, what standards will be used, which metadata must be captured, and how deletion will happen later.

9.1 The six stages

The data lifecycle is the sequence of stages through which data passes from initial planning to its eventual archival or destruction:

  1. Plan: decide the business need, source, standards, lawful basis, retention period, and quality rules before collection starts.
  2. Collect or acquire, and ingest: data is generated, received, validated at source, and brought into controlled systems.
  3. Prepare, store and maintain: data is formatted, linked, cleaned, protected, monitored, and kept fit for use.
  4. Use and process: data is queried, transformed, analysed, or fed into models for a defined purpose.
  5. Share and publish: data is distributed to authorised consumers or published with quality assurance, documentation, and the right access conditions.
  6. Archive or destroy: data is retained securely with its quality context, or securely deleted when there is no continuing purpose or legal basis.

Each stage carries distinct metadata requirements, quality considerations, and governance obligations.

Click through each stage in the interactive diagram below to see what happens, what metadata to capture, and what risks arise when a stage is neglected.

Retention cannot be fixed at the end of the lifecycle if it was never planned. The deletion rule has to be known before downstream copies, backups, extracts, and archives multiply.

Loading interactive component...

9.2 Retention and deletion obligations

The retention period is the defined length of time that data must be kept before it can or must be deleted. Periods may be set by law, regulation, contract, or internal policy. UK organisations navigate multiple overlapping frameworks.

“kept in a form which permits identification of data subjects for no longer than is necessary for the purposes for which the personal data are processed;”

UK GDPR, Article 5(1)(e) - Article 5(1)(e), Storage limitation

There is no single prescribed retention period in GDPR. The period depends on purpose. HMRC requires a limited company to keep its accounting records for six years from the end of the last company financial year they relate to. NHS health records have longer prescribed periods under the NHS Records Management Code. The key principle: keep data only as long as the purpose requires, then delete it.

ISO/IEC 27001:2022 Annex A.8.10, Information deletion, requires information held in information systems, devices or any other storage media to be deleted once it is no longer required. A separate control, Annex A.7.14, covers equipment being disposed of or re-used: storage media must be verified so that sensitive data and licensed software have been removed or securely overwritten first. Deleting securely means more than pressing delete: it means verifiable, documented destruction of all copies.

Common misconception

“Deleting a row from the production database means the data is gone.”

Deleting from production while retaining copies in backups, audit logs, disaster recovery sites, and data warehouse extracts does not constitute compliant disposal under GDPR. A deletion programme must inventory all locations where the data exists (production, backups, archives, downstream systems) and address every instance before marking records as destroyed.

Deletion decisions require a map of where the data has moved. Lineage provides that map for audit, troubleshooting, impact analysis, and subject rights work.

9.3 Data lineage

Data lineage is a record of a dataset's origins, transformations, and movements over time. It documents which source systems contributed, which transformations were applied at each stage, and which downstream systems or reports consume the output. Lineage enables three practical capabilities:

  1. Debugging: when a report shows an unexpected value, lineage allows tracing the value back through transformations to the source.
  2. Regulatory compliance: under GDPR Article 14, data subjects have the right to know the source of data held about them. Under FCA regulations, firms must demonstrate the provenance of data used in regulatory reporting.
  3. Impact analysis: before changing a source system's schema, lineage shows which downstream datasets and reports will be affected.

Modern data catalogue tools (Apache Atlas, Collibra, Alation) capture lineage automatically by monitoring SQL queries and ETL (Extract, Transform, Load) operations.

“from which source the personal data originate, and if applicable, whether it came from publicly accessible sources;”

UK GDPR, Article 14(2)(f) - Article 14(2)(f), Information to be provided where personal data have not been obtained from the data subject

This right means organisations must know where their data came from. Without lineage records, answering a data subject access request (DSAR) becomes guesswork. Lineage is not just a technical nice-to-have; it is a regulatory requirement for personal data.

Lineage is one form of metadata. The wider metadata record explains purpose, source, quality, access, retention, and the limits of safe reuse.

9.4 Metadata at every stage

Metadata is data about data. It is essential at every lifecycle stage for discoverability, quality assessment, and compliance. The interactive diagram above lists specific metadata requirements per stage. The overriding principle: capture metadata at the point of creation, not retrospectively.

Common misconception

“We can add metadata later when we build the data catalogue.”

Metadata that is not captured at creation time is extremely difficult to reconstruct. Legacy datasets without recorded origin, purpose, or consent basis cannot be compliantly used, shared, or deleted. Retrospective metadata reconstruction projects often cost more than the data is worth. The time to capture metadata is when the data first enters the organisation.

Loading interactive component...
9.5 Check your understanding

A GP surgery collects patient consultation notes containing personal and special category health data. A practice manager is unsure whether to retain the notes for 5 years, 10 years, or indefinitely. Which GDPR principle is most directly relevant?

An analyst discovers that a revenue figure in the monthly board report is incorrect. The report was generated from a data warehouse loaded by a pipeline sourcing three CRM systems. What is the most efficient way to find where the error was introduced?

Your organisation deletes customer records from the production database when they close their account. An internal audit discovers the same records still exist in nightly backups, the data warehouse, and two downstream reporting extracts. Is the deletion GDPR-compliant?

Loading interactive component...

Core distinctions

  • The GOV.UK data lifecycle runs through plan, collect or acquire and ingest, prepare store and maintain, use and process, share and publish, and archive or destroy. Each stage has distinct metadata, quality, and governance requirements.
  • GDPR Article 5(1)(e) (storage limitation) requires personal data to be deleted when it is no longer necessary for its collection purpose. Retention periods must be documented and enforced through automation.
  • Data lineage records the origin, transformations, and movements of a dataset. It enables debugging, regulatory compliance (GDPR Article 14), and impact analysis before schema changes.
  • Metadata captured at creation time is essential and nearly impossible to reconstruct later. The time to record source, purpose, and consent basis is at the point of collection.
  • Deletion means addressing all copies: production, backups, archives, data warehouses, and derived datasets. A row deleted from production is not GDPR-compliant if copies persist elsewhere.

Standards and sources cited in this module

  1. UK GDPR (Regulation (EU) 2016/679), legislation.gov.uk

    Article 5(1)(e) (Storage limitation), Article 14(2)(f) (Source disclosure)

    Storage limitation principle governing retention and the right to know data sources. Both drive lifecycle management practices. Article 14(2)(f) is at legislation.gov.uk/eur/2016/679/article/14.

  2. ISO/IEC 27001:2022

    Annex A.8.10 (Information deletion), Annex A.7.14 (Secure disposal or re-use of equipment)

    A.8.10 requires information to be deleted once it is no longer required. A.7.14 requires storage media to be cleared before equipment is disposed of or re-used.

  3. NHS Records Management Code of Practice (2021)

    Appendix II (Retention schedule), as amended May 2024

    Current NHS England Digital landing page for health and care retention guidance, including updates to Appendix II.

  4. ICO Guide to the UK GDPR

    Storage limitation chapter

    ICO interpretation of Article 5(1)(e) with practical examples for UK organisations.

  5. OpenLineage

    Open standard for lineage metadata collection

    Modern lineage model for datasets, jobs, and runs. Useful for operational debugging, impact analysis, and audit evidence.

Build it in the workspace

The artefacts this module describes, as things you can fill in.

Module 8 of 52 · Foundations