Top Crashing Driver Versions per GPU Model From Telemetry
Last updated: November 29, 2026
Quick Overview
Given a sessions table (session_id, gpu_sku, driver_version, started_at) and a crashes table (crash_id, session_id, crashed_at), return for each GPU SKU the three driver versions with the highest crash rate per 1,000 sessions over the last 28 days, considering only combinations with at least 1,000 sessions.
AMD
November 29, 20260
0
0 solved
Given a sessions table (session_id, gpu_sku, driver_version, started_at) and a crashes table (crash_id, session_id, crashed_at), return for each GPU SKU the three driver versions with the highest crash rate per 1,000 sessions over the last 28 days, considering only combinations with at least 1,000 sessions.
A SQL screen in the style of AMD's Radeon software quality and telemetry teams, where opt-in crash reports from Adrenalin drivers are triaged by GPU model and driver release. The interviewer checks correct rate denominators, avoiding double counting when a session crashes more than once, and per-group ranking with window functions.
What the Interviewer Expects
- Use sessions as the denominator, not crash rows
- Count a session with multiple crash rows once
- Filter the date window on session start
- Apply a minimum-volume threshold with HAVING
- Rank within each SKU using ROW_NUMBER or DENSE_RANK
- Make tie-breaking deterministic
Key Topics to Cover
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
- How would you instead report crashes per 1,000 hours of use?
- How would you add a confidence interval so small-volume versions do not top the list by chance?
- How would you flag a new driver release whose rate is significantly worse than the previous one on the same SKU?
- How would you partition these tables in a warehouse to keep the query cheap?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice SQL ProblemsSample Answer
Clarify the Data
One row per session in sessions; zero or more rows per session in crashes (a session can crash, recover and crash again). Crash rate here means the fraction of sessions with at least one crash, sc...
Approach
Build a per-session flag with EXISTS so duplicate crash rows cannot inflate counts, filter to the last 28 days of sessions, aggregate per (SKU, driver) with a volume floor, then rank within each SKU....