MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 43


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

Show Answer
Correct Answer: D

The HTTP method PUT is typically used to completely replace an existing resource in a RESTful web service. PUT updates the resource at the specified URI with the new data provided in the request body, effectively replacing the entire resource.

Discussion

3 comments
Sign in to comment
sirious09Option: D
Aug 16, 2022

D is correct

ilya_tsyOption: D
Sep 8, 2022

PUT - replace entire resource PATCH - update part of the resource

kampatraOption: D
Feb 3, 2023

PUT is correct answer