LearnThatStack Ace your next interview
Backend Development
REST.
44 Qs 6 free
Change topic Change
Drill · questions

All questions

of 44
Beginner 9
01

What are the main HTTP methods used in REST APIs and their purposes?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The main HTTP methods (verbs) used in REST APIs are:

  • GET: Retrieves data from the server. Should be safe and idempotent.
  • POST: Creates new resources or submits data for processing.
  • PUT: Updates an entire resource or creates it if it doesn't exist. Should be idempotent.
  • PATCH: Partially updates a resource.
  • DELETE: Removes a resource. Should be idempotent.
  • HEAD: Similar to GET but returns only headers, not the body.
  • OPTIONS: Returns allowed methods for a resource.

Example:

GET /users/123        # Retrieve user with ID 123
POST /users           # Create a new user
PUT /users/123        # Update entire user 123
PATCH /users/123      # Partially update user 123
DELETE /users/123     # Delete user 123
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

What are HTTP status codes and give examples of common ones?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

HTTP status codes are three-digit numbers that indicate the result of an HTTP request. They are grouped into five categories:

1xx - Informational:

  • 100 Continue

2xx - Success:

  • 200 OK: Request successful
  • 201 Created: Resource successfully created
  • 204 No Content: Successful but no content to return

3xx - Redirection:

  • 301 Moved Permanently
  • 304 Not Modified

4xx - Client Error:

  • 400 Bad Request: Invalid request syntax
  • 401 Unauthorized: Authentication required
  • 403 Forbidden: Access denied
  • 404 Not Found: Resource doesn't exist
  • 409 Conflict: Request conflicts with current state

5xx - Server Error:

  • 500 Internal Server Error
  • 503 Service Unavailable
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

What is the difference between PUT and POST methods?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The key differences between PUT and POST are:

PUT:

  • Idempotent: Multiple identical requests have the same effect
  • Specific target: Usually targets a specific resource with known identifier
  • Replace/Create: Replaces entire resource or creates if doesn't exist
  • Safe to retry: Can be safely retried without side effects

POST:

  • Not idempotent: Multiple requests may have different effects
  • Collection target: Usually targets a collection to create new resources
  • Create/Process: Creates new resources or processes data
  • Not safe to retry: May create duplicate resources if retried

Examples:

PUT /users/123     # Replace/update user 123 specifically
POST /users        # Create a new user (server assigns ID)
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

What makes an API RESTful?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

An API is considered RESTful when it adheres to REST architectural constraints:

  1. Uniform Interface: Consistent resource identification (URLs), manipulation through representations, self-descriptive messages, and HATEOAS
  2. Stateless: Each request is independent and contains all necessary information
  3. Cacheable: Responses indicate whether they can be cached
  4. Client-Server: Clear separation of concerns
  5. Layered System: Can include intermediary layers (proxies, gateways)
  6. Code on Demand (optional): Server can send executable code to client

Additionally, RESTful APIs typically:

  • Use standard HTTP methods appropriately
  • Return appropriate HTTP status codes
  • Use resource-based URLs (nouns, not verbs)
  • Support multiple representations (JSON, XML)
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

05

What is a resource in REST?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A resource in REST is any piece of information that can be named and accessed via a URI (Uniform Resource Identifier). Resources are the key abstraction in REST architecture.

Characteristics of resources:

  • Identifiable: Each resource has a unique URI
  • Representable: Can be represented in different formats (JSON, XML, HTML)
  • Stateless: The resource's representation captures its current state
  • Manipulable: Can be created, read, updated, or deleted

Examples:

  • A user: /users/123
  • A collection of users: /users
  • A user's orders: /users/123/orders
  • A specific order: /orders/456

Resources should be nouns, not verbs, and represent entities or collections of entities in your domain.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

06

What is the difference between URI, URL, and URN?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

These are related but distinct concepts:

URI (Uniform Resource Identifier):

  • Generic term for any identifier that identifies a resource
  • Superset that includes both URLs and URNs
  • Example: mailto:john@example.com

URL (Uniform Resource Locator):

  • Type of URI that specifies location and method to access a resource
  • Includes protocol, domain, and path
  • Example: https://api.example.com/users/123

URN (Uniform Resource Name):

  • Type of URI that identifies a resource by name in a specific namespace
  • Location-independent identifier
  • Example: urn:isbn:0451450523

In REST APIs, we primarily work with URLs to locate and access resources over HTTP.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

07

What are query parameters and path parameters?

Part of Pro
08

What is JSON and why is it commonly used in REST APIs?

Part of Pro
09

What is Content-Type header and why is it important?

Part of Pro
Intermediate 21
10

What is idempotency in REST APIs and which HTTP methods are idempotent?

Part of Pro
11

What is HATEOAS and how does it work?

Part of Pro
12

What are the different types of API authentication methods?

Part of Pro
13

What is API versioning and what are different versioning strategies?

Part of Pro
14

What is content negotiation in REST APIs?

Part of Pro
15

How do you handle errors in REST APIs?

Part of Pro
16

What is caching in REST APIs and what are caching strategies?

Part of Pro
17

What is the difference between synchronous and asynchronous APIs?

Part of Pro
18

What are HTTP response headers commonly used in REST APIs?

Part of Pro
19

What is rate limiting and how is it implemented?

Part of Pro
20

What is pagination and what are different pagination techniques?

Part of Pro
21

What is CORS and how does it affect REST APIs?

Part of Pro
22

What is GraphQL and how does it compare to REST?

Part of Pro
23

How do you handle file uploads in REST APIs?

Part of Pro
24

What are the considerations for API deprecation?

Part of Pro
25

How do you implement search functionality in REST APIs?

Part of Pro
26

What are the differences between API-first and code-first approaches?

Part of Pro
27

How do you implement real-time features with REST APIs?

Part of Pro
28

How do you design APIs for mobile applications?

Part of Pro
29

What are the security headers important for REST APIs?

Part of Pro
30

How do you implement API analytics and usage tracking?

Part of Pro
Expert 14
31

How would you design a REST API for a complex domain with relationships?

Part of Pro
32

What are the security considerations for REST APIs?

Part of Pro
33

How do you handle transactions and data consistency in REST APIs?

Part of Pro
34

What are webhooks and how do they differ from polling?

Part of Pro
35

How do you implement API documentation and what are the best practices?

Part of Pro
36

What is API gateway and what are its benefits?

Part of Pro
37

How do you implement API monitoring and observability?

Part of Pro
38

What are microservices and how do REST APIs fit into microservices architecture?

Part of Pro
39

How do you implement API testing strategies?

Part of Pro
40

What are API design patterns and anti-patterns?

Part of Pro
41

What is API orchestration vs choreography?

Part of Pro
42

How do you handle API backward compatibility?

Part of Pro
43

What are API gateways and service mesh, and how do they differ?

Part of Pro
44

What are the best practices for API error handling and debugging?

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

38 of 44 REST answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.