Retried Failed API Calls
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L5
Problem
Reliability wants to spot clients retrying after errors. A retry is a call that comes within 5 minutes after the same user's previous call to the same endpoint when that previous call returned a non-200 status. Return user_id, endpoint, and the retry count, sorted by retry count descending, then user_id, then endpoint.
Summary
Spot users who retry API calls within 5 minutes of a failure.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.