Real DWH Question and Answers

Data Warehouse Interview Q&A · All 45 questions

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

  1. What is the difference between OLTP and OLAP?
  2. Why can't we just run our reports on the OLTP database?
  3. What is a data warehouse?
  4. What is the difference between ETL and ELT?
  5. What is a data lake, and why put it in front of the warehouse?
  6. Data lake vs data warehouse vs lakehouse: what is the difference?
  7. What is the difference between a row store and a column store?

Data modeling basics

  1. What is data modeling?
  2. What's wrong with keeping everything in one flat table?
  3. What is normalization? Explain 1NF, 2NF and 3NF.
  4. Primary key, foreign key, natural key, composite key: what is the difference?
  5. What is denormalization, and when should you use it?
  6. What is cardinality, and how do you read an ER diagram?

Dimensional modeling: facts, dimensions, grain

  1. What is dimensional modeling?
  2. What is a fact table? What are additive, semi-additive and non-additive measures?
  3. What is a dimension table, and what makes a good one?
  4. What is the grain of a fact table, and why does it matter so much?
  5. What is the difference between a star schema and a snowflake schema?
  6. What is a surrogate key, and why do warehouses use them?
  7. What is a date dimension, and why not just use date functions?
  8. What are the types of fact tables?
  9. What is a factless fact table?
  10. What are aggregate tables, and when should you build them?

Advanced dimensions

  1. What is a conformed dimension, and what is the bus matrix?
  2. What is a degenerate dimension?
  3. What is a junk dimension?
  4. What is a role-playing dimension?
  5. What are mini-dimensions and outriggers?
  6. What is a bridge table, and how do you handle many-to-many in a star schema?
  7. How do you handle late-arriving dimensions?
  8. How do you handle late-arriving facts?

Slowly changing dimensions

  1. What are slowly changing dimensions? Explain Types 0, 1, 2 and 3
  2. How do you implement SCD Type 2?
  3. How do you load SCD Type 2 with a MERGE statement?
  4. What are SCD Type 4 and SCD Type 6?

Loading the warehouse

  1. In what order do you load dimensions and facts, and why?
  2. Full load vs incremental load: what is CDC?
  3. What is a staging area? What are bronze, silver and gold layers?
  4. What is a data mart, and how is it different from a data warehouse?
  5. What is an idempotent load, and how do you add data quality checks?

Architecture and design

  1. Kimball vs Inmon: what is the difference?
  2. What is a Data Vault? Explain hubs, links and satellites
  3. One big table (OBT) or star schema: which is better?
  4. How do you make a data warehouse fast?
  5. 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.