This page lists every post in the Real DWH Question and Answers series. Each post answers one real data warehouse interview question: the answer to say first, a small sample data set you can create, and every SQL query with its real output, so you can practice along.
Start at question 1 and go in order, or jump straight to the topic you need for your next interview.
Foundations: OLTP, OLAP, warehouses, lakes
- What is the difference between OLTP and OLAP?
- Why can't we just run our reports on the OLTP database?
- What is a data warehouse?
- What is the difference between ETL and ELT?
- What is a data lake, and why put it in front of the warehouse?
- Data lake vs data warehouse vs lakehouse: what is the difference?
- What is the difference between a row store and a column store?
Data modeling basics
- What is data modeling?
- What's wrong with keeping everything in one flat table?
- What is normalization? Explain 1NF, 2NF and 3NF.
- Primary key, foreign key, natural key, composite key: what is the difference?
- What is denormalization, and when should you use it?
- What is cardinality, and how do you read an ER diagram?
Dimensional modeling: facts, dimensions, grain
- What is dimensional modeling?
- What is a fact table? What are additive, semi-additive and non-additive measures?
- What is a dimension table, and what makes a good one?
- What is the grain of a fact table, and why does it matter so much?
- What is the difference between a star schema and a snowflake schema?
- What is a surrogate key, and why do warehouses use them?
- What is a date dimension, and why not just use date functions?
- What are the types of fact tables?
- What is a factless fact table?
- What are aggregate tables, and when should you build them?
Advanced dimensions
- What is a conformed dimension, and what is the bus matrix?
- What is a degenerate dimension?
- What is a junk dimension?
- What is a role-playing dimension?
- What are mini-dimensions and outriggers?
- What is a bridge table, and how do you handle many-to-many in a star schema?
- How do you handle late-arriving dimensions?
- How do you handle late-arriving facts?
Slowly changing dimensions
- What are slowly changing dimensions? Explain Types 0, 1, 2 and 3
- How do you implement SCD Type 2?
- How do you load SCD Type 2 with a MERGE statement?
- What are SCD Type 4 and SCD Type 6?
Loading the warehouse
- In what order do you load dimensions and facts, and why?
- Full load vs incremental load: what is CDC?
- What is a staging area? What are bronze, silver and gold layers?
- What is a data mart, and how is it different from a data warehouse?
- What is an idempotent load, and how do you add data quality checks?
Architecture and design
- Kimball vs Inmon: what is the difference?
- What is a Data Vault? Explain hubs, links and satellites
- One big table (OBT) or star schema: which is better?
- How do you make a data warehouse fast?
- Design a star schema for an online store
Each post has a matching video on the TechBrothersIT YouTube channel.



No comments:
Post a Comment
Note: Only a member of this blog may post a comment.