Find Tenants Paying for Idle GPUs From Utilization Telemetry

Last updated: November 29, 2026

Quick Overview

Using a per-minute GPU utilization table and a table of node allocations to tenants, write SQL that returns, for each tenant and day, the average GPU utilization over the GPUs they were allocated, and flags tenant-days below 30 percent.

Nebius
Data Manipulation (SQL/Python)
Data Engineer
Nebius
November 29, 2026
Data Engineer
Technical Screen
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


Using a per-minute GPU utilization table and a table of node allocations to tenants, write SQL that returns, for each tenant and day, the average GPU utilization over the GPUs they were allocated, and flags tenant-days below 30 percent.

Nebius customer success and capacity teams care about customers who reserve large clusters but leave them idle, since those customers either churn or could be offered a better plan. This question checks interval joins, correct averaging grain, and awareness of telemetry gaps.

What the Interviewer Expects
  • Joins telemetry to allocations with a time-range condition
  • Aggregates at the tenant and day grain
  • Treats missing telemetry minutes deliberately
  • Uses a CASE or HAVING to flag low utilization
  • Explains index or partition choices for a large telemetry table
Key Topics to Cover
SQL joins
range joins
aggregation
telemetry
data quality
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you weight the average by the number of GPUs if some tenants share a node?
  • Telemetry is missing for 10 percent of minutes on some nodes; how does that bias the result?
  • How would you build this as an incremental daily job in ClickHouse?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

gpu_metrics(ts, node_id, gpu_index, util_pct) with one row per GPU per minute. allocations(tenant_id, node_id, start_ts, end_ts) where end_ts is NULL for active allocations and the node is exclu...

Approach

Range-join each metric row to the allocation active at that time on that node, then group by tenant and day. Compute the average over observed samples, and also report coverage (observed samples versu...


Submit Your Answer
Markdown supported

Related Questions