Analytics Engineer interview questions, case study and skills assessment
This role owns the modelling layer between raw warehouse tables and the reports the business runs on. You'll build and test dbt models across staging, intermediate and mart layers, define metrics once so revenue, retention and usage mean the same thing everywhere, and keep query cost and run time under control. Success looks like analysts trusting the models enough to stop rebuilding logic themselves.
The skills this role needs
Every question and score ties back to one of these.
Advanced SQL
Nearly every model, test and investigation in this role starts as SQL against Snowflake, BigQuery or Databricks. Window functions, joins at the right grain and set logic are daily work.
Dimensional and layered data modelling
The job is explicitly staging, intermediate and mart layers, so the candidate needs judgement about grain, keys and what belongs in each layer.
Data quality and testing
Tests and validation are how analysts come to trust the models, and the description calls for a methodical approach rather than ad hoc checks.
Metrics definition and stakeholder alignment
Defining revenue, retention and usage once means negotiating a single definition with people who currently disagree, then documenting it.
Warehouse performance and cost control
Improving model performance and warehouse spend is a named responsibility, and it needs someone who can read a query plan and pick materialisations deliberately.
Version control and code review
Models ship through pull requests, so clear commits, readable diffs and useful review comments keep the layer maintainable by more than one person.
Sample assessment questions
What candidates see, and what a strong answer shows. Your full assessment would have more, scored against a rubric.
- Multiple choiceData quality and testing
Your fct_orders model has a unique test on order_id that has passed for months. This morning it fails: 400 duplicate order_ids out of 2 million rows. The daily revenue mart is built on top of fct_orders and refreshes in two hours. What do you do first?
- Drop the duplicates with a row_number filter in the model so the pipeline stays green, then look into it later
- Trace the duplicates back to the source table to find out whether they are genuine new records, a replayed load or a changed key
- Remove the unique test, since a key that drifts clearly isn't unique any more
- Alert stakeholders that revenue numbers are wrong and pause all downstream jobs until the cause is known
What good looks like
Option B. The failing test is information, not an obstacle. A strong candidate diagnoses at the source before changing logic, because deduping blind can silently drop real orders or mask a double-loaded batch. Options A and C hide the problem; D over-reacts before anyone knows the scale.
- Written answerMetrics definition and stakeholder alignment
Finance reports monthly retention by counting customers who paid in both of two consecutive months. The product team counts customers who logged in during the month. Both call their number "retention" and the two differ by about 12 points. You've been asked to build one retention metric in the metrics layer. Describe how you'd handle it, in roughly 150 words.
What good looks like
A strong answer doesn't pick a winner by authority. It recognises these measure different things, proposes naming them distinctly (paid_retention, active_retention) rather than forcing a false merge, and defines the grain and time window for each. Look for a concrete step to get both teams to agree in writing, plus documentation in dbt so the definition travels with the model.
- Put in orderLayered data modelling
You're rebuilding a messy warehouse where analysts query raw tables directly. Put these steps in the order you'd tackle them.
- Agree the handful of mart tables analysts actually need and their grain
- Build staging models that rename, cast and lightly clean each source table
- Add tests on primary keys and critical columns, plus model documentation
- Build intermediate models for shared joins and business logic
- Deprecate direct raw-table access and migrate existing dashboards
What good looks like
Reasonable orders start by agreeing the target marts, then staging, intermediate, tests and docs, with migration last. The signal is the reasoning: you define what the business needs before building plumbing, and you don't cut off raw access until replacements are tested and trusted.
- Written answerWarehouse performance and cost control
A single dbt model runs for 40 minutes every hour and accounts for a large share of your monthly warehouse spend. It's a full rebuild of a 900 million row event table. List the questions you'd ask and the changes you'd consider, with the trade-off each one carries.
What good looks like
Good answers ask who consumes it and how fresh the data really needs to be before touching the SQL. Expect incremental materialisation with a sensible unique key and late-arriving data handling, partitioning or clustering on the filter column, and cutting the refresh cadence. The trade-off framing matters: incremental models drift and need periodic full refreshes.
Case study
A take-home brief built for this role. About 90 minutes.
Rebuilding the revenue and retention layer at Tilbury Learning
Tilbury Learning sells online course subscriptions to companies. Their warehouse holds Stripe invoices, a subscriptions table from the app database, a user events stream and a Salesforce account export. Analysts write their own SQL against these raw tables, which is why the board deck, the finance model and the product dashboard all report different monthly revenue. Three numbers, three meanings, no documentation. You've been given table schemas, row counts and sample rows for each source, plus short written notes from the finance lead and the head of product on how each defines revenue and retention. There is no live warehouse to connect to. Work from the schemas and write the SQL as you would ship it. Your job is to propose the model structure, write the key SQL and set out the metric definitions you'd put to both teams.
- 1
Design the model layers
Sketch the staging, intermediate and mart models you'd build from these four sources. For each model, give the name, its grain, its primary key and one line on why it exists. A diagram, table or indented list is fine. Flag any assumption you had to make about the source data.
- 2
Write the core SQL and tests
Write the SQL for one intermediate model and one mart model from your design, in the dialect of your choice. Then list the dbt tests you'd attach to each and say what failure of each test would tell you. Include at least one test that goes beyond unique and not_null.
- 3
Resolve the metric conflict
Write a one-page note to the finance lead and the head of product. Give your proposed definitions of monthly revenue and retention, explain where each team's current number comes from and why it differs, and state what you need them to agree to. Keep it readable by non-technical people.
Recommended hiring stages
In order. Each stage is there because it tells you something the others can't.
- 1
SQL and modelling skills assessment
Assessment · 60 minutes, taken onlineSQL depth and modelling judgement are the floor for this role, and both are far quicker to check with work samples than to talk around in a call.
- 2
First call with the hiring manager
Conversation · 45-minute callCovers how they've worked with analysts and stakeholders, what they've owned end to end, and whether the warehouse and tooling here match what they're after.
- 3
Take-home case study
Assessment · 90 minutes of work, returned within 3 daysThe core of the job is designing a layer, not answering isolated questions. This is the only stage that shows how they structure models and handle conflicting metric definitions together.
- 4
Case review and technical discussion
Conversation · 60-minute callWalking through their own design surfaces the reasoning behind the choices and shows how they take challenge on a decision they've already made.
- 5
Collaboration conversation with an analyst and a data consumer
Conversation · 45-minute callAnalysts are the real customers of these models, so someone who'll use the output should test how this person explains and negotiates definitions.
- 6
Offer and reference conversations
Decision · Within 5 working daysConfirms scope of past ownership and closes the loop on anything the panel flagged.
Interview questions
Asked of every finalist, in the same order, so answers compare fairly.
Layered data modelling
Walk me through a data model you built that you'd design differently now. What did the original look like, what broke or got painful, and what would the second version change?
Metrics definition and stakeholder alignment
Tell me about a time two teams wanted different definitions of the same metric. How did you get to a decision, and what happened to the team whose definition didn't win?
Data quality and testing
Describe an incident where bad data reached a report or a dashboard people were using. How did you find out, what did you do in the first hour, and what changed afterwards so it wouldn't repeat?
Version control and code review
When you review someone else's dbt pull request, what are you actually looking for? Give an example of feedback you gave that changed the design rather than just the syntax.
The job description behind this plan
A typical description for the role. Yours will differ, so the plan you build from it will too.
Analytics Engineer You'll own the layer between raw data and the reports people use. What you'll do: model data in the warehouse with dbt (staging, intermediate and mart layers); write tests and documentation so analysts can trust and reuse models; build a consistent metrics layer for revenue, retention and product usage; work with analysts and stakeholders to define metrics once and consistently; improve model performance and warehouse cost. What you'll bring: 3+ years in analytics engineering, data engineering or analytics; advanced SQL; dbt or similar; version control and code review habits; experience with Snowflake, BigQuery or Databricks; a methodical approach to data quality and validation.
Hiring a Analytics Engineer?
Start from this plan or your own job description. Edit every question, send candidates one link, and see every answer scored the same way.
Create your workspace