System Design · Junior · Question 6 of 75

Which HTTP method is NOT idempotent?

Explanation

Idempotency: repeating the same request has the same effect on the server. PUT replaces a resource entirely, DELETE removes it - repeating changes nothing. Two "create order" POSTs create two orders. That's why retrying POST on failure is dangerous without an idempotency key.

Further reading

Problem with a question

System Design · Junior · question 6

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz