InterviewStack.io LogoInterviewStack.io

Backend-for-Frontend and Client-Specific API Design Questions

Shaping APIs to the needs of specific consumers: Backend-for-Frontend (BFF) pattern, aggregating/tailoring payloads per client, mobile vs. web bandwidth and battery constraints, and reducing round trips for constrained clients. Covers response shaping, partial responses, and balancing a generic API against client-optimized endpoints.

HardTechnical
33 practiced

Design an automated contract-testing pipeline to ensure frontend and backend API contracts remain compatible. Include the contract source (OpenAPI/GraphQL), generation of mock servers and client types, consumer-driven contract tests (e.g., Pact), CI gates that fail builds on contract break, and how to handle versioned contracts and backward-compatible changes.

MediumTechnical
36 practiced

Describe how Apollo Client's normalized cache works. Explain how cache keys are generated (e.g., __typename + id), how queries and mutations read/write to the cache, and strategies to implement pagination and cache eviction for paginated or frequently-updated lists.

MediumBehavioral
46 practiced

Tell me about a time when you and backend engineers disagreed about an API contract or endpoint design that affected the frontend. Describe the situation (context), the specific technical disagreement, steps you took to resolve it, the decision made, and what you learned (STAR format). Focus on communication, compromise, and how you ensured a smooth integration.

MediumTechnical
36 practiced

Explain client-side and HTTP-layer caching strategies for frontend-backend integration. Cover Cache-Control headers, ETag/If-None-Match conditional requests, Service Worker caches, stale-while-revalidate (SWR), and in-memory memoization in data-fetching libraries. Discuss trade-offs for public vs user-specific content.

HardTechnical
43 practiced

As a senior/frontend lead you must define and drive API integration standards across multiple teams. Outline your approach to integration governance: standards you would set (schema, error formats, versioning), how you'd enforce them (CI checks, codegen, SDKs), how to onboard teams, and which metrics you'd track to measure adoption and integration quality.

Unlock Full Question Bank

Get access to all 35 Backend-for-Frontend and Client-Specific API Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.