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.

EasyTechnical
83 practiced
A partner's CSV uses multiple date formats for the same column (e.g., '2024-01-02', '01/02/2024', '2024-01-02T15:04:05Z'). Describe a robust parsing strategy in an ingestion job, including how to fail gracefully or flag bad records, and how to log parsing ambiguities for later investigation.
EasyTechnical
74 practiced
Describe simple, commonly used methods to detect outliers in numeric data and when you would apply each: z-score, IQR (boxplot), percentile capping, and robust metrics like median absolute deviation. For each method, state assumptions, failure modes, and how you'd implement detection in SQL over a transactions table with columns (user_id, amount).
MediumTechnical
70 practiced
You have a daily ETL that performs several joins and produces an aggregate KPI. On one day the KPI is 20% lower. Walk through a prioritized troubleshooting checklist: what queries and diffs would you run first (row counts, null rates, join cardinalities, recent code changes), and how would you determine whether to rollback, patch, or accept the change?
EasyTechnical
72 practiced
Explain how window functions behave when partitions contain zero or one row. For example, what does ROW_NUMBER(), LAG(), and AVG() windowed over a partition return in these small partitions? How would you guard analytical logic that expects at least 2 rows per partition?
HardSystem Design
89 practiced
Design a deduplication strategy that merges customer records across three databases with conflicting authoritative fields. Explain blocked pairwise matching, scoring, match/no-match/possible thresholds, and how to perform periodic re-evaluation. Include how to scale to tens of millions of records and how to surface uncertain matches for human review.

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.