Interview practice question
Load balancer returns 502 and 504 errors
Backend Engineering · Production Debugging · Beginner
Users see 502 Bad Gateway and 504 Gateway Timeout errors from your load balancer. What do these mean and how do you investigate?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- 502: backend gave invalid/no response (crash, reset).
- 504: backend too slow (timeout).
- Check backend health, restarts, logs.
- Compare timeouts (LB vs app keep-alive).
- Check deploys and capacity.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.