DataDrivenDataDriven
LearnPracticeInterviewDailyJobsCommunity

The Gap Between Neighbors

A hard SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
SQL
Difficulty
hard
Seniority
L5

Interview Prompt

We monitor service health, and each row in `svc_health` is one health check with a status, a latency reading, an uptime percentage, and a region. Within a region, pair every healthy check with every other healthy check whose uptime sits within 5 percentage points of it, and for each service report the average absolute latency gap across all the pairs its checks take part in.

Summary

Same region, and still they disagree.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge