Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 64

According to REST principles, which is the recommended way to update the order resource identified by 1234?

    Correct Answer: B

    According to REST principles, the recommended way to update a resource is to use the PUT method at the URL that directly identifies the resource. In this case, sending a PUT request to /orders/1234 is the correct approach. This URL directly addresses the order resource with the identifier 1234, adhering to the standard RESTful convention of using specific resource identifiers in the URL path.

Discussion
2211094Option: B

B correct answer because A is not standard in REST. This approach is not standard in REST. The PUT method is typically used to update or create a resource at a specific URL, but the query parameter (?id=1234) is not part of the standard RESTful pattern.