Analytics Engineer Interview Guide with Questions and Prep
How the analytics engineer interview works, the SQL and data modelling skills it scores, 8 practice questions with strong-answer notes and a 7-day prep plan.
Updated
An analytics engineer interview tests whether you can turn raw, messy source data into clean, tested models that analysts and dashboards can trust. Expect SQL, data modelling and grain questions, a practical coding task, and plenty of probing on how you define a metric such as revenue when refunds, currencies and late data are involved.
What the job really is#
Analytics engineers sit between data engineering and analysis. Data engineers land the raw tables; analysts ask the business questions; analytics engineers build the layer in between: staging models that clean and rename, fact and dimension tables at a clear grain, tests that catch duplicates and nulls, and documentation so someone else can use the model without asking. The work is mostly SQL, with some Python where SQL is awkward.
Our practice interviews are set at Saltmarsh Goods, a fictional direct-to-consumer retailer of outdoor clothing and homewares selling in the US, UK and EU. Three currencies, partial refunds, orders placed in one time zone and shipped in another: it is a good setting for the questions that separate a careful modeller from someone who writes a GROUP BY and hopes.
What the analytics engineer interview process looks like#
A typical loop includes a recruiter screen, a SQL screen (live or take-home), a data modelling or design round, a stakeholder conversation, and a behavioural interview.
Our practice papers condense that into one session with an AI voice interviewer and live coding in the browser:
- 30 minutes: introductions (2), your work (5), live coding (13), data model design (7), your questions (2), wrap-up (1).
- 45 minutes: the same sections at 3, 7, 18, 12, 4 and 1 minutes.
- 60 minutes: 20 minutes of coding, 14 minutes of model design, and an extra 10-minute SQL and modelling knowledge round.
Use the 30-minute paper to rehearse a screen and the 60-minute paper for an onsite. Read more about how the practice interviews work.
Skills scored and how they are weighted#
Each skill gets a level of Not yet, Developing, Hire-ready or Standout, with quotes from what you said as evidence. Data modelling and SQL are must-haves: both need Hire-ready for an overall yes.
- Data modelling (must-have, 20%): grain, keys, facts and dimensions, slowly changing attributes.
- SQL (must-have, 20%): joins, window functions, aggregation and correctness under duplicates.
- Data wrangling (15%): cleaning, deduplicating and reconciling messy inputs.
- Coding (10%): working Python that passes hidden tests.
- Problem decomposition (10%): turning a vague metric request into precise steps.
- Communication (10%): explaining definitions and trade-offs clearly.
- Customer focus (10%): understanding what the analyst or finance team actually needs.
- Ownership (5%): testing, documenting and maintaining what you build.
Analytics engineer interview questions to practise#
We wrote these for this guide. They show the style of question, not the content of any paper.
Data modelling#
- Finance and marketing report different revenue for last month. How do you investigate? A strong answer compares definitions first (gross or net, order date or ship date, tax and shipping) before looking for bugs.
- What grain would you choose for an orders fact table, and why? A strong answer picks order line or order explicitly, explains what each makes easy or hard, and states the primary key.
- A product's category changes. How should historical reports treat it? A strong answer explains type 1 versus type 2 dimensions and asks the stakeholder which behaviour they expect.
SQL#
- Write a query that returns each customer's first order date and the revenue from that order. A strong answer uses a window function or a correctly joined subquery and mentions ties on the same timestamp.
- Your join doubled the revenue total. What happened? A strong answer identifies fan-out from a one-to-many join and fixes the grain before aggregating, rather than adding
DISTINCT. - How would you test that a daily revenue model is correct? A strong answer combines uniqueness and not-null tests with a reconciliation against a trusted source for a few known days.
Stakeholders and experience#
- An analyst asks for "active customers" on a dashboard by Friday. What do you ask? A strong answer pins down the time window, what counts as activity, and how the number will be used.
- Tell me about a model you built that other people came to rely on. A strong answer covers how it was tested and documented, and what broke or changed later.
The live coding round#
The exercise is in Python: building a daily revenue model that has to deal with refunds and currencies. The modelling thinking has to show up in plain code rather than SQL. Hidden tests check your output when you submit, so think about the edges: a refund that arrives on a later day, a missing exchange rate, a zero-value order.
How to talk while coding:
- State the grain of your output out loud before writing anything ("one row per day per currency" or "one row per day in a single reporting currency").
- Say which date drives the model and why.
- Decide explicitly whether refunds reduce revenue on the order date or the refund date, and say that finance would need to confirm it.
- When a test fails, inspect the input that broke it before changing logic.
A useful mental model is the one you would use in SQL: stage, clean, join at a known grain, then aggregate. Saying that aloud helps the interviewer follow you and scores well on decomposition.
Common mistakes#
- Aggregating before fixing the grain, then patching totals with
DISTINCT. - Assuming one currency or one time zone without saying so.
- Treating the metric definition as obvious instead of asking.
- Describing tests in general terms without naming which ones you would write.
- Designing a model with no primary key.
If you are also considering roles that build on data with language models, the Applied AI Engineer interview guide covers that loop.
A one-week prep plan#
- Day 1: revise joins, window functions (
ROW_NUMBER,LAG, running totals) and how duplicates propagate. - Day 2: model an e-commerce dataset on paper: orders, order lines, refunds, customers, products, exchange rates.
- Day 3: practise the same aggregation in Python with dictionaries and sorting.
- Day 4: write definitions for three metrics, net revenue, active customers and repeat rate, with edge cases.
- Day 5: take the 30-minute practice paper and read the scorecard quotes.
- Day 6: rehearse a design discussion aloud, naming grain, keys and tests every time.
- Day 7: take the 60-minute paper, including the SQL and modelling knowledge round.
When you are ready, practise the Analytics Engineer interview and get scored on data modelling, SQL and the rest of the skills above.
Frequently asked questions#
What questions are asked in an analytics engineer interview?#
Expect SQL questions on joins, window functions and aggregation, a data modelling round on grain, keys and dimensions, metric definition questions such as how to calculate net revenue, a practical coding or take-home task, and stakeholder scenarios. Interviewers care most about correctness and clear definitions, not clever syntax.
Is the analytics engineer interview mostly SQL?#
SQL is central, but modelling and communication carry similar weight. You will be asked why a model has a certain grain, how you would test it and how you would explain a number to finance. Some rounds, including our practice exercise, use Python, so be comfortable aggregating data outside a database too.
Do I need to know dbt for an analytics engineer interview?#
Many companies use dbt or a similar tool, and familiarity helps you talk about staging layers, tests and documentation. But interviews usually test the underlying ideas: modular models, a clear grain, tests for uniqueness and nulls, and version control. If you know those well, the specific tool matters less.
How do I prepare for an analytics engineer interview in a week?#
Revise SQL joins and window functions, model a small e-commerce dataset on paper, and write precise definitions for a few common metrics. Then rehearse explaining grain and tests out loud, and take a timed mock interview to practise thinking and talking at the same time.
How long are the practice interviews?#
Three papers run for 30, 45 and 60 minutes. Each covers your work, live coding in the browser and a data model design problem, and the 60-minute paper adds a SQL and modelling knowledge round. You can start an Analytics Engineer practice interview at whichever length suits you.