KS5H019/H119 F200 TA2 30 min read 10 question quiz 21 exam marks

F200 TA2: Managing Data

The data lifecycle and the analytics pipeline, how data is gathered, stored and transformed, and what data quality actually means.

The data lifecycle and the analytics pipeline

The data lifecycle

Data has a life, and each stage has its own risks and its own legal duties.

StageWhat happensThe risk here
Create or captureData is generated or collectedCollecting more than you need, or capturing it wrong
StoreIt is written somewhere durableInsecure storage, no backup, wrong location
Use and processIt is queried, analysed, sharedUsing it for a purpose it was not collected for
Share or publishIt goes to another system or personDisclosure, re-identification, loss in transit
ArchiveIt is moved to cheaper, colder storageForgetting it exists while remaining responsible for it
DestroyIt is securely deletedKeeping it past its retention period

The analytics pipeline

StepWhat it produces
1. Define the questionA decision somebody will actually make differently
2. CollectRaw data from systems, surveys, sensors, APIs, open sources
3. Clean and prepareData fit to analyse: typed, complete, consistent, deduplicated
4. TransformJoined, aggregated, derived fields, the right grain
5. AnalysePatterns, comparisons, correlations, models
6. Visualise and communicateA chart and a sentence somebody can act on
7. Act and monitorA decision, and a measurement of whether it worked
Start at step one, not step two

A pipeline built without a question produces a dashboard nobody opens. The first step is naming the decision that will be made differently depending on what the data says. If no decision changes, there is nothing to analyse.

The analytics pipelineThe analytics pipeline in seven steps, each with what it produces. One, define the question, producing a decision somebody will make differently; without this the output is a dashboard nobody opens. Two, collect, producing raw data from systems, surveys, sensors and APIs, each source bringing its own definitions and gaps. Three, clean and prepare, producing typed, complete, consistent and deduplicated data, which is where most of the time actually goes. Four, transform, producing joined and aggregated data with derived fields at the right grain, since the wrong grain double counts everything downstream. Five, analyse, producing patterns, comparisons, correlations and models, which is the shortest step and the one everybody pictures. Six, visualise and communicate, producing one chart and one sentence. Seven, act and monitor, producing a decision and a measurement of whether it worked, because an analysis nobody acts on has produced nothing.Seven steps, and what each one produces1Define the questiona decision somebody will make differently2Collectraw data from systems, surveys, sensors, APIs3Clean and preparetyped, complete, consistent, deduplicated data4Transformjoined, aggregated, derived fields at the right grain5Analysepatterns, comparisons, correlations, models6Visualise and communicateone chart and one sentence7Act and monitora decision, and a measurement of whether it workedWithout this, the output is a dashboard nobody opens.Every source brings its own definitions and its own gaps.This is where most of the time actually goes.Getting the grain wrong double counts everything downstream.The shortest step, and the one everybody pictures.If the chart needs a paragraph to read, it is the wrong chart.An analysis nobody acts on has produced nothing.
Steps three and four are most of the work. Step five is the one that gets taught.

Gathering and storing data

Methods of gathering

MethodProducesWatch out for
Operational systemsTransactions, orders, logs, bookingsCaptures what the business does, not what customers wanted
Surveys and formsDirect answers at scaleSelf report error, leading questions, low response rates
Interviews and focus groupsReasons behind the numbersSmall samples, interviewer effects
Observation and user testingWhat people actually doCostly, small, people behave differently when watched
Sensors and IoTHigh volume, high velocity readingsDrift, failure, gaps, enormous volume
Web and app analyticsBehaviour, funnels, devicesConsent requirements, blocking, bot traffic
APIsLive data from another systemRate limits, changes without notice, terms of use
Open and purchased dataScale and context you cannot generateLicence terms, age, different definitions

Where it is stored

StoreWhat it is for
Relational database (OLTP)Running the business: many small reads and writes, strict integrity
Data warehouse (OLAP)Analysing the business: large reads over structured, modelled data
Data lakeKeeping everything, structured or not, in its raw form for later
Data martA subject-specific slice of a warehouse for one team
NoSQL storeDocuments, key-values, graphs or wide columns, where a fixed schema does not fit
Cloud object storageCheap, durable storage of files at any scale
SpreadsheetA model, a prototype or a small one-off. Not a database

