nerdexam
MuleSoft

MCD-LEVEL-1 · Question #145

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

The correct answer is C. PUT. PUT replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource

API Design and RESTful Principles

Question

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

Options

  • AGET
  • BPATCH
  • CPUT
  • DPOST

How the community answered

(63 responses)
  • A
    2% (1)
  • B
    3% (2)
  • C
    89% (56)
  • D
    6% (4)

Explanation

PUT replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource

Topics

#HTTP methods#REST#PUT#resource replacement

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice