InterviewStack.io LogoInterviewStack.io

Data Quality and Edge Case Handling Questions

Practical skills and best practices for recognizing, preventing, and resolving real world data quality problems and edge cases in queries, analyses, and production data pipelines. Core areas include handling missing and null values, empty and single row result sets, duplicate records and deduplication strategies, outliers and distributional assumptions, data type mismatches and inconsistent formatting, canonicalization and normalization of identifiers and addresses, time zone and daylight saving time handling, null propagation in joins, and guarding against division by zero and other runtime anomalies. It also covers merging partial or inconsistent records from multiple sources, attribution and aggregation edge cases, group by and window function corner cases, performance and correctness trade offs at scale, designing robust queries and pipeline validations, implementing sanity checks and test datasets, and documenting data limitations and assumptions. At senior levels this expands to proactively designing automated data quality checks, monitoring and alerting for anomalies, defining remediation workflows, communicating trade offs to stakeholders, and balancing engineering effort against business risk.

MediumTechnical
129 practiced
Given a transactional table transactions(transaction_id, user_id, amount, occurred_at), write an ANSI SQL query that flags transactions that are greater than mean + 3*stddev computed over each user's past 365 days using window functions. Explain assumptions and how to handle users with fewer than 5 prior transactions.
MediumTechnical
70 practiced
Explain what a data contract is between producer and consumer teams in a data platform. Describe enforcement and monitoring mechanisms (schema evolution rules, schema registry, CI tests, runtime validators), how to define backwards-compatible changes, and a rollout plan to handle breaking changes in production.
MediumTechnical
77 practiced
Design an attribution approach for conversions across multiple channels (email, paid, organic). Describe edge cases: multiple events with identical timestamps, missing channel information, partial duplicates across sources, and how to aggregate attribution at campaign and user-level. Explain validation strategies to ensure the attribution pipeline is reliable.
EasyTechnical
90 practiced
Implement a Python function safe_divide(a, b) that performs element-wise division for NumPy arrays or pandas Series and returns np.nan where division-by-zero would occur. The function should handle scalar inputs, preserve vectorized performance for large arrays, and avoid Python loops. Explain performance trade-offs for very large inputs and chunking strategies.
MediumTechnical
84 practiced
You have customer records in CRM and support systems with inconsistent names and addresses. Describe a practical approach to merge partial/inconsistent records into canonical profiles: blocking, candidate scoring, similarity metrics (Levenshtein, token set ratio), supervised match models, and use of third-party reference data. How would you measure precision and recall of the matching?

Unlock Full Question Bank

Get access to hundreds of Data Quality and Edge Case Handling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.