APIs
All interview questions related to APIs
Which HTTP methods are idempotent and why does idempotency matter in API design?
Compare GraphQL and REST APIs in terms of flexibility, performance, and trade-offs.
Contrast WebSockets and gRPC streaming for real-time communication. How do you scale and secure each?
Design a payment gateway supporting multiple processors, 3-D Secure, refunds, settlements, and PCI concerns.
Design a federated GraphQL gateway that composes multiple subgraphs, with caching, authorization, and schema evolution.
Design a multi-tenant API gateway that handles routing, auth, rate limiting, request/response transformations, canarying, and observability across regions.
Design a system for storing secrets and managing encryption keys with rotation, auditing, and fine-grained access control.
Multiple services are failing with timeout errors when calling an internal API. How do you approach debugging?
Sudden latency spikes correlate with saturated server thread pools. How do you diagnose and remediate safely?