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.

EasyTechnical
60 practiced

Compare cursor-based pagination with offset-based pagination for APIs. For a frequently-updated feed with a high insert rate at the head, explain which approach you would pick and why. Provide a sample response shape for a cursor-based page and mention how you would encode and expire cursors.

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.

MediumTechnical
59 practiced

Your microservices communicate using protobuf messages. Describe a safe process for evolving that schema over time: how you would add fields, remove fields, and handle a change that would otherwise break existing consumers, including the rollout sequence you would follow.

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.

EasyTechnical
52 practiced

Design a REST API for listing and creating 'products' that supports pagination, filtering, sorting, and versioning. Specify the request/response shapes, your pagination strategy, your versioning approach, and how you would roll out a breaking change to both internal and external clients without a hard cutover.

Unlock Full Question Bank

Get access to all 35 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.