Correct Answer: PATCH
According to the official Microsoft learning materials, including the AZ-204 Learning Path, PATCH is the correct answer for partially updating a resource. This is why it's selected as the correct answer in the assessment.
PATCH since the question is worded as "update a resource with new values."
If it said "replace a resource entirely" then PUT would be correct.
In RESTful APIs (especially those using ASP.NET or Azure Functions), it's best practice to:
-
POST
to create, -
GET
to retrieve, -
PUT
to fully replace, -
PATCH
to update only parts of an existing resource.