CAB206 · Unit 2: Data warehousing and ETL
Data warehouse, data mart, data lake and OLTP versus OLAP
9 practice questions
Key points
- Warehouse: subject-oriented, integrated, time-variant, non-volatile
- Data mart = subject-focused subset
- Lake = schema-on-read; warehouse = schema-on-write
- OLTP runs the business; OLAP analyses it
- Kimball bottom-up with conformed dimensions; Inmon top-down
Data warehouse (Bill Inmon's definition): a subject-oriented, integrated, time-variant, non-volatile collection of data in support of management decisions.
- Subject-oriented: organised around business subjects (sales, customers), not applications.
- Integrated: data from many sources is made consistent in naming, units and encoding.
- Time-variant: holds history, so trends can be analysed.
- Non-volatile: data is loaded and read, not routinely updated or deleted by transactions.
Data mart: a smaller, subject-focused subset of the warehouse (for example, sales or finance) serving one team.
Data lake: stores raw data of any format (files, logs, JSON, images) cheaply, with schema-on-read: structure is applied when the data is read. A warehouse uses schema-on-write: data is cleaned and structured before it is loaded. A lakehouse combines lake storage with warehouse-style management and SQL.
OLTP vs OLAP
| OLTP | OLAP | |
|---|---|---|
| Purpose | Run the business: many short insert/update transactions | Analyse the business: complex reads and aggregations |
| Data | Current, detailed | Historical, summarised and detailed |
| Design | Highly normalised | Denormalised (star schema) |
| Users | Clerks, applications | Analysts, managers |
| Storage | Row-oriented typical | Columnar often (reads few columns over many rows) |
Two design philosophies. Inmon (top-down): build a normalised enterprise warehouse first, then derive marts. Kimball (bottom-up): build dimensional data marts per business process and integrate them with conformed dimensions (the bus architecture).
Try two questions
'Non-volatile' in the warehouse definition means that:
- The warehouse server must stay switched on at all times without a break
- Loaded data is read and appended to, not routinely updated or deleted by transactions
- Data can never be loaded into the warehouse after its first day of use
- Every record is encrypted on disk, so no one can ever read it again
Show the answer
B. Non-volatile means the stored history is stable: new data is added, but existing records are not changed by day-to-day transactions.
Which type of system is designed for large numbers of short insert and update transactions such as order entry?
- OLTP
- OLAP
- Data lake
- Data mart
Show the answer
A. OLTP systems run day-to-day transactions; OLAP systems support analysis.