InterviewStack.io LogoInterviewStack.io

API and Full Stack Coding Patterns Questions

Beyond pure algorithms, be prepared for problems that combine algorithmic thinking with API design, rate limiting, caching strategies, or distributed system concepts. Understanding how a coding solution fits into a larger fullstack architecture.

EasyTechnical
0 practiced
Write a small Express (Node.js) handler for GET /resource that returns JSON when the Accept header prefers application/json and XML when it prefers application/xml. Include example Accept headers and sample JSON/XML responses. Show proper Content-Type header handling and a default fallback.
HardTechnical
0 practiced
Case study: A third-party payment provider will deprecate their v1 webhook format in 3 months. You run SRE for a merchant platform. Create a migration plan that includes detecting impacted merchants, building compatibility shims or adapters, SDK updates, rollout timeline, monitoring and rollback strategy, and legal/operational considerations.
HardTechnical
0 practiced
Design and provide pseudocode for a mechanism that invalidates a distributed cache across regions when a write occurs in one region, ensuring readers in other regions see fresh data within 1 second while minimizing cross-region bandwidth. Discuss the trade-offs and failure modes.
EasyTechnical
0 practiced
Propose three SLIs for a public REST API and write concrete SLOs for each (e.g., availability, latency, error-rate). For each SLO set a measurement window, SLI calculation (e.g., p99 latency < 300ms over 30 days), and suggest alert burn-rate thresholds and paging thresholds an SRE should use.
MediumTechnical
0 practiced
A microservice returns stale cache-backed search results after an index rebuild. As SRE, propose an invalidation strategy that scales across services: compare versioned keys, cache tags, and event-driven invalidation. Choose one approach, justify it, and outline implementation steps including monitoring.

Unlock Full Question Bank

Get access to hundreds of API and Full Stack Coding Patterns interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.