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.

MediumTechnical
40 practiced

You receive phone numbers from several partners in inconsistent formats (with or without country codes, extensions, punctuation, or leading zeros). Design a normalization and validation workflow that produces a single canonical format suitable for matching and analytics, including how you would flag numbers you cannot confidently normalize and any privacy considerations for storing them.

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
34 practiced

Compare CSV, JSON, Parquet, and Avro as formats for data you are transforming and storing: schema support and evolution, compression, read/write performance for analytical queries versus streaming ingestion, and the small-files problem. Give concrete scenarios for when you would choose each. Separately: when reading many partitioned Parquet or ORC files, you discover the same column has an inconsistent type across files (e.g. integer in some, string in others) - explain how you would detect, reconcile, and prevent this in your transformation code.

MediumTechnical
30 practiced

Given a free-text address field with inconsistent layouts across countries, describe a strategy to parse and canonicalize it into structured components (street, city, region, postal code, country) suitable for matching and analytics, including how you would handle a case your approach can't confidently resolve. As a smaller related exercise, implement a general text-normalization function that trims whitespace, collapses repeated internal whitespace, strips control characters, and preserves Unicode letters and emoji.

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 34 Data Transformation and Processing Logic interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.