API and Interface Design for Distributed Services Questions

Designing the contracts between services and clients: REST, gRPC, and GraphQL tradeoffs, versioning and backward compatibility, pagination, rate limiting, and idempotent endpoints. Covers request/response modeling, error contracts, and API gateway responsibilities. Focuses on the interface layer that ties distributed components together, not internal data schemas.

HardTechnical
60 practiced

You are seeing intermittent duplicates and missing items in a paginated transaction list shown to clients, and the backend has concurrent writes. Describe a troubleshooting plan: which logs, traces, and client telemetry you would collect; synthetic tests to reproduce it; short-term mitigations you could ship quickly; and the long-term fix.

MediumSystem Design
44 practiced

Describe how you would design API pagination and sync endpoints for a mobile app that must support partial offline sync. The endpoints should let the client reconcile local mutations with server state and fetch only deltas since the last sync point. Provide the high-level request/response contract and how you would surface conflicts to the caller.

MediumTechnical
47 practiced

A public API needs a new required field added to its request schema, and it's used by many client versions whose release cadence you don't control. Walk through how you would roll this out with zero downtime and minimal disruption to existing clients, including how you would eventually know it's actually safe to enforce the field as required.

HardSystem Design
58 practiced

Design API endpoints and backend read models for an analytics dashboard that needs aggregated counts and top-k lists, without pushing heavy aggregation onto the client. Discuss the trade-offs between freshness, storage cost, and query complexity in how you shape those endpoints.

MediumTechnical
42 practiced

Two clients read the same resource through your API, both submit an update, and the second write silently overwrites the first client's change without either client finding out. Design a request/response contract that prevents this kind of lost update, and walk through what the client sees when its update is rejected because the resource changed underneath it.

Unlock Full Question Bank

Get access to all 34 API and Interface Design for Distributed Services interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.