# Retried Failed API Calls

> Spot users who retry API calls within 5 minutes of a failure.

Canonical URL: <https://datadriven.io/problems/retried_failed_api_calls>

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.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/retried_failed_api_calls)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.