KatInterview

Customer Playbook for Unreliable and Slow Data Pipelines

System DesignModel answer
MediumModel answerSystem Designdata-qualitypipeline-performancelakehouse

Last updated

Outline how you would advise a customer whose cloud data platform produces untrustworthy data and runs slowly or expensively: scoping, metrics, diagnosis, fixes, and architecture concepts.

Scenario

You are advising a customer as a data solutions architect. They run their analytics on a managed cloud data platform (for example a Spark-based lakehouse on any major cloud). Their team tells you:

  • Reports contain wrong, missing, or duplicated records, and different teams define the same metric differently.
  • Batch pipelines and queries are slow, and the compute bill keeps climbing.

Their question: "Our data is unreliable and everything is slow. Where do we start?"

What to cover

  1. Discovery and scoping. Which questions would you ask to understand the problem, the constraints, and the people involved?
  2. Success measures. Which metrics define success for (a) data quality and (b) performance and cost? Name primary metrics and guardrails.
  3. Diagnosis. Give a step-by-step method for finding root causes across sources, pipeline stages, storage, compute, and governance.
  4. Remediation. Propose concrete technical and process changes for data quality (validation, monitoring, ownership, SLAs) and for performance (storage layout, compute configuration, pipeline design).
  5. Concept check. Compare a data lake with a data warehouse, and explain where a lakehouse fits.
  6. Cloud considerations. Which cloud topics usually matter in this kind of engagement (identity and access, networking, storage, encryption, cost)?

Deliverable

A structured plan you could present to the customer, with short-term mitigations and longer-term architecture and process recommendations. Where helpful, ground your points in a past situation of your own and separate what you did from what the team did.

Hints

Hint 1

Start with questions and baselines before proposing tools: you cannot show improvement without measuring the current state first.

Hint 2

Split the problem in two: trace a few specific bad records or slow jobs end to end, rather than tuning everything at once. Many quality bugs are caused by duplicates from retries, late data, or join keys; many performance problems come from small files, skew, and full scans.

Hint 3

Separate quick wins (days) from structural fixes (months), and name an owner and a measurable target for each item.