All jobs / Full-stack developer / Frontend
Full-stack developer interview question · 3–5 years
A burst of autosaves returns 429 from the API gateway.
What does the UI do with 429?
The strongest answer
Back off using `Retry-After` (or a jittered default), tell the user we are slowing down, and do not tight-loop the same write
Why it works
Exactly. 429 is a contract: wait. The header is the join between gateway and spinner. A tight loop is how you DDoS yourself.
What a good answer covers
- Honour `Retry-After`.
- Jitter if the header is missing.
- Explain the wait; do not login-bounce.
- Never tight-loop a 429.
Answers that fall short
- Close, but not the strongest: Retry immediately; 429 means try again
Immediate retry is the behaviour that earned the 429. - Weak: Treat 429 as 401 and dump them to login
A limit is not an expired session. Do not burn the cookie. - Red flag: Hide the error; rate limits are an infra detail
Users can see a polite wait. Silent failure looks like a broken save.
Who gets asked this
More Frontend questions
- The first screen is a list loaded from `GET /items`. What states does the screen need?
- Saving a profile can fail with a 400 (`email taken`) or a 500. What does the UI show?
- The user submits 'create project'. A teammate wants the new card to appear before the response. When do you…
- The API process is down. The UI still loads. What should the UI do?
- A Next-style SSR page flashes and React logs a hydration mismatch on the header. What do you fix first?
- A long profile form is open. The user hits Save and the network is slow. What does the form do?
- Two people edit the same note. The second save returns 409 Conflict. What does the UI do with 409?
- A teammate throws inside `fetch` so the React error boundary can show the outage. What is the difference?