Data warehouse developer interview questions: build, test and migrate
Data warehouse developer interview questions focus on the build: turning a reporting need into tables, writing the SQL and procedures that populate and expose them, keeping BI queries fast, and proving the numbers match the source. Expect a SQL exercise, a design task such as sketching a sales mart from a short brief, and questions on testing, deployment and warehouse migrations. Interviewers want to hear how you work with report developers and business owners, not only definitions.
By Evin JohnPublished 7 min read
What the role involves, and what this page covers
A data warehouse developer, sometimes titled DWH developer, BI developer or warehouse engineer, owns the code and structures between the source systems and the reports. On a given week that can mean writing a source-to-target mapping for a new subject area, building fact and dimension tables, writing views for the reporting tool, tuning a dashboard query that times out, or chasing why finance's revenue figure differs from the warehouse by a small amount.
Concept questions such as star versus snowflake schemas or SCD types are covered on the data warehouse interview questions page, and load mechanics such as incremental extraction and restartable jobs on the ETL developer page. This page covers the rest of the job: requirements, build, tuning for readers, testing, release and migration. Review the concept page first if the vocabulary is rusty, because interviewers assume it.
How the interview loop is usually structured
- Recruiter or hiring manager screenPlatforms you have built on (for example SQL Server, Oracle, Teradata, Snowflake, BigQuery, Redshift, Synapse or Databricks), the tools that moved data, and the reporting tools you fed.
- SQL testWindow functions, aggregation at the right grain, merges and comparisons between two tables. Some teams use a take-home on a sample schema instead.
- Design exerciseA short brief, such as a retailer wanting daily sales by store and promotion. You choose the grain, list the facts and dimensions, and explain how the data arrives.
- Team interviewReport developers, analysts or a data architect. They test how you handle changing requirements, numbers that do not match and support requests.
Requirements and design questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| A sales director wants a dashboard of margin by product and region. What do you ask first? | Requirements | Which decisions it serves, how margin is defined, the lowest level of detail needed, how far back, how fresh, and which source holds cost. |
| Design a mart from this brief in ten minutes. | Design under time | State the grain in one sentence, then facts, dimensions, keys and the source for each, and say what you would confirm with the business. |
| How do you write a source-to-target mapping document? | Specification | Each target column with its source table and field, transformation rule, default for missing values, data type and an owner who signed off. |
| The business wants a new measure next week. How do you add it safely? | Change handling | Check whether it fits the existing grain, agree the definition in writing, add it in development, compare results against a manual calculation, then release. |
| Two teams want the same metric defined differently. | Conformance | Expose both only if they are truly different metrics with different names, otherwise get one owner to agree a definition and retire the other. |
| When would you build an aggregate table? | Performance design | When many reports read the same summarized level and the detail query is too slow or too costly, with a plan to keep it in step with the base fact. |
| How do you handle a source that cannot provide history? | Data reality | Start capturing snapshots now, be clear with users about the date history begins, and avoid inventing back-filled values. |
| What belongs in the warehouse and what does not? | Scope | Data that supports shared reporting and analysis. Operational lookups, one-person spreadsheets and raw logs nobody queries usually belong elsewhere. |
Building for the people who read the data
- Why expose views or a semantic layer instead of base tables? Views hide joins and technical columns, give business names, and let you change the physical design without breaking every report.
- How do you restrict rows by user, such as managers seeing only their region? Row-level security in the warehouse or the BI tool, driven by a mapping table of users to regions, tested with accounts from each group.
- A dashboard query takes two minutes. Where do you start? Read the query plan, check whether filters can prune partitions or use clustering, look for joins that fan out rows, and consider an aggregate or a materialized view.
- How do distribution, sort and clustering choices differ across platforms? On MPP systems such as Redshift or Synapse you choose how rows spread across nodes so big joins stay local. On Snowflake and BigQuery you mostly choose clustering or partitioning columns. In each case, pick columns that match common filters and joins.
- What does a stored procedure give you that a view does not? Control flow, parameters, multi-step logic and transactions. The cost is that it is harder to test and to read, so keep procedures small and well named.
- When is a materialized view better than a scheduled table rebuild? When the platform can refresh it incrementally and the query pattern is stable. A scheduled table is easier to reason about when logic is complex.
- How do you keep report developers from writing slow SQL against the warehouse? Give them modeled views at the right grain, publish examples, watch the query history for expensive patterns and help fix the worst offenders.
Testing and reconciliation questions
Senior interviewers often spend most of their time here, because a warehouse that runs but does not match the source is worse than none. A good answer layers checks: row counts, sums of key measures, distinct keys, and a sample traced end to end.
WITH src AS (
SELECT order_date, COUNT(*) AS n, SUM(amount) AS total
FROM source_orders
GROUP BY order_date
),
dw AS (
SELECT d.calendar_date AS order_date, COUNT(*) AS n, SUM(f.amount) AS total
FROM fact_sales f
JOIN dim_date d ON d.date_key = f.date_key
GROUP BY d.calendar_date
)
SELECT COALESCE(src.order_date, dw.order_date) AS order_date,
src.n AS source_rows, dw.n AS warehouse_rows,
src.total AS source_total, dw.total AS warehouse_total
FROM src
LEFT JOIN dw ON dw.order_date = src.order_date
WHERE dw.order_date IS NULL OR src.n <> dw.n OR src.total <> dw.total
UNION ALL
SELECT dw.order_date, NULL, dw.n, NULL, dw.total
FROM dw
LEFT JOIN src ON src.order_date = dw.order_date
WHERE src.order_date IS NULL;- Finance says last month's revenue is slightly off. How do you find the gap? Reconcile by day, then by store or product, until the difference sits in a small set of rows. Check currency, returns, cancelled orders and time zone cut-offs, which cause most small gaps.
- What automated tests do you run after each load? Not-null and uniqueness on keys, referential checks from facts to dimensions, accepted value lists, row count change within a tolerance, and a total compared with the source.
- How do you test a change to a fact table before release? Build it in a development schema from the same inputs, compare old and new outputs row by row or by aggregate, and explain every difference.
- A dimension row is missing for some facts. What happened? Usually a late-arriving or rejected dimension record. Point facts at an unknown member, log the case, and repair the key when the record arrives.
Deployment, operations and migration questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How do you version and deploy database objects? | Release discipline | DDL and procedures in source control, changes promoted through dev, test and production by scripts or a migration tool, never edited by hand in production. |
| How do you add a column to a large fact table without downtime? | Safe change | Add it as nullable, backfill in batches, then update views and reports. Check whether the platform rewrites the table for the change. |
| The nightly build failed and reports open at 8 a.m. What do you do? | Support | Find the failed step from logs, decide whether to rerun, tell report users which figures are stale, and fix the cause the same day. |
| We are moving from an on-premises warehouse to a cloud platform. How do you plan it? | Migration | Inventory objects and their users, retire what nobody uses, convert SQL dialect and procedures, run old and new in parallel with reconciliation, then cut reports over in waves. |
| What surprised you in a warehouse migration? | Experience | Real examples such as implicit type conversions, different NULL or collation behavior, procedural code without an equivalent, or cost growing from unfiltered queries. |
| How do you control warehouse cost on a pay-per-use platform? | Cost awareness | Right-size compute, suspend idle warehouses, prune partitions, avoid repeated full scans and track the most expensive queries each week. |
Fictional example
- We moved a twelve-year-old SQL Server warehouse to a cloud platform. I first pulled query logs for three months and found that about a third of the 400 tables had no readers, so we agreed with owners to leave them behind. For the rest, I rewrote the procedures that used cursors as set-based SQL, because they would not translate cleanly. We ran both warehouses in parallel for six weeks with a daily reconciliation like the one above, and every mismatch went on a shared list with a cause. Most were rounding and time zone cut-offs. Reports moved over one department at a time, finance last, and the old server was switched off after a full month-end close matched.
Short questions to rehearse
- What is the grain of the last fact table you built?
- How do you handle late-arriving facts in a mart that reports by day?
- How would you document the warehouse for a new report developer?
- What is a surrogate key, and who generates it in your pipelines?
- Tell me about a time a requirement changed after you had built the tables.
- How do you decide between building in the warehouse and in the BI tool's model?
A two-week preparation plan
- Days 1 to 3: refresh dimensional vocabulary on the concept page, then design two marts from short briefs on paper, stating grain first.
- Days 4 to 7: daily SQL: window functions, latest row per key, table comparisons, reconciliation by day and MERGE statements.
- Days 8 to 9: read the documentation overview for the platform in the job posting, focused on partitioning, clustering or distribution and cost controls.
- Days 10 to 12: rehearse three stories: a build, a mismatch you traced, and a migration or major change.
- Days 13 to 14: prepare questions about the team's source systems, release process and who owns metric definitions.
Design exercises reward thinking aloud, which takes practice. Natively, an AI interview assistant for Mac and Windows, transcribes your mock sessions on your computer and keeps the transcript for review. While practicing, it can read a schema or SQL prompt from a screenshot and suggest an approach, and it can use the CV and job description you add to shape answer suggestions.
Questions people ask
What questions are asked in a data warehouse developer interview?
Expect a SQL test, a design exercise that turns a report request into a mart with a stated grain, and questions on source-to-target mapping, views and procedures, tuning slow BI queries, reconciliation with source systems, deployment and warehouse migrations.
How is a data warehouse developer different from an ETL developer?
The roles overlap. An ETL developer focuses on moving data reliably into the warehouse. A data warehouse developer also designs the marts, builds the objects reports read from, tunes those queries and reconciles the results with the business.
How do I prepare for a data warehouse developer interview?
Refresh dimensional modeling terms, practice designing two or three marts from short briefs, write daily SQL including table comparisons and reconciliations, and prepare stories about a build, a mismatch you traced and a migration.
What is a source-to-target mapping?
A document that lists every target column with its source table and field, the transformation rule, the default for missing values, the data type and who approved it. It is the contract between the business, the developer and testers.
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.
