Made with Palestinian hands Support EmuPath ☕

No results found.

Try another search or remove some filters.

All practice exams
Web Development / FOUR DIFFICULTY LEVELS

HTTP & REST APIs

Practice HTTP methods, status codes, caching, API contracts, retries and concurrency controls.

Four self-study difficulty levels, from basic concepts to advanced scenarios. Difficulty is an editorial guide, not an official certification ranking. HTTP semantics and practical API design. Examples state their contract where behavior is application-defined; REST does not mandate one universal URL or payload style.

YOUR PRACTICE SPACE

Learn it. Test it. Understand it.

Choose your difficulty

Recognize core concepts and trace a single step.

10 questions in Easy · one answer per question · no timer

Choose a mode

Free, no account needed. Answers stay in this tab and reset on reload. This is self-study, not a proctored exam or certificate.

Choose the right challenge

Easy checks core concepts. Medium applies them to tasks. Hard examines edge cases and failure modes. Very advanced combines constraints such as concurrency, security and recovery. Start where you are comfortable; each level has its own attempt and result. These labels are editorial, not certification grades.

What you will learn

  • Interpret request and response semantics correctly.
  • Design predictable errors, caching and pagination.
  • Handle retries and concurrent updates without losing business correctness.

Think through a real scenario

A client sends a payment request and times out before receiving a response. It cannot tell from the timeout whether the server committed the payment. A blind retry may duplicate the operation. A well-designed API can accept an idempotency key tied to a documented request scope, retain its result, and reject inconsistent reuse. The key needs atomic server handling, not merely a header name.

Turn your result into a study plan

For each missed question, write down the rule you overlooked and test it with a small example. Avoid memorizing an option’s position: understanding the behavior matters more than recognizing the wording. In exam mode explanations stay hidden until you submit; in practice mode use “Check answer” to see feedback immediately.

Read further

The questions and explanations are original EmuPath teaching material. These references provide background for further study; their publishers do not endorse this exam.

Found an ambiguous question? Include the track and question text in your correction report.

Sample HTTP & REST APIs questions with explanations

Preview one question from each difficulty level before choosing a practice session. These examples also appear in the question bank. Try answering first, then open the explanation to check your reasoning.

Easy: Requests

Which part of an HTTP request identifies an operation such as GET or POST?

  1. The request method
  2. The response status code
  3. The server certificate expiry
  4. The response body length
Show answer and explanation

The request method

The request method carries operation semantics. Response status and representation metadata describe the server’s response rather than choosing the original request operation.

Medium: Method safety

Why should a destructive account operation not be implemented as an ordinary GET?

  1. GET is defined as safe and may be fetched automatically by clients or intermediaries
  2. GET cannot contain any headers
  3. GET requests cannot reach a database
  4. Browsers encrypt GET differently from all other methods
Show answer and explanation

GET is defined as safe and may be fetched automatically by clients or intermediaries

Safe method semantics allow retrieval without requesting a state-changing effect. Crawlers, previews and prefetchers may issue GET requests, so destructive semantics create unintended actions.

Hard: Idempotency

An idempotent method is repeated. What does idempotency constrain?

  1. The intended effect on server state, not necessarily identical response bytes
  2. The number of TCP packets must be identical
  3. Every response must have the same Date header
  4. All logging must be suppressed
Show answer and explanation

The intended effect on server state, not necessarily identical response bytes

Idempotency concerns the intended effect of repeated requests. Responses and incidental logging may differ, so do not equate it with identical network output.

Very advanced: Uncertain outcomes

A POST times out after being sent. What can the client infer about the server-side effect?

  1. The outcome is uncertain; the operation may already have committed
  2. The server definitely rolled back every change
  3. The server definitely never received the request
  4. The operation definitely completed exactly once
Show answer and explanation

The outcome is uncertain; the operation may already have committed

A timeout describes the client’s observation, not the final business state. Use a documented recovery or idempotency mechanism rather than assuming the effect did not occur.