MuleSoft Certified Developer – Level 1 — Question 143

What HTTP method in a RESTful web service is typically used to completely replace an existing resource?

Answer options

Correct answer: D

Explanation

The correct answer is D, PUT, as it is specifically designed to update or replace a resource entirely at the specified URI. Option A, GET, is used for retrieving resources and does not modify them. Option B, PATCH, is used for making partial updates to a resource, while Option C, POST, is typically used for creating new resources rather than replacing them.