Schema on write and schema on read

A warehouse enforces the structure when data is written, so everything in it is clean and consistent and anything that does not fit is rejected. A lake accepts data as it arrives and applies structure when it is read, so nothing is lost but nothing is guaranteed either. The modern pattern is both: a lake for raw retention, a warehouse for the modelled data people actually query.

A spreadsheet is not a database

No concurrency control, no referential integrity, no audit trail, a row limit, and one person's accidental sort destroys the whole thing. Spreadsheets are superb modelling tools and dangerous systems of record.

OLTP, warehouse, lake and lakehouse comparedFour data stores and the job each is built for. An OLTP database runs the business: many small reads and writes, strict integrity and transactions, normalised and row oriented, with the schema enforced when data is written, as when taking an order or updating a balance. A data warehouse analyses the business: large analytical queries over modelled data, often in a star schema, stored columnar and compressed, again with the schema enforced on write, as when reporting sales by region by month. A data lake keeps everything: any structure, raw as it arrived, on cheap object storage, rejecting nothing and promising nothing, with the schema applied only when the data is read, which suits images, logs and anything else being kept for later. A lakehouse does both, running a warehouse style engine over lake files in open table formats so one copy of the data serves two workloads, which is the common modern design. The underlying trade is that schema on write guarantees quality and rejects what does not fit, while schema on read loses nothing and guarantees nothing.Four stores, four different jobsOLTP DATABASErunning the business• Many small reads and writes• Strict integrity and transactions• Normalised, row oriented• Schema enforced on writeTake an order, update a balanceDATA WAREHOUSEanalysing the business• Large analytical queries• Modelled, often star schema• Columnar, compressed• Schema enforced on writeSales by region by monthDATA LAKEkeeping everything• Any structure, raw as it arrived• Cheap object storage• Nothing rejected, nothing promised• Schema applied on readImages, logs, anything, for laterLAKEHOUSEboth at once• Warehouse engine over lake files• Open table formats• One copy, two workloads• Schema where it is neededThe common modern designSchema on write guarantees quality and rejects what does not fit. Schema on read loses nothing and guarantees nothing.
Pick the store from the question. The one that runs the business is almost never the one that should answer it.
The data stack, layer by layerThe modern data stack drawn as five layers standing on each other, with the data flowing upwards. At the bottom are the sources: orders, sensors, APIs, forms and logs, every system that generates data. Above that the data lake holds it raw, in whatever structure it arrived in, with a structure applied only when it is read. Above that the transformation layer cleans, types, joins and deduplicates it, turning a messy name and a text amount into a clean name and a proper number, and this is where most of the actual work happens. Above that the warehouse holds the modelled data as tidy tables, stored by column and ready to be queried. Only at the top does a dashboard sit, carrying one chart and one decision. The stacking is the point: the dashboard that a manager reads is standing on four layers of work, and a figure nobody trusts is worth less than no figure at all.Dashboardone chart, one decisionWarehousemodelled, ready to queryTransformationwhere most of the work isLakeraw, whatever shape it came inSourcesevery system that makes data£12.4kreorder stockcustomeramountdateAisha Khan12.502025-03-12Tom Reilly8.002025-03-12a. khan 12.5Aisha Khan12.50clean · typejoin · de-duplicatethe slow part{"cust": "a. khan ", "amt": "12.5"}{"cust": "A KHAN", "amt": 12.50, "x": null}order,A. Khan,£12.5,,12/03orderssensors{ }APIsformslogs12345
  1. At the bottom, the sources: every system that generates data.
  2. The lake holds it raw, in whatever shape it arrived.
  3. Transformation cleans, types, joins and deduplicates it.
  4. The warehouse holds modelled data, ready to be queried.
  5. And only then can a dashboard be trusted by the people reading it.
The dashboard is the thin layer on top. Almost all the effort is in the layers below it.

Transformation, data quality and assurance

ETL and ELT

  • ETL — Extract, Transform, Load. Clean and reshape the data on the way in, so only modelled data lands. Traditional warehouse practice.
  • ELT — Extract, Load, Transform. Land the raw data first, transform it inside the warehouse. Cheaper compute makes this the common modern choice, and it keeps the raw data for re-processing.

What cleaning actually involves

ProblemWhat to do about it
Missing valuesDecide per field: drop the row, impute a value, or keep it as explicitly unknown. Record which
DuplicatesDefine what makes two records the same, then deduplicate on that key
Inconsistent formatsStandardise dates to ISO, phone numbers, capitalisation, units
Inconsistent categories"UK", "U.K.", "United Kingdom", "GB" are one category spelled four ways
OutliersInvestigate before removing. An outlier is sometimes the most important record
Wrong typesDeclare types on import rather than letting the tool guess
Structural errorsTrailing spaces, mojibake, merged cells, header rows inside the data

The dimensions of data quality

DimensionThe question it answers
AccuracyDoes it match reality?
CompletenessIs anything missing that should be there?
ConsistencyDo two systems agree?
TimelinessIs it current enough for the decision?
ValidityDoes it conform to the rules and the format?
UniquenessIs each real thing represented exactly once?
RelevanceDoes it bear on the question being asked?

Validation and verification

  • Validation is automated and checks that data is reasonable: a range check, a type check, a format check, a presence check, a lookup against a list, a check digit.
  • Verification checks that data is correct: double entry, a read-back, a visual check against the source document.

Validation will happily accept a perfectly formatted wrong answer. Verification is the only thing that catches it, and it needs a human or a second source.

Data assurance and governance

  • A data dictionary: every field, its type, its format, its permitted values, its meaning
  • Ownership: a named person accountable for each dataset
  • An audit trail: who changed what, when
  • Lineage: where each figure came from and what was done to it
  • Documented cleaning: the decisions taken, so a result can be reproduced
The sentence that earns the mark

"Removing the 14 rows with a missing postcode would have biased the result, because those orders were all from one warehouse whose system does not capture postcodes, so they were kept and flagged instead." That is data quality reasoning, and it is what the longer questions reward.

ETL and ELT comparedETL and ELT compared. In ETL the data is extracted from the source, transformed to clean and reshape it, and only then loaded, so only modelled data ever reaches the warehouse; if a field that was discarded turns out to be needed, the source has to be extracted again. In ELT the data is extracted, loaded raw into the warehouse, and transformed in place using the warehouse engine, so the raw data remains available and a transformation can simply be rerun, at the cost of storing and processing data that may never be used. The comparison table: the work happens in a separate processing step for ETL and inside the warehouse engine for ELT; ETL stores modelled data only while ELT stores both raw and modelled; reprocessing needs a new extract under ETL but only a rerun under ELT; storage cost is lower for ETL and higher for ELT; and ETL suits settled requirements where compute is expensive, while ELT suits changing requirements where storage is cheap, which is why it has become the common choice.Same three letters, different order, different consequencesETLExtractread from the sourceTransformclean and reshape firstLoadonly modelled data landsOnly clean data ever reaches the warehouse. If you need a field you discarded, you re-extract from the source.ELTExtractread from the sourceLoadraw data lands firstTransformreshape inside the warehouseThe raw data stays available, so a transformation can be redone. You pay to store and process data you may not use.ETLELTWhere the work happensA separate processing stepInside the warehouse engineWhat is storedModelled data onlyRaw data and modelled dataReprocessingNeeds a new extractRerun the transformationStorage costLowerHigherBest whenCompute is expensive, rules are settledStorage is cheap, requirements change
The letters are the same. The question is whether you keep the raw data, and that decides what you can redo.
A dirty extract and the same rows cleanedOne extract of six rows shown as it arrived and again after cleaning. The dirty version contains six distinct problems. Rows one and two are the same person recorded twice with different capitalisation and a trailing space, which is a duplicate that a naive exact match would miss. The country column holds one real category spelled six ways: UK, U.K., United Kingdom, GB, uk and Uk. The joined column mixes formats, and 03/04/2026 against 4/3/26 is genuinely ambiguous about which is the month. One name and one spend are blank. A spend of 99999 is not a plausible value and is an outlier. The cleaned version standardises the country to the code GB, converts every date to ISO format, merges the duplicate pair into one row, records the missing values explicitly as unknown rather than deleting the rows, and flags the outlier for investigation rather than silently removing it. The decisions matter more than the mechanics: deleting every row with a blank field would have removed whichever source had stopped capturing that field, which biases the result rather than cleaning it.The same six rows, before and afterAS EXTRACTEDidnamecountryjoinedspend1A. ShahUK03/04/2026120.002a. shah U.K.2026-04-031203L. OkaforUnited Kingdom4/3/26—4M. PriceGB03-04-2026999995—uk03/04/202684.506J. AliUk03/04/202676.20AFTER CLEANINGidnamecountryjoinedspend1A. ShahGB2026-04-03120.003L. OkaforGB2026-03-04unknown4M. PriceGB2026-04-03flagged5unknownGB2026-04-0384.506J. AliGB2026-04-0376.20Duplicaterows 1 and 2 are the same person, differently casedInconsistent categoryUK, U.K., United Kingdom, GB, uk, UkInconsistent dates03/04/2026 and 4/3/26 are ambiguousMissing valuesa blank name and a blank spendOutlier99999 is not a plausible spendWhitespace and case'a. shah ' will not match 'A. Shah'Note the decisions: the duplicate was merged, the outlier was flagged not deleted, and the blanks were kept as explicitly unknown.Deleting every row with a blank would have removed whichever source stopped capturing that field.
Cleaning is a set of decisions, not a button. Record which ones you took and why.

Key terms you must be able to define

Data lifecycle
The stages data passes through from creation to secure destruction.
Data pipeline
The sequence of steps that takes raw data through to a decision.
ETL
Extract, Transform, Load: data is cleaned and reshaped before it is loaded.
ELT
Extract, Load, Transform: raw data is loaded first and transformed in place.
Data warehouse
A store of structured, modelled data optimised for analysis.
Data lake
A store holding raw data of any structure for later processing.
OLTP
Online transaction processing: a system optimised for many small reads and writes.
OLAP
Online analytical processing: a system optimised for large analytical queries.
Data cleaning
Correcting or removing inaccurate, incomplete, duplicated or malformed data.
Validation
An automated check that data is of the right type, format or range.
Verification
A check that data is actually correct, usually against a second source.
Data dictionary
Documentation defining every field, its type, format, permitted values and meaning.
Data lineage
A record of where data came from and every transformation applied to it.
Outlier
A value far from the rest of the distribution.

Flashcards

Say the definition out loud before you flip the card. Retrieving it from memory is what builds recall, reading it again is not.

DefineData lifecycle
AnswerThe stages data passes through from creation to secure destruction.
DefineData pipeline
AnswerThe sequence of steps that takes raw data through to a decision.
DefineETL
AnswerExtract, Transform, Load: data is cleaned and reshaped before it is loaded.
DefineELT
AnswerExtract, Load, Transform: raw data is loaded first and transformed in place.
DefineData warehouse
AnswerA store of structured, modelled data optimised for analysis.
DefineData lake
AnswerA store holding raw data of any structure for later processing.
DefineOLTP
AnswerOnline transaction processing: a system optimised for many small reads and writes.
DefineOLAP
AnswerOnline analytical processing: a system optimised for large analytical queries.

Reach the top grade on this topic

Top answers treat cleaning as a set of decisions with consequences, not a checklist. Say what you did about the missing values, why that choice rather than the alternative, and what bias the alternative would have introduced. That is the difference between describing a process and understanding it.

Mistakes that cost marks here

Avoid these
  • Confusing validation with verification. Validation checks plausibility; verification checks truth.
  • Deleting outliers automatically. Investigate first, because the outlier is sometimes the finding.
  • Dropping every row with a missing value without checking whether the missing rows share a cause.
  • Confusing a data warehouse with a data lake, or either with a database used to run the business.
  • Treating a spreadsheet as a system of record.
  • Starting with the data rather than with the question the data is supposed to answer.
Fun fact

Analysts consistently report spending the majority of their time finding, cleaning and reshaping data rather than analysing it. The modelling is the part that gets taught; the cleaning is the part that fills the week.

Knowledge check

0 of 10 answered
1What does the T in ETL stand for, and when does it happen?
2Which is the best description of a data lake?
3A form rejects a date of 31/02/2026. What kind of check is that?
4Double entry of a customer reference by two operators is an example of:
5'UK', 'U.K.', 'United Kingdom' and 'GB' appear in one column. What problem is this?
6Why should an outlier be investigated before removal?
7Which data quality dimension asks whether two systems agree?
8What is a data dictionary for?
9Which system type suits many small reads and writes with strict integrity?
10What should the first step of an analytics project be?
Score 0 / 10

