← Questions

Diagnose a data pipeline's quality and performance problems

0
DatabricksBehavioralLast asked Jul 2025

A behavioral interview question asked in Databricks's technical phone screen, last asked Jul 2025. It tests data engineering, debugging and data quality.

You are a solutions architect. A customer running their data platform in the cloud tells you: "Our data has quality problems: records that are wrong, missing or duplicated, and teams that define the same metric differently. Our ETL pipelines are slow, queries take too long and compute costs keep rising. How would you approach this?" Lay out the plan you would present to them, with short-term fixes and longer-term changes to architecture and process.

What they look for

  • Discovery first: the questions you ask about data sources, pipeline stages, volumes, SLAs, who consumes the data, recent changes and budget, before proposing anything.
  • A definition of success: data quality metrics (completeness, accuracy, uniqueness, freshness, consistency of definitions) and performance and cost metrics (pipeline duration, query latency percentiles, cost per job or per terabyte), with guardrails.
  • A step-by-step diagnosis: trace a bad number back through the pipeline to its source; profile slow jobs by stage (input size, shuffles, skew, small files, spills); check storage layout, compute configuration and governance.
  • Concrete fixes for quality: validation and expectations at each layer, quarantine of bad records, deduplication keys, data contracts with source owners, monitoring and alerting, clear ownership and SLAs, a single place for metric definitions.
  • Concrete fixes for performance: file compaction, partitioning and clustering, incremental processing instead of full reloads, right-sized and autoscaling compute, caching, and fixing the worst queries first.
  • Prioritization by impact, and how you communicate progress and trade-offs to the customer's stakeholders.

Follow-ups

  • Explain the difference between a data lake and a data warehouse, and where a lakehouse fits.
  • Which cloud concerns usually come up in these engagements: identity and access, networking, storage, encryption, cost controls?
  • The customer's team resists data contracts because they slow releases. How do you handle it?
  • Tell me about a time you diagnosed a real data quality or performance problem. What was the root cause, and how did you confirm it?

Where it's asked

What it tests

data engineering · debugging · data quality

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing