Interview Q&A / System Design

INTERVIEW Q&A · 70 QUESTIONS

System Design interview questions

Caching, scaling, databases and classic design problems for beginners.

  1. What is the difference between REST and GraphQL?

    REST exposes many fixed endpoints that each return a set shape of data. GraphQL exposes one endpoint where the client asks for exactly the fields it needs, which avoids over-fetching but makes caching and rate limiting harder.

    BeginnerQuick answer1 min read
  2. What is the N+1 problem in GraphQL and how is it solved?

    N+1 happens when fetching a list triggers one query for the list and then one extra query per item for a nested field. DataLoader batches those per-item lookups into a single query.

    IntermediateQuick answer1 min read