APIs and Communication interview questions
100 System Design practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise APIs and Communication questionsBeginner
- API specifications like OpenAPI
- API versioning
- Authenticating API clients
- Backend for frontend
- Choosing a real-time technique for notifications
- Choosing the right status code
- Client waits forever on an API
- Consistent API error responses
- Content negotiation and compression
- Designing a search endpoint
- Designing REST endpoints for a blog
- HTTP methods and idempotency
- HTTP/2 and HTTP/3
- Important HTTP status codes
- JSON vs Protocol Buffers
- Mobile app makes too many API calls
- Notifying users when the app is closed
- Offset vs cursor pagination
- Paginating a social feed
- Polling vs long polling
- Renaming a field in a public API
- Role of an API gateway in communication
- RPC vs resource-oriented APIs
- Securing webhook endpoints
- Server-sent events
- Should internal services use gRPC?
- Synchronous vs asynchronous communication between services
- Webhooks vs polling for integrations
- What a REST API is
- What a service mesh is
- What GraphQL is
- What gRPC is
- What WebSockets are
- Why use HTTPS everywhere
Intermediate
- API composition pattern
- API deprecation process
- API for a long-running operation
- API gateway vs service mesh
- API responses are huge
- Backward and forward compatibility
- Breaking changes between internal services
- Bulk operations in a REST API
- Caching challenges with GraphQL
- Calling a flaky partner API
- Chatty services slow everything down
- Client-side vs server-side load balancing
- Common API security risks
- Communicating rate limits to clients
- Connection reuse and keep-alive
- Evolving Protobuf schemas safely
- GraphQL federation
- gRPC streaming types
- HATEOAS and hypermedia
- Live sports score updates for millions
- Making REST responses cacheable
- Mutual TLS between services
- One backend fails during aggregation
- Protecting a GraphQL API from expensive queries
- Retry-safe payment API
- Routing API calls to the user's home region
- Routing messages to the right WebSocket server
- TCP vs UDP for application protocols
- The N+1 problem in GraphQL
- Uploading large files through an API
- Using gRPC with browser clients
- Webhooks arrive out of order
- When to choose GraphQL over REST
Experienced
- Choosing protocols for a ride-hailing app
- Choosing sync vs async for an order flow
- Communication for millions of IoT devices
- Concurrent updates through an API
- Converting a slow sync API to async
- Created item doesn't appear in list
- Designing a developer platform API
- Designing a federated graph for many teams
- Designing APIs around aggregates
- Designing safe deletes in an API
- Documenting event-driven APIs
- Draining long-lived connections during deploys
- Exposing consistency guarantees in APIs
- Exposing events to external partners
- Flow control in streaming APIs
- Gateway as a bottleneck
- GraphQL subscriptions at scale
- gRPC traffic is unbalanced
- Handling dates and time zones in APIs
- Idempotency key design details
- Knowing who uses which endpoint
- Large partner needs higher throughput
- Migrating a monolith's API behind a gateway
- Policy enforcement at the edge vs in services
- Reducing API latency for global users
- Representing money in APIs
- Retry semantics in RPC frameworks
- Should you adopt a service mesh?
- Slow GraphQL queries in production
- Supporting very old mobile app versions
- Tenant isolation at the API layer
- Testing a public API before release
- Why QUIC matters for mobile users