How data engineers build and run the pipelines that move and shape data for analytics. Covers dimensional modelling, warehouses and lakes, batch and streaming pipelines, Spark, Kafka, Airflow, dbt and analytical SQL.
You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.
How analytical data is organised into fact and dimension tables, and how dimensions keep or discard history when source data changes.
40 total questions
Card #1
Fact table
Card #2
Dimension table
Card #3
Grain of a fact table
1. Your orders fact table has one row per order, and the business now wants revenue broken down by product. What is the underlying problem?
2. After loading dim_customer as a Type 2 dimension, SELECT COUNT(*) FROM dim_customer returns more than the number of real customers. Why?
3. A sale is loaded into a fact table whose customer dimension is Type 2. Which customer key should the fact row store?
1. Bill Inmon argued for a normalised enterprise data warehouse built first, an approach usually contrasted with Ralph ___'s dimensional approach.
Hint: Author of The Data Warehouse Toolkit
2. Third normal form exists mainly to prevent update ___, where a fact stored in two places is changed in only one of them.
Hint: Inconsistencies caused by redundancy
3. An ___ table is a pre-summarised copy of a fact table, such as daily sales by store, built to speed up common queries.
Hint: Totals rolled up from detail rows