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

In Python, implement a function that deduplicates a collection of in-memory records by a key (for example email address, case-insensitively). Provide two variants of the policy: (a) drop all but the most recent record for each key, and (b) merge duplicate records together (summing numeric fields, keeping the most recent value for everything else). Handle an empty input and a subset key that is entirely null.

HardSystem Design
38 practiced

Design a rules engine that evaluates many business rules against streaming or batch records to decide routing or transformation outcomes. Requirements: deterministic output across retries, a way to resolve conflicts when multiple rules could apply (priority ordering), fast evaluation per record, the ability to update rules without downtime, and a full audit trail of which rule fired for which record.

HardTechnical
29 practiced

You must identify probable duplicate records across multiple sources when there is no shared unique identifier and the same real-world entity (for example a customer) may be represented with typos, formatting differences, or partial information (name, address, email). Design an end-to-end approach for finding and resolving these duplicates at scale, and discuss the trade-offs your design makes between catching every true duplicate and avoiding an incorrect merge.

HardTechnical
37 practiced

A transformation job produced different output across two runs even though the code did not change. Walk through the debugging steps you would take to find the cause, and what you would put in place afterward to prevent a recurrence.

HardTechnical
33 practiced

Some aggregations (sum, count) are associative and trivially parallelizable across a distributed dataset with a guaranteed deterministic result. Others, like median or percentile, are not. Discuss how you would compute an approximate percentile at scale with a mergeable, deterministic algorithm (for example a t-digest or histogram sketch), and separately, how you would implement a scalable approximate 'distinct count' (for example unique users in the last 30 days) using a structure like HyperLogLog, including the accuracy/memory trade-off of each.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.