Interview practice question
API responses are huge
System Design · APIs and Communication · Intermediate
An endpoint returns user objects with 150 fields, but most clients use 10. Responses are slow and large. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Field selection (fields= parameter).
- Separate summary vs detail endpoints.
- GraphQL for flexible selection.
- Compression.
- Avoid exposing internal fields.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.