Interview practice

Data Engineer

0–2 years · Junior — SQL · Python · Spark · Airflow · Warehousing · ETL / ELT

0–2 years 2–5 years 5–8 years 8+ years
ownership Debugging existing code 1 of 6
Tell me about a time when you encountered a bug in your code that you couldn't immediately fix. How did you approach the problem?
What a strong answer covers

Describes the context of the bug and its symptoms; outlines the systematic approach taken to debug, such as using logging or stepping through code; mentions seeking help through forums or colleagues; concludes with the eventual resolution and any changes made to prevent recurrence.

The follow-up you would get

What tools or methods would you use next time?

Could you have answered that?
technical Python 2 of 6
You are using Python to transform data in an ETL job, and the transformation is failing intermittently due to missing values. What strategies do you implement to handle this?
What a strong answer covers

Uses try-except blocks to catch errors; applies data validation checks before processing; implements default values or imputation for missing data; logs missing value occurrences for further analysis.

The follow-up you would get

What would you do if you can't predict where the missing values will occur?

Could you have answered that?
technical Spark 3 of 6
You are processing a large dataset in Spark, and the job is running out of memory. What approaches do you take to resolve this issue?
What a strong answer covers

Increases memory allocation for the Spark executors; optimises data partitioning to reduce the amount of data processed by each executor; uses caching judiciously; reviews the transformations for inefficiencies.

The follow-up you would get

If optimising memory doesn't work, what else could you investigate?

Could you have answered that?
technical Window Functions 4 of 6
You are tasked with calculating a moving average over a dataset, but the performance is slow. What steps do you take to optimise the query?
What a strong answer covers

Examines the execution plan for inefficiencies; checks indexing on the columns used in the window function; considers reducing the data size before applying the window function; evaluates whether to materialise intermediate results.

The follow-up you would get

If the execution plan shows a full scan, what can you do next?

Could you have answered that?
scenario Pipeline Monitoring 5 of 6
You have a data pipeline that is crucial for daily reporting, but you notice it has not run for the last two days. What do you do first?
What a strong answer covers

Checks the scheduling and logs for the last successful run; investigates any errors or alerts in monitoring tools; verifies the health of upstream data sources; assesses if the issue is systemic or isolated to one instance.

The follow-up you would get

You find that an upstream system was down. How do you ensure your pipeline is resilient to such outages?

Could you have answered that?
scenario Data Quality 6 of 6
You receive a report that several records in your data warehouse are inaccurate, and the issue needs to be resolved urgently. What do you do in the first half hour?
What a strong answer covers

Identifies the scope of the inaccuracies; reviews data lineage to trace sources; checks for recent changes in ETL processes; validates against source data; communicates with data owners for context.

The follow-up you would get

You discover the inaccuracy originated from a change in a source system. How do you prevent this from recurring?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.