Senior roles and the interview loop
Part of the free LogicWiz Data Engineering course, Module 1: The job and the map. The SQL and Python run in the app, on real Postgres and real Python in the browser.
It is Friday, 4:30 p.m., the end of your first week. Three messages wait. Tess: "Why did returns rise in June?" Dana: "Who gets paged if tonight's load fails?" And Nora: she is hiring a second data engineer and wants you on the interview panel. She forwards last month's scorecard. In the design round the candidate named eleven tools. Score: 1 out of 4.
You'll learn to
- Tell the roles around the data apart by the question each owns
- Say what a senior data engineer owns beyond the code
- Know what each interview round tests and what a strong answer contains
- Use this course well: read, practise, and where to go deep
Learn
Three messages, three different jobs
Read the messages again. They touch the same tables, but each belongs to a different job.
"Why did returns rise?" asks what happened and why. That is an analyst's question, and Tess can answer it herself once the data is right. "Who gets paged tonight?" asks whether the data arrives complete, correct and on time. That one is yours: the data engineer.
Two more roles work on the same data. An analytics engineer owns the clean, tested tables everyone queries. An ML engineer makes sure a model can use the data in production.
Titles blur between companies. The question a job owns does not. Ask what it gets paged for, and you know which job it is.
Whose hands the data passes through
A flow from left to right: the backend engineer creates the data, the data engineer moves and stores it, the analytics engineer models it, and the analyst and the ML engineer use it.
Read it left to right. Every arrow is a handover, and handovers are where the promises of Lesson 1.1 live.
The roles side by side
| Role | The question they own | What they build | Daily tools |
|---|---|---|---|
| Data analyst | What happened, and why? | Reports, dashboards, analyses | SQL, spreadsheets, Power BI, Tableau |
| Analytics engineer | Is the table everyone queries clean and tested? | dbt models, tests, documentation | SQL, dbt, Git, a warehouse |
| Data engineer | Does the data arrive complete, correct and on time? | Pipelines, ingestion, the data platform | SQL, Python, Spark, Airflow, Kafka, a cloud |
| ML engineer | Can a model use this data in production? | Feature pipelines, training jobs, serving | Python, Spark, MLflow, a cloud |
All four write SQL every week. Platform data engineers belong in the third row too: they build the shared ingestion, orchestration and storage the other teams run on.
What "senior" adds
Nora's scorecard has one line at the top: "Level: senior." What does that word buy?
A mid-level engineer delivers the pipelines they are given. A senior owns an outcome: one area's data from end to end, with its targets, its on-call, its cost and its contracts with the teams that produce the data.
You did a small version of that this week. You did not only fix Tess's number. You set the 06:00 target, worked out its budget, and got Dana to agree a contract.
A senior also says no. When finance asked for a five-minute refresh, the senior answer was a price and a question, not a new streaming system.
The same pipeline at three levels
| Area | Mid-level | Senior | Staff |
|---|---|---|---|
| Scope | builds the pipelines assigned | owns a domain's data products end to end | sets direction across domains |
| Reliability | fixes failures when paged | sets SLOs, runs on-call, writes postmortems | defines reliability standards for the platform |
| Design | follows the existing pattern | chooses the pattern and records the trade-offs | decides platform-wide patterns |
| Cost | runs the jobs | knows the cost per pipeline and cuts it | owns the platform budget |
| People | reviews peers' code | mentors, negotiates contracts with producers | aligns teams and leadership |
Read each row left to right: from tasks, to outcomes, to direction. Levels differ between companies, but the direction does not. A senior loop scores you against the middle column.
Five rounds in one day
Now the interviews. Nora's loop is the usual one for a senior data engineer, and most companies run something close to it.
Two short screens come first. Then the long day. SQL and coding, where you write code live. System design, where you draw a pipeline on a whiteboard. An internals round, where you explain what happens inside the engine that runs your job. And a behavioural round, about things you owned.
The hands-on rounds check that you can do the work. The other three check your judgement. Read down the picture, then the table: it says what a strong answer contains and where this course trains it.
A typical senior data engineering loop
Six steps downwards: a recruiter screen, a technical screen with one SQL or coding problem, SQL and coding rounds, a system design round, an internals deep dive, and a behavioural round, followed by a debrief.
Read it top to bottom. Companies combine or reorder rounds, and some add a data modelling round (Module 5) or a take-home. The internals round is where senior candidates are most often told apart from mid-level ones.
A junior answer in a senior loop lists tools without mechanism, gives no numbers, and never names a trade-off: "I would use Spark and Airflow and Delta." That is last month's 1 out of 4. Interviewers then dig into one word ("Why Delta? What happens when two jobs write at once? How many files a day?") and stop at the first vague answer. Depth in a few systems you have run beats a list of fifteen.
Each round, and what a strong answer contains
| Round | What it tests | A senior answer includes | In this course |
|---|---|---|---|
| SQL | windows, dedup, top-N, gaps and islands, edge cases | what one row means first, NULLs and ties, how the plan would run | Module 2, Lesson 2.8, Lesson 18.1 |
| Coding | Python data structures, parsing, streaming | time and memory cost, a test case, no pandas when told | Module 3, Lesson 18.2 |
| System design | a pipeline end to end | requirements, SLOs, volumes in numbers, backfill, cost | Module 17 |
| Internals | how the engine runs the job | the mechanism, the defaults, the evidence you would read | Modules 4, 12, 13 and 15; Lessons 18.7 and 18.8 |
| Behavioural | ownership and judgement | scope, cause, fix, prevention, with numbers | the interview corner of every lesson |
Every round rewards the same habit: say the mechanism and the number, then the trade-off.
Hands-on rounds: the follow-up is the test
Here are two questions Nora likes, on SwiftKart's own data. Both look easy. In both, the first answer is only the start.
The SQL one: each customer's latest order. The Python one: the three biggest orders, read from a file in one pass, without pandas.
Getting the right rows earns half the marks. The rest come from the follow-up. What happens on a tie? What if a value is missing? How much memory does it take? Run each card, then read its note for the questions that come next.
A first-round classic: each customer's latest order
SELECT customer_id, order_id, order_ts
FROM (
SELECT customer_id, order_id, order_ts,
ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_ts DESC, order_id DESC) AS rn
FROM orders
) ranked
WHERE rn = 1
ORDER BY customer_id;
One row per customer. The follow-ups are the senior part: why order_id is in the ORDER BY (a tie-breaker that gives the same answer on every run), what changes if order_ts can be NULL, and what plan Postgres would choose (Lesson 2.8).
A coding-round classic: the top 3 in one pass
import csv, heapq
from collections import defaultdict
spend = defaultdict(float)
with open("data/order_items.csv", newline="") as f:
for line in csv.DictReader(f):
spend[int(line["order_id"])] += int(line["qty"]) * float(line["unit_price"])
top3 = heapq.nlargest(3, spend.items(), key=lambda kv: (kv[1], -kv[0]))
print([(order_id, round(total, 2)) for order_id, total in top3])
The loop adds up each order once. Then heapq.nlargest(3, ...) keeps only the 3 best seen so far in a small heap. For n orders and k winners that is about n × log k steps and room for k items, written O(n log k) time and O(k) extra memory, against O(n log n) to sort everything. Interviewers ask for the cost, the memory and the tie rule, not only the answer.
Judgement rounds: no code to hide behind
The internals round asks what happens inside: "Your Spark job spills 400 GB in one stage. What is spill, and what do you try?" A strong answer has four parts: how the mechanism works, the defaults that matter, the evidence you would read (a plan, an error message, a metric), and the fix with what it costs.
The design round asks you to build something on a whiteboard. Start with who reads the data and by when. Then the design and what you rejected. Then what happens when it fails. Then the cost.
The behavioural round asks about an incident you owned: who noticed, how big it was in numbers, what you fixed, and what you changed so it cannot happen again.
A design answer in four moves
A design answer for the daily revenue pipeline is built in four moves: the reader and the deadline, the design and what was rejected, what happens on failure, and what it costs.
Start with the reader. Before any tool: who reads it, and by when? "Finance reads daily revenue at 9. It must be ready by 06:00 UTC on 97% of days."
Then the design, with the road not taken. "A nightly batch. Raw data is loaded first and transformed after, so a bug is a rerun. I looked at streaming and dropped it: nobody decides anything on five-minute data."
Then failure. "A file can arrive twice, so the load keeps one row per order, the latest. A late export has 75 minutes of slack before the target is missed."
Then cost. "About $37 a month run daily. Every five minutes would be about $10,500." Four moves, each with a number. That is what the scorecard calls senior, and you lived all four this week.
Read it top to bottom. The numbers are this week's, from Lessons 1.1 and 1.2. No tool is named until the second move.
Remember: in every round, say the mechanism and the number, then the trade-off.
How to use this course
The course is one series of lessons, module by module. There are 18 modules, and you are at the end of the first. The last one, Module 18, is the interview rounds.
Every lesson has two pages. On the first you read: a small case at SwiftKart, with pictures to step through and code to run. On the second you practise: about ten graded items and one trap. Solving them completes the lesson.
Go in order if the topics are new to you. If you already work with data, skim the pages you know, but still do the practice: an item you fail shows you where to read. Then spend your time where senior loops are decided, which the next picture shows.
A route for readers who already work with data
Four steps: skim the foundation modules and do their practice, read the internals modules 4, 12, 13 and 15, read the eight internals lessons inside other modules, then prove it with Module 17 and the internals and debugging rounds of Module 18.
Read it top to bottom. New to the field? Ignore this route and take the modules in order, 1 to 18.
Paths by background
| You come from | Skim | Spend your time on |
|---|---|---|
| Software engineering | Module 3 | Modules 2, 5, 6 and 7 (SQL, modelling, pipelines, quality), then the internals |
| Analytics or BI | Modules 2 and 5 | Modules 3, 6, 9 and 10, then 12 |
| ETL tools (ADF, SSIS, Informatica) | Modules 6 and 9 | Modules 11 to 13 and 15, and the internals lessons |
| Data engineering, 1 to 3 years | Modules 1 to 8 | Every internals lesson, Module 17 and the interview rounds (Module 18) |
Whatever the path, build one pipeline end to end and be able to explain every choice in it with a number.
Numbers to remember
| What | Number | Good to know |
|---|---|---|
| Modules in the course | 18 | Module 18 is the interview rounds |
| Pages in a lesson | 2 | one to read, one to practise |
| Rounds in a typical senior loop | 5, after two screens | SQL, coding, system design, internals, behavioural |
| Parts of a strong internals answer | 4 | mechanism, defaults, evidence, fix with its cost |
| heapq.nlargest(k, ...) | O(n log k) time, O(k) extra memory | sorting everything is O(n log n) |
| Modules that go deep into internals | 4, 12, 13 and 15 | storage, Spark, Delta, Kafka and streaming |
| Internals lessons inside other modules | 2.8, 3.7, 6.7, 8.6, 9.6, 10.4, 14.5, 16.8 | Postgres planner, Python memory, MVCC and WAL, dbt, Airflow, containers, cloud warehouses, vector indexes |
What changed at SwiftKart
Next month you sit on the other side of Nora's table, scorecard in hand. You know what she listens for: the reader first, then the mechanism, a number, a trade-off, and an honest account of what went wrong.
You also know your own job better than on Monday. Dana creates the data. Tess reads it. You are the reason the two agree.
That is the end of Module 1. Module 2 goes back to SQL, and it opens with the most common way a correct-looking query gives a wrong number: Lesson 2.1, "Joins that change the row count".
In one line
Analysts explain, analytics engineers model, data engineers deliver; a senior owns the outcome, and in every interview round the strong answer is the mechanism, a number and the trade-off.
Interview corner
What is the difference between a senior and a mid-level data engineer?
Scope and ownership. A mid-level engineer delivers well-defined pipelines; a senior owns a domain's data products end to end: their SLOs and on-call, their cost, their contracts with producers, and the design choices and trade-offs behind them. A senior anticipates failure (reruns, backfills, late data), reviews others' work for the failure it will cause, mentors, and pushes back on upstream changes or requirements that would break consumers.
Tell me about a project you built.
Use the lifecycle as the skeleton, then add what makes it senior: the consumers and the freshness SLO, the volume in numbers, the architecture and the alternative you rejected, how reruns and backfills behave, what it costs, and one incident with its numbers ("a retried file doubled 3,000 rows; I switched the load to a merge on order_id and added a duplicate-key SLI"). Interviewers remember the problem you solved and the reasoning, not the tool list.
Why do you want a senior data engineering role?
Give a concrete reason tied to ownership: a time you took a pipeline from fragile to trusted, with the numbers (late days per quarter, duplicate rows, cost), and what you enjoyed about it. Then connect it to the role: owning SLOs and contracts across a domain, and helping others do the same. Avoid answers only about title or pay.