Production Data Pipeline Incident Recovery
It is 06:30 AM. An automated PagerDuty P1 incident fires: the daily executive sales pipeline crashed mid-run due to corrupt vendor data. The CFO dashboard shows $0.00 revenue for yesterday, and the 09:00 AM board meeting is in 2.5 hours. Step in as the on-call Data Reliability Engineer, contain the blast radius, restore the Delta tables using time-travel, quarantine corrupt data, backfill the partition, and author a Post-Incident Review.
Mission & Operational Context
Understand the incident timeline, business impact, and reliability principles.
The Production Emergency
At 02:24 UTC, the nightly batch ingestion crashed while processing files from third-party Vendor B. Instead of a numeric decimal, line 412 of the CSV contained string value "N/A" in the unit_price column. Because the ingestion script attempted dynamic schema merging, it corrupted the Silver table schema and aborted before writing the Gold partition.
Now, the CFO executive revenue dashboard is missing yesterday's numbers. You must act methodically: do not panic, do not run destructive drops, and follow the site reliability engineering SOP to contain the failure, roll back to version 42, quarantine the corrupted row, backfill the missing partition, and restore full service before 09:00 AM.
Starter Materials & Incident Artifacts
Inspect the PagerDuty incident logs, failed batch metadata, and emergency runbook SOP.
Hands-On Incident Recovery Workflow
Execute the 5 disaster recovery phases according to SRE protocols.
Phase 1: Blast Radius Assessment & Containment
Halt any downstream dependent jobs to prevent spreading un-reconciled data.
Phase 2: Delta Lake Time-Travel Restoration
Restore the Silver table to stable version 42.
Phase 3: Quarantine Corrupted Record
Implement safe parsing to intercept 'N/A' strings before they hit Silver.
Phase 4: Atomic Gold Partition Backfill
Reprocess and write partition 2024-03-14 into Gold without duplicating data.
Phase 5: Snowflake Re-Sync & Post-Incident Review
Sync restored Gold partition to Snowflake and write the formal PIR.
Target Recovery Metrics & Validation
Prove that the backfill successfully recovered all valid records.
Restored Partition Targets (2024-03-14)
Validation Checks & Incident Sign-Off Queries
Run these verification queries to certify that the recovery was clean and duplicate-free.
SELECT txn_id, COUNT(*) AS cnt FROM delta.`/lakehouse/silver/sales_transactions` WHERE txn_date = '2024-03-14' GROUP BY txn_id HAVING COUNT(*) > 1;
SELECT txn_id, raw_unit_price, reject_reason, quarantined_at FROM delta.`/lakehouse/quarantine/sales_bad_records` WHERE txn_id = 'TXN-88492';
Evidence To Submit & Post-Incident Review (PIR)
Compile your recovery evidence and submit the formal incident report.
Your submission must include the recovery script and a complete Post-Incident Review document:
Common Mistakes in Incident Response
Critical errors to avoid during production emergencies.
Stretch / Bonus Objectives
Build permanent resilience mechanisms.
Complete DEV-014 to Earn 900 XP & Data Reliability Engineer Badge
Contain the incident, execute Delta time-travel recovery, quarantine corrupt vendor records, backfill the partition, and author your Post-Incident Review.