Which HTTP verb is normally used to update or replace an already existing resource?
- GET
- PUT
- POST
- PATCH
Explanation: In REST APIs, the HTTP verb PUT is normally used to update or replace an already existing resource. When a client uses PUT, it sends a request with a complete updated representation of the resource, effectively overwriting the original content. This is distinct from PATCH, which is used to modify a resource by sending only the specific changes or attributes that need to be updated rather than the full resource. Additionally, GET is used for retrieving or reading a resource, while POST is primarily used to create a new resource.
Related exam: Modules 21 – 22: Checkpoint Exam: Programmability Answers (CCNP ENCOR v9)
