Interview practice question
API leaks sensitive fields
Backend Engineering · API Design · Intermediate
A security review finds your user API returns password hashes and internal flags in responses. How did this happen and how do you prevent it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Returning ORM entities directly.
- Use explicit response DTOs/serialisers.
- Allowlist fields.
- Tests on response shapes.
- Review for PII exposure.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.