Topic: Web Technologies
In RESTful API design, which of the following HTTP methods is guaranteed to be idempotent?
- A. PATCH
- B. PUT
- C. POST
- D. CONNECT
Answer: B. PUT
Explanation: An idempotent HTTP method is one where making multiple identical requests has the same effect on the server state as making a single request. `PUT` (along with `GET`, `DELETE`, and `HEAD`) is defined as idempotent. `POST` is not idempotent, and `PATCH` is not strictly guaranteed to be idempotent.