Interview practice question
Stack traces shown to users
Backend Engineering · Auth and Security · Beginner
Your API returns full stack traces and database errors to clients when something fails. Why is this a problem?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Leaks internals: framework, versions, queries, paths.
- Helps attackers.
- Return generic error + correlation ID.
- Log details server-side.
- Different config for dev vs prod.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.