2v0-7222 Exam QuestionsBrowse all questions from this exam

2v0-7222 Exam - Question 64


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

Show Answer
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

1 comment
Sign in to comment
2211094Option: B
Jun 17, 2024

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.