InterviewStack.io LogoInterviewStack.io

Data Transformation and Processing Logic Questions

Implementing transformation logic: joins, aggregations, deduplication, pivoting/reshaping, and business-rule application over datasets. Covers writing correct and maintainable transformation code, handling edge cases in the transform layer, and preparing data for downstream consumption. Focuses on the logic of turning raw data into analytics-ready outputs.

EasyTechnical
41 practiced

A stakeholder reports that joining two tables produced more rows than either input table (for example, 10,000 orders joined to 200 refunds produced 10,500 result rows). Walk through how you would debug this: what you would check first, what a sample query would look for, and how you would explain the root cause (and the fix) in plain language to a non-technical stakeholder. Separately, describe how you would resolve it when the two tables also share a column name (like id or created_at) that means something different in each source.

MediumTechnical
37 practiced

A numeric column contains both NULLs and extreme outliers. Describe a pragmatic decision process for handling both before analytics: statistical detection methods (IQR, z-score), business-rule thresholds, when to impute versus flag versus drop, and how you would document and test these decisions so downstream analysts understand what happened to their data.

MediumTechnical
34 practiced

You receive timestamps in several inconsistent formats and time zones from different sources (for example '2024-01-02 13:00', '01/02/2024 1pm PST', an epoch value, or a date string with an ambiguous day/month order). Design a robust approach to parse and normalize all of these into timezone-aware UTC timestamps. Discuss how you detect and handle ambiguous dates (02/03/2024), missing timezone information, and DST transitions, and how you would detect signs of clock skew or duplicated timestamps between sources before trusting the normalized result.

MediumTechnical
28 practiced

You're setting up a new dbt project for a company's first analytics-engineering effort. How would you lay out staging, intermediate, and mart models, and how do you decide per-model whether it should materialize as incremental or full-refresh?

EasyTechnical
40 practiced

Explain how NULL participates in SQL comparisons, joins, and aggregations, contrasting it with an empty string and with zero. Describe three common pitfalls this causes when joining or aggregating real data, and the standard techniques (COALESCE, explicit NULL checks, filtering) used to handle each.

Unlock Full Question Bank

Get access to all 25 Data Transformation and Processing Logic interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.