Ctrl K
Backend · Junior · Theory

What's the difference between the HTTP methods GET, POST, PUT, PATCH and DELETE? And what does it mean for a method to be idempotent?

~4 min by voice

How to approach it

They're checking whether the candidate understands the semantics of the main HTTP methods, not just "GET gets, POST sends", and can explain idempotency and why it matters in practice: safely retrying requests after failures.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsWrite a handler for creating a payment that takes an idempotency key and the payment data and returns the result. A repeat request with the same key must not charge the money a second time, even if two identical requests arrive simultaneously on different instances of the service; you have a database and an external payment provider. SeniorСервис зачислений читает из Kafka события об успешных платежах и пополняет счёт клиента. Как вы гарантируете, что одно и то же событие не зачислит деньги дважды? SeniorЧем HTTP/2 отличается от HTTP/1.1 на уровне того, как байты идут по соединению? Какую проблему он решил, какую оставил, и при чём тут HTTP/3? Mid-levelWhat classes of HTTP response codes do you know, and which specific codes does a backend return most often? JuniorA daily pipeline loads yesterday's data into the warehouse. Sometimes it fails halfway through, and after a restart duplicates show up in the table. How would you redesign it? Mid-level

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min