1. University MCA (AI/ML) Semester 2
  2. CAB206
  3. Unit 2

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

OLTPOLAP
PurposeRun the business: many short insert/update transactionsAnalyse the business: complex reads and aggregations
DataCurrent, detailedHistorical, summarised and detailed
DesignHighly normalisedDenormalised (star schema)
UsersClerks, applicationsAnalysts, managers
StorageRow-oriented typicalColumnar 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

Question 1 · Tier 2, Understand

'Non-volatile' in the warehouse definition means that:

  1. The warehouse server must stay switched on at all times without a break
  2. Loaded data is read and appended to, not routinely updated or deleted by transactions
  3. Data can never be loaded into the warehouse after its first day of use
  4. 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.

Question 2 · Tier 1, Recall

Which type of system is designed for large numbers of short insert and update transactions such as order entry?

  1. OLTP
  2. OLAP
  3. Data lake
  4. Data mart
Show the answer

A. OLTP systems run day-to-day transactions; OLAP systems support analysis.