How would you monitor and troubleshoot a failing data pipeline?
Instruction: Discuss the tools and methodologies you use for monitoring and diagnosing issues in data pipelines.
Updated
Official answer
Alert on user-relevant symptoms: stale or missing outputs, failed validation, unusual volume and delayed delivery. Pair task status/logs with source freshness, queue lag, stage timings and destination checks; a successful task can still publish incomplete data.
During an incident, identify the affected output and time range, last known-good version, recent changes and downstream consumers. Prevent further publication of suspect data where appropriate. Correlate run IDs, input versions, errors and resource metrics, while keeping credentials and personal data out of logs.
Reproduce the smallest failing partition in an isolated environment. Check upstream availability/schema, permissions, resource exhaustion, skew and the actual failing transformation. Do not blindly rerun a task against production if it may duplicate side effects or use different inputs.
Recover from a known boundary using replay-safe writes, bounded retries and validated backfills. Reconcile output keys/counts/totals, check freshness and resume downstream work deliberately. For a dashboard drop, compare source events, identity mapping and filters before treating the change as real user behavior.
Record impact, cause, recovery evidence and a targeted prevention measure. Orchestration logs, database query plans and a processing engine's stage UI can help; installing more dashboards does not replace a clear incident path or verified recovery.