Loading interview...

Top Services Per Provider

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

Domain
SQL
Difficulty
medium
Seniority
staff

Interview Prompt

Given a cloud_costs table with provider, service name, and spend amounts, write a query that returns the top 2 services by total spend within each cloud provider. Include provider, service name, and total spend. If two services tie, include both.

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