Data warehouse interview questions: dimensional design, SCDs and ELT
Data warehouse interview questions test whether you can design storage for analysis rather than for transactions: why OLAP systems are columnar and denormalized, how Kimball's dimensional approach differs from Inmon's enterprise model, when to use a star or snowflake schema, and how slowly changing dimensions keep history. Expect follow-ups on ETL versus ELT, the lakehouse, partitioning, and how you would load and test a fact table.
By Evin JohnPublished 8 min read
Who gets asked data warehouse questions
These questions come up for data engineers, analytics engineers, BI developers, ETL developers and data architects, and in lighter form for data analysts. Early rounds check the vocabulary: facts, dimensions, schemas, SCD types. Later rounds hand you a business process, such as subscriptions or warehouse shipments, and ask you to design the tables and the load. Senior interviews add platform questions: how the warehouse is layered, how you would move from a legacy on-premise warehouse to a cloud platform, and how you keep numbers consistent across teams.
Warehouse fundamentals
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What is a data warehouse? | Definition | A central store of integrated, historical data from many source systems, organized for querying and reporting rather than for running the business day to day. |
| OLTP versus OLAP? | Workload awareness | OLTP handles many short reads and writes of single rows with strict consistency and normalized tables. OLAP handles fewer, heavier queries that scan and aggregate millions of rows, so it favors columnar storage and denormalized models. |
| Why are warehouses usually columnar? | Storage | Analytical queries read a few columns across many rows. Storing each column together means reading only those columns, and similar values compress very well. |
| Data warehouse, data mart and data lake? | Landscape | A warehouse integrates data across the business. A mart is a subject-focused slice, such as finance or marketing. A lake stores raw files of any shape cheaply, with structure applied when read. |
| What is a staging area? | Architecture | A landing zone where raw extracts sit before they are cleaned and conformed. It decouples extraction from transformation and lets you reprocess without hitting the source again. |
| What is MPP? | Engines | Massively parallel processing: data is spread across many nodes, each scans its share, and partial results are combined. Most cloud warehouses work this way under the hood. |
| What is a conformed dimension? | Consistency | A dimension, such as customer or date, shared with the same keys and meanings across several fact tables, so metrics from different processes can be compared side by side. |
| Why keep history in a warehouse at all? | Purpose | Source systems often overwrite or purge data. The warehouse answers questions about how things were at a point in time and how they changed. |
Kimball, Inmon and other architectures
- Explain the Kimball approach. Bottom-up: start from business processes, build dimensional star schemas for each, and tie them together with conformed dimensions planned in a bus matrix. Value arrives early because each mart is usable on its own.
- Explain the Inmon approach. Top-down: build an integrated, normalized enterprise data warehouse first as the single source of truth, then derive dimensional data marts from it for reporting. It takes longer up front but integrates sources more strictly.
- Which would you choose? It depends on the organization. Teams with clear reporting needs and limited time usually go Kimball-style; large enterprises with many overlapping sources and strong governance needs sometimes prefer a normalized core. Many real platforms mix the two.
- What is the medallion (bronze, silver, gold) layout? Raw data lands in bronze, is cleaned and conformed in silver, and is shaped into business-ready tables in gold. It is a layering convention, not a modeling method, and dimensional models often live in the gold layer.
- Where does Data Vault fit? It is a modeling style for the integration layer built from hubs, links and satellites, designed for auditability and many changing sources. Marts for reporting are usually built on top of it.
- What is a bus matrix? A grid with business processes as rows and dimensions as columns, marking which dimensions each process uses. It plans conformed dimensions before anyone builds tables.
Schemas, facts and dimensions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Star schema versus snowflake schema? | Core design | A star has one fact table joined directly to flat, denormalized dimensions. A snowflake splits dimensions into normalized sub-tables (product to category to department). Stars are simpler and faster for BI tools; snowflaking saves little storage and adds joins. |
| What are the three main kinds of fact table? | Fact types | Transaction facts record one row per event. Periodic snapshots record the state at regular intervals, such as daily account balances. Accumulating snapshots track one row per process instance and update it as milestones happen, such as order placed, shipped and delivered. |
| Additive, semi-additive and non-additive measures? | Aggregation | Additive measures (sales amount) sum across every dimension. Semi-additive ones (balances, inventory levels) sum across accounts but not across time. Non-additive ones (ratios, percentages) must be recomputed from their parts. |
| What is a factless fact table? | Edge cases | A fact table with no numeric measures that records that something happened or was eligible, such as student attendance or which products were on promotion, so you can count events or find what did not happen. |
| What is a degenerate dimension? | Patterns | A dimension attribute stored directly in the fact table with no dimension table of its own, typically a transaction or invoice number used for grouping lines. |
| What is a role-playing dimension? | Patterns | One physical dimension used several times with different meanings, such as a date dimension joined as order date, ship date and delivery date through views or aliases. |
| What is a junk dimension? | Patterns | A single small dimension that combines several low-cardinality flags and codes, such as payment type and gift-wrap flag, instead of cluttering the fact table with them. |
| How do you handle many-to-many between a fact and a dimension? | Advanced | A bridge table, for example between a bank account fact and its several account holders, often with a weighting factor so totals are not double counted. |
Slowly changing dimensions
- What is a slowly changing dimension? A dimension whose attributes change occasionally, such as a customer's city or a product's category, where you must decide whether reports should see old values, new values or both.
- Type 0 and Type 1? Type 0 keeps the original value forever (date of birth, original signup channel). Type 1 overwrites in place, so history is lost and past reports change; it suits corrections of errors.
- Type 2? Insert a new row for each change with its own surrogate key, plus valid-from and valid-to dates and a current flag. Facts point to the version that was current when they happened, so history is reported as it was.
- Type 3? Add a column for the previous value, which supports simple before-and-after comparisons, such as an old and new sales territory after a realignment, but only one step back.
- Types 4 and 6? Type 4 moves rapidly changing attributes to a separate mini-dimension or history table. Type 6 combines 1, 2 and 3: Type 2 rows plus a column holding the current value on every version.
- How do you look up the right SCD2 row when loading facts? Join on the natural key with the event date between valid-from and valid-to. Late-arriving facts make this important, because the current row may not be the one that applied then.
- What is a late-arriving dimension? A fact arrives before its dimension member exists. Insert a placeholder dimension row flagged as inferred, point the fact at it, and update the row when the real data arrives.
-- 1. Expire current rows whose tracked attributes changed
UPDATE dim_customer
SET valid_to = '2026-12-01', is_current = 0
WHERE is_current = 1
AND EXISTS (
SELECT 1 FROM stg_customer s
WHERE s.customer_id = dim_customer.customer_id
AND (s.city <> dim_customer.city OR s.segment <> dim_customer.segment)
);
-- 2. Insert a new current version for changed and brand-new customers
INSERT INTO dim_customer (customer_id, city, segment, valid_from, valid_to, is_current)
SELECT s.customer_id, s.city, s.segment, '2026-12-01', '9999-12-31', 1
FROM stg_customer s
LEFT JOIN dim_customer d
ON d.customer_id = s.customer_id AND d.is_current = 1
WHERE d.customer_id IS NULL;ETL, ELT and the lakehouse
| Question | What it tests | What a strong answer shows |
|---|---|---|
| ETL versus ELT? | Pipeline design | ETL transforms data in a separate engine before loading the warehouse. ELT loads raw data first and transforms it with SQL inside the warehouse. Cheap cloud storage and elastic compute made ELT the common default; ETL still fits when data must be masked or reduced before it lands. |
| Full load versus incremental load? | Loading | A full load replaces everything and is simple but slow at scale. An incremental load processes only new or changed rows using timestamps, change data capture or high-water marks, and needs a plan for deletes and late data. |
| What is change data capture? | Sources | Reading inserts, updates and deletes from a source database's log instead of querying tables, so the warehouse gets every change with little load on the source. |
| What is a lakehouse? | Modern platforms | Warehouse features (transactions, schemas, time travel, fast SQL) on top of open files in object storage, through table formats such as Delta Lake, Apache Iceberg or Apache Hudi. One copy of data serves BI and data science. |
| How does partitioning help a warehouse? | Performance | Splitting a large table by a column, usually date, lets queries that filter on it skip whole partitions. Too-fine partitions create many small files and metadata overhead. |
| When would you use a materialized view or aggregate table? | Performance | When many dashboards run the same heavy aggregation. Precomputing it trades storage and refresh cost for much faster reads. |
| How do you test a warehouse load? | Quality | Row count and sum reconciliation against the source, uniqueness and not-null checks on keys, referential checks from facts to dimensions, and freshness checks, run automatically after each load. |
Senior and scenario questions
- Two dashboards show different revenue for the same month. How do you resolve it? Trace both to their queries and tables. Usually the definitions differ (gross versus net, order date versus ship date, refunds included or not) or one reads a non-conformed dimension. Agree one definition, put it in a shared model, and point both at it.
- Design a warehouse for an e-commerce company's orders. Name the processes (orders, payments, shipments, returns), pick the fact type for each, list conformed dimensions (date, customer, product, store or channel), decide which attributes need Type 2 history, and plan the incremental load.
- How would you migrate a legacy on-premise warehouse to the cloud? Inventory sources, jobs and reports by usage; move the data first and rebuild transformations as ELT; run old and new in parallel with reconciliation; retire reports that nobody uses instead of migrating them.
- A nightly load ran twice. What breaks, and how do you design against it? Appending loads double facts and Type 2 logic may create duplicate versions. Make each load replace its partition or merge on keys so reruns are harmless.
- Queries on a five-year fact table are slow. What do you check first? Whether filters hit the partition or cluster column, whether the query touches only needed columns, join fan-out from a non-unique dimension key, and whether an aggregate table would serve the dashboard.
Fictional example
- Interviewer
- Sales are reported by customer region, and customers sometimes move regions. Would you make region a Type 1 or a Type 2 attribute?
- Candidate
- I would ask the business how they want last year's report to look after a customer moves. If regional managers are paid on the sales that happened in their region at the time, then last year's numbers must not shift when someone moves, so region is Type 2: a new customer row with its own surrogate key and validity dates, and each sale keeps pointing at the version that was current on the sale date. If they only ever want to see customers in their current region, Type 1 is simpler and history just follows the customer. Often the honest answer is both, which is what Type 6 gives you: the Type 2 rows plus a current-region column on every version, so a report can group by region at the time or by current region without a second join. I would also check how often regions change. If it is constant, a mini-dimension may be better than exploding the customer table.
How to prepare for data warehouse interview questions
- Model three business processesPick retail sales, subscriptions and support tickets. For each, choose the fact type, list the dimensions and decide which attributes change slowly.
- Write an SCD Type 2 load by handDo it once in plain SQL, then once with MERGE, and rerun both to confirm they are idempotent.
- Know both schoolsBe able to explain Kimball and Inmon in a minute each without taking sides, and say where Data Vault and the medallion layout fit.
- Explain a platform choiceSay when you would pick a cloud warehouse, a lakehouse on open table formats, or both, and why ELT became the default.
- Prepare a reconciliation storyHave a real or practice example of tracking down a number that did not match, because almost every interviewer asks for one.
Grain, keys and normalization have their own page: data modeling interview questions. For platform specifics, Snowflake interview questions covers a popular cloud warehouse and Spark and Hadoop interview questions covers the engine behind many lakehouse loads. The data engineer interview questions page shows how it all fits into one role loop.
Dimensional design questions reward a calm, structured walk through the business process, which is easier after a few out-loud attempts. Natively, an AI interview assistant for Mac and Windows, transcribes those practice walks, can propose a model or answer while you talk, and reads a schema diagram, an ER sketch or a SQL prompt from a screenshot. On Pro or the free trial it brings in the résumé and job description you add, and you can reread each mock's transcript and notes later.
Questions people ask
What are common data warehouse interview questions?
OLTP versus OLAP, Kimball versus Inmon, star versus snowflake schema, fact table types, additive and semi-additive measures, slowly changing dimension types, ETL versus ELT, and how you would load and test a fact table.
What is the difference between a star schema and a snowflake schema?
A star schema joins one fact table to flat, denormalized dimension tables. A snowflake schema normalizes dimensions into several related tables, which adds joins and is usually slower and harder to use for reporting.
What is SCD Type 2?
A slowly changing dimension method that adds a new row with its own surrogate key and validity dates whenever a tracked attribute changes, so facts stay linked to the version that applied when they happened.
Is ETL or ELT better for a data warehouse?
On cloud warehouses ELT is the usual default because raw data loads cheaply and SQL transforms scale inside the warehouse. ETL still fits when data must be filtered, masked or heavily reshaped before it lands.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