Exam-style questions

Five written questions in the style of the real paper. Write a full answer, then let the marker check it against the mark scheme.

21 marks
1Identify three stages of the data lifecycle.3 marks
Identify

Mark scheme0 / 3
  • LOne valid stage
  • LA second, different stage
  • LA third, different stage
Model answer

Capture, storage, and secure destruction.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2Explain the difference between validation and verification, giving an example of each.4 marks
Explain

Mark scheme0 / 4
  • LValidation defined as an automated plausibility check
  • LA valid example of validation
  • LVerification defined as a check that the data is actually correct
  • LA valid example of verification
Model answer

Validation is an automated check that a value is plausible: that it is the right type, within an acceptable range, in the correct format, present at all, or matches an entry in a permitted list. Rejecting a date of 31 February is validation. Verification checks that the value is actually correct rather than merely possible, which generally needs a human or a second source: entering a customer reference twice and comparing the two, or reading a figure back against the original document. The distinction matters because validation will happily accept a perfectly formatted wrong answer, and only verification catches that.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3A charity has merged two supporter databases. The combined file has 48,000 rows, some supporters appear twice, dates are in two different formats and 1,200 rows have no email address.Describe the steps you would take to prepare this data for analysis.6 marks
Describe

Mark scheme0 / 6
  • LProfile the data before changing anything
  • LStandardise the date formats
  • LDefine a key for identifying duplicates
  • LDeduplicate, keeping the better record
  • LHandle the missing emails deliberately rather than deleting rows
  • LDocument the decisions, or validate the result
Model answer

I would profile the file before changing anything: row counts per source, the distinct values in each column, the pattern of the two date formats and a count of the blanks, so there is a baseline to reconcile against afterwards. Dates would be standardised to a single ISO format, converting each source separately rather than letting one tool guess, because the two formats are ambiguous for days of twelve or less. Deduplication needs a definition before it needs code: I would agree the matching key, probably email where present and surname plus postcode where not, then review a sample of the proposed matches before merging, keeping the most recently updated record for each field and preserving both source identifiers. The 1,200 missing emails would be flagged rather than deleted, and I would check whether they share a cause, because if they all come from one source then deleting them would quietly remove that source from every result. Finally I would document every decision in a data dictionary alongside a reconciliation of the final row count against the two originals, so that the figures can be explained and the process repeated.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4A company's monthly sales report disagrees with the figure produced by its finance team.Discuss the data quality issues that could cause this, and how the company should prevent it recurring.8 marks
Discuss

Mark scheme0 / 8
  • LDifferent definitions of the same measure
  • LTiming or timeliness differences
  • LDuplicates or missing records
  • LDifferent sources or systems
  • LManual handling introducing error
  • LA single source of truth is proposed
  • LGovernance measures are proposed
  • LA judgement about the root cause
Model answer

The most common cause is not an error at all but a difference in definition: the sales report may be counting gross order value including VAT at the point of order, while finance counts net revenue excluding VAT and only once the order has shipped and not been returned. Both numbers are correct and they measure different things. Timing is the next candidate: a month-end cut off taken at midnight in one timezone and at close of business in another will move orders between months, as will counting by order date in one system and posting date in the other. Beyond definition and timing come genuine quality problems: duplicated rows from a reimported export, missing records from a channel whose feed failed silently, and the two teams drawing from different systems, typically an operational database on one side and a warehouse or a hand-built spreadsheet on the other. Manual handling makes all of this worse, because every copy, paste and sort is an opportunity for a row to be lost without trace. Prevention is mostly governance rather than technology. The company should agree a single source of truth for sales and publish a data dictionary defining the measure precisely, including VAT treatment, returns, cancellations and the cut off rule. Each dataset needs a named owner, automated extraction rather than manual export, recorded lineage so any figure can be traced to its source, and a monthly reconciliation between the two reports that has to be explained rather than ignored. The root cause in cases like this is almost always definitional, which is why the fix is a written definition both teams have signed up to, not a more sophisticated report.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 21