Top Cost Categories
A medium SQL mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Interview Prompt
The cloud spend per budget category in finance's monthly report comes out far above what cloud_costs actually billed; categories live only on the allocation rows in cost_allocs. Attribute each charge to the category allocated to its service and region for its billing month, and show the top 3 categories by attributed spend.
Summary
Three categories eating the budget.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your SQL against a real database
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision