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 offset and cursor pagination?

    Offset pagination uses page number and size (LIMIT 20 OFFSET 40), which is simple but slow on deep pages and shifts when rows change. Cursor pagination continues after the last item seen, so it stays fast and stable.

    BeginnerQuick answer1 min read
  2. 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