PUBLIC QUESTION PREVIEW
Backend & APIs interview questions
REST design, auth, Node.js, microservices, message queues, rate limiting.
Showing 12 of 30 source questions. Sample answers are study material, not employer-specific hiring guidance.
How to work through this preview
Attempt each question before reading its answer. For a concept, give a definition and a concrete example. For code, state constraints, walk through a small input, and check complexity. For design, separate requirements from assumptions and explain failure handling. Use real situations for behavioral answers.
QUESTION 1 / easy / conceptual
What is the difference between authentication and authorization?
Sample answer
Hints to guide your next attempt
- AuthN = who are you? AuthZ = what can you do?
Source tags: auth / authentication / authorization / security / jwt
QUESTION 2 / easy / conceptual
What is REST? What makes an API truly RESTful?
Sample answer
Hints to guide your next attempt
- 6 constraints: stateless, client-server, cacheable, uniform interface, layered system, code-on-demand
Source tags: rest / api / http / stateless
QUESTION 3 / medium / conceptual
What is JWT? How does token-based auth work? What are the security risks?
Sample answer
Hints to guide your next attempt
- Header.Payload.Signature — what does each part do?
- JWT is signed, not encrypted
Source tags: jwt / authentication / token / security / backend
QUESTION 4 / easy / conceptual
Explain HTTP methods: GET, POST, PUT, PATCH, DELETE. What is idempotency?
Sample answer
Hints to guide your next attempt
- Idempotent = calling N times has same effect as calling once
- GET/PUT/DELETE are idempotent, POST is not
Source tags: http-methods / rest / idempotency / api / backend
QUESTION 5 / easy / conceptual
What are common HTTP status codes? What does each range mean?
Sample answer
Hints to guide your next attempt
- 2xx success, 3xx redirect, 4xx client error, 5xx server error
Source tags: http-status / rest / api / 200 / 404 / 500 / backend
QUESTION 6 / medium / conceptual
What is CORS? Why does it exist and how do you configure it correctly?
Sample answer
Hints to guide your next attempt
- Same-Origin Policy is the browser restriction CORS relaxes
- Preflight OPTIONS request
Source tags: cors / same-origin-policy / preflight / security / backend
QUESTION 7 / medium / conceptual
What are different API versioning strategies? What are the trade-offs of each?
Sample answer
Hints to guide your next attempt
- URL path versioning is most common
- Header versioning is cleaner but less visible
Source tags: api-versioning / rest / backward-compatibility / api / backend
QUESTION 8 / medium / conceptual
What is GraphQL? How does it differ from REST? When should you use it?
Sample answer
Hints to guide your next attempt
- Client specifies exactly what data it needs
- Over-fetching and under-fetching problems
Source tags: graphql / rest / api / over-fetching / backend
QUESTION 9 / medium / conceptual
What are WebSockets? How do they differ from HTTP? When would you use them?
Sample answer
Hints to guide your next attempt
- WebSocket = persistent bidirectional connection
- HTTP is request-response, WebSocket is full-duplex
Source tags: websocket / real-time / http / sse / backend
QUESTION 10 / medium / conceptual
What is rate limiting? What algorithms are used to implement it?
Sample answer
Hints to guide your next attempt
- Token bucket, sliding window, fixed window
- Redis INCR + EXPIRE for distributed rate limiting
Source tags: rate-limiting / token-bucket / redis / api / backend
QUESTION 11 / medium / conceptual
What is caching? Explain cache-aside, write-through, and write-behind patterns.
Sample answer
Hints to guide your next attempt
- Cache-aside (lazy loading) is most common — app manages cache explicitly
Source tags: caching / cache-aside / write-through / redis / backend
QUESTION 12 / medium / conceptual
What is the Node.js event loop? How does non-blocking I/O work?
Sample answer
Hints to guide your next attempt
- Single-threaded but non-blocking via event loop + libuv
- I/O operations are offloaded to OS
Source tags: nodejs / event-loop / async / libuv / backend
Check understanding, not recognition
- Can you explain the answer without reading it?
- Can you show when the approach fails or needs a different assumption?
- Can you connect the concept to a real project, task, or decision you have made?
- Can you distinguish a simplified interview example from a production requirement?
A LITTLE MORE CLARITY
Frequently asked questions
How many Backend & APIs questions are shown here?
This public preview shows 12 questions with the supplied answers from the app's 30-question Backend & APIs bank. Full interactive practice requires signing in.
Should I memorize the sample answers?
Use them as reference explanations, not a script or a guarantee of technical correctness for every environment. Explain your assumptions, validate code against your language and version, and discuss trade-offs. Behavioral answers should be built from your own experience.
What do hints and solution steps mean?
Hints identify ideas to consider before reading the answer. When the source question includes steps, they are shown as a separate walkthrough. Example capacities and design targets in a solution are assumptions for that exercise, not real system statistics.
BUILD YOUR NEXT OPPORTUNITY
Practice Backend & APIs actively.
Sign in to use the full topic bank and interactive practice workspace.