Data engineer interview questions and answers
12 questions that come up in data engineer interviews, each with a model answer and the reason it is asked. Plus how to prepare and what to ask back.
Short answer
Interviewers want to know whether you can build pipelines that keep running at night without you, and whether you notice when the data they carry is wrong. They are also checking how you work with the analysts and engineers who depend on your tables. Below are 12 questions data engineer candidates get asked, with a model answer for each and what the interviewer is really checking. Know your number too: live postings put the median data engineer pay at $125,000 a year.
12 data engineer interview questions
Four on skills, four on how you have behaved, two on what you would do, two on why this role. Answers are a shape to make your own, not a script.
- 1
Skills
How would you design a pipeline that loads daily sales data from several source systems into a warehouse?
What they are checking. This checks whether you think about reliability, late data and schema changes rather than just moving rows.
Model answer
I would land raw data from each source into a staging area untouched, so I can always replay from the original if something goes wrong downstream. Each source gets its own loader with checks for row counts and expected columns, because sources change without warning. Then a transformation layer builds clean, consistent tables with the business definitions applied in a single place. I would make the whole thing idempotent so rerunning a day does not duplicate data. Late arriving records are handled by reprocessing a sliding window rather than just the latest day.
- 2
Skills
What is the difference between a batch approach and a streaming approach, and when would you choose each?
What they are checking. They want to see that you pick architecture based on need rather than fashion.
Model answer
Batch processes data in chunks on a schedule and is simpler to build, test and recover, so it is my default when the business can wait for hourly or daily results. Streaming processes events as they arrive and is right when a decision truly needs fresh data, like fraud checks or live dashboards for operations. Streaming adds complexity around ordering, duplicates and late events, so I want a clear reason before taking that on. Often a fast batch every few minutes gives people what they need. I ask what decision gets made with the data and how stale it can be.
- 3
Skills
How do you make sure the data in your tables is correct, not just present?
What they are checking. This is about data quality practices and whether you treat bad data as a failure.
Model answer
I put tests in the pipeline itself: checks for nulls where there should be none, uniqueness on keys, values within expected ranges, and row counts compared to the previous run. If a check fails, the load stops or quarantines the data rather than silently publishing it. I also reconcile key totals against the source system on a schedule, because a pipeline can pass every test and still drop a partition. Alerts go to a channel that humans actually watch. Analysts tell me quickly when numbers look odd, and I treat those reports as bugs with the same seriousness as a crash.
- 4
Skills
Explain how you would optimise a slow query on a very large table in a warehouse.
What they are checking. They want to know you understand how warehouses store and scan data.
Model answer
I would look at the query plan first to see whether it is scanning the whole table or using partitions. Most slow warehouse queries are reading far more data than they need, so partitioning or clustering the table on the common filter column, like date, usually gives the biggest gain. I would check for joins that explode row counts and for selecting columns nobody uses. If the same heavy aggregation runs often, I would precompute it into a summary table on a schedule. Measuring bytes scanned before and after keeps me honest about what helped.
- 5
Behaviour
Tell me about a time a pipeline failed overnight and what you did the next morning.
What they are checking. This checks ownership, calm and whether you fix root causes.
Model answer
A nightly load failed because a source system renamed a column without telling anyone, and the morning reports were empty. I let the affected teams know early with an honest time estimate, then patched the mapping and reran the load before most people started work. Afterwards I added a schema check that fails loudly and clearly names the changed column, and I set up a short chat with the source team so they tell us about changes. The failure itself was minor. The lesson was that silent assumptions about sources are the real risk.
- 6
Behaviour
Describe a time an analyst or data scientist asked for something that would have hurt the platform. How did you respond?
What they are checking. They want to see collaboration and the ability to say no with a better option.
Model answer
A data scientist wanted a nightly full copy of a huge event table into their own schema so they could experiment freely. That would have ballooned storage and slowed every other job. Instead of refusing, I asked what they were really trying to do and built them a sampled view plus a partitioned table they could query cheaply. They got faster results than a full copy would have given them. I think most unreasonable requests are reasonable needs stated badly, so I ask about the need first.
- 7
Behaviour
Tell me about a time you had to migrate data between systems. What went wrong and how did you handle it?
What they are checking. Migrations reveal planning skill and honesty about difficulty.
Model answer
We moved a reporting database to a cloud warehouse, and the hardest part was not the data but the many hidden queries people had built on the old system. I ran both systems in parallel and compared outputs for weeks, finding differences in date handling and rounding that would have caused real arguments later. A team had a spreadsheet pulling directly from a table nobody knew about, and we found it only when it broke. I kept a shared log of every difference and its fix. The migration finished later than planned but with trust intact, which I think was the right trade.
- 8
Behaviour
Give an example of documentation or tooling you built that made other people's lives easier.
What they are checking. This shows whether you think about the people who use your work.
Model answer
Analysts kept asking me the same questions about which table to use and what each column meant, so I built a simple data catalogue that generated descriptions from the pipeline code and let people add notes. I also added a small lineage view showing which source fed which table. The questions in my inbox dropped sharply and new analysts got productive faster. Keeping it accurate needed discipline, so I made updating the descriptions part of the pull request checklist. Small tools like this pay for themselves quickly.
- 9
Situation
A business user reports that yesterday's dashboard numbers look wrong, but all your pipeline checks passed. What do you do?
What they are checking. They want a methodical approach to a problem your tooling did not catch.
Model answer
I would ask them exactly which number looks wrong and what they expected, because that narrows the search enormously. Then I would trace that metric backwards from the dashboard through each transformation to the raw source, comparing values at each step. Often the cause is a legitimate business event, like a bulk return, rather than a bug, so I would check that with the source team too. If it is a bug, I fix it, reload, and add a check that would have caught it. I always close the loop with the person who reported it, even if the numbers were right.
- 10
Situation
You inherit a tangle of scheduled scripts with no documentation that feed critical reports. How do you approach stabilising it?
What they are checking. This tests practicality and risk management in a messy real world situation.
Model answer
I would resist rewriting anything until I understand what runs, when, and what depends on it, so I would start by mapping the jobs and their outputs. Then I would add monitoring and alerts to the existing scripts so I at least know when they fail. Next I would move the most critical and most fragile jobs into a proper orchestrator with tests, in order of risk. Each move would be verified by running old and new in parallel. Stabilising first and modernising second keeps the business running while I clean up.
- 11
Motivation
Why data engineering, and why here, rather than a software or analytics role?
What they are checking. This checks motivation and whether you understand the specific role.
Model answer
I like being the person who makes data trustworthy, because every analysis and model downstream depends on it and few people notice until it breaks. Your company runs a marketplace with many data sources and growing volume, which is exactly where good pipelines make a visible difference. I also read that your analytics team is growing, so there is real demand for what I build. I enjoy software engineering but I want to work close to data and the people who use it.
- 12
Motivation
What does a well run data team look like to you?
What they are checking. They want to see your values and whether they match how the team operates.
Model answer
Clear ownership of each dataset, tests in the pipeline, and definitions written down where everyone can find them. Analysts and engineers talk regularly rather than throwing tickets over a wall. Failures are visible and fixed at the root rather than patched by hand every morning. There is time set aside for paying down debt, not just new requests. If a team has most of that, I know I will enjoy working in it.
Red flags interviewers notice
- Describing pipelines with no testing, monitoring or recovery plan.
- Not knowing why a chosen tool was picked over alternatives.
- Treating data quality as the analysts' problem.
- Unable to explain partitioning or why a query was slow.
The week before
- Sketch an end to end pipeline design on paper and explain each choice.
- Refresh SQL for large tables: partitions, window functions, incremental loads.
- Prepare a story about a failed load and the fix you built afterwards.
- Read how the company's product generates data and guess the hard parts.
- Practise explaining batch versus streaming to a non technical listener.
Questions to ask them
- How does the team find out when a pipeline breaks or data looks wrong?
- Who owns the definitions of key business metrics?
- What is the current biggest source of data pain for analysts?
- How much of the week goes to new work versus maintenance?
Looking for data engineer roles? We apply, you interview.
AI agents find the roles and tailor your CV to each one. Human agents apply, answer the screening questions, message recruiters and follow up, in your name. You relax with your family and take the interview calls.
Interviews guaranteed on the main plan
We keep hunting at no extra cost until you are in interviews for roles you agreed to.
$1,000 once upfront fee + half of first month's salary, only after you are hired and paid
Or $350 a month, or $250 for 15 days.
Every application checked by a person
No blank screening answers, no bot forms.
Data engineer interviews: common questions
How many interview rounds for a data engineer position?
+
Usually a recruiter call, a technical screen with SQL and coding, a pipeline design discussion, and a conversation with the manager and stakeholders. Larger firms may split the technical part into separate sessions. Ask which session covers design so you can prepare examples.
Is there a coding or SQL test?
+
Expect both in most cases. SQL questions often involve joins, aggregation and finding anomalies, while coding questions test data manipulation and clean, readable scripts. Some employers add a take home where you build a small pipeline and explain your choices.
Tips for a remote data engineering interview?
+
Have a SQL client and a code editor open and tested for screen sharing. Keep a drawing tool or paper ready for pipeline diagrams, since design questions are easier to explain visually. Narrate your decisions so the interviewer can follow your trade offs.
What salary should I ask for as a data engineer?
+
Live job postings show a median of $125,000 a year in US dollars, with most offers between $85,700 and $153,750. Open with the median for your city and seniority, and let the employer name a figure first where you can. The salary page has the city bands.
Data engineer: the rest of the picture
Data engineer salary
Median pay by city and seniority, from live postings.
Data engineer job description
A ready template with duties, requirements and hiring tips.
Data engineer resume example
A full example plus the words applicant systems look for.
Data engineer staffing agency
Hire vetted people, or get leads if your agency places them.
Getting interviews is the hard part. We handle that.
We find the roles, tailor your CV, apply and follow up. You prepare with this page and turn up.