InterviewStack.io LogoInterviewStack.io

Dependency Failures and Graceful Degradation Questions

Handling failures in external services or dependencies: rate limiting (HTTP 429), timeouts, quota exhaustion. Understanding circuit breakers, intelligent retries, and how to design services that behave well when dependencies fail. Knowing when to disable features vs. when to queue/cache.

EasyTechnical
25 practiced
Describe best practices for setting timeouts and request cancellation on outbound RPC/HTTP calls as an SRE. Include how to choose timeout values relative to upstream SLAs, how to implement cascading cancellation, how to propagate context, and how to avoid 'zombie' requests tying up resources.
HardTechnical
33 practiced
Formulate an optimization problem for selecting backpressure thresholds across a network of services to minimize end-to-end latency subject to per-service quota constraints. Describe variables, objective function, constraints, and outline an approach to compute thresholds in near real-time as loads change.
EasyTechnical
54 practiced
List and justify at least six key observability metrics and alerts an SRE should have to detect and triage dependency degradation. Include metrics for error rates, latency percentiles, saturation, retries, circuit breaker state, and dependency-specific quotas. Explain why each is useful.
HardSystem Design
35 practiced
Design a global distributed service that depends on a rate-limited external API. Requirements: 99.95% availability from the user's perspective, 100M active users, peak total QPS 20k, external API quota 1k QPS per account with per-region quotas. Describe architecture to maintain SLOs, including caching, aggregation, quota brokers, regional proxies, and graceful degradation strategies.
HardTechnical
28 practiced
Design a client library (pseudocode or API spec) that ensures safe retries across microservices participating in long-running workflows implemented with sagas. Requirements: deduplication across retries, idempotency support through idempotency keys, integration with distributed tracing, and minimal developer friction.

Unlock Full Question Bank

Get access to hundreds of Dependency Failures and Graceful Degradation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.