Developing Microsoft Azure and Web Services — Question 96
You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to moderate a comment.
Which HTTP verb should you use?
Answer options
- A. GET
- B. POST
- C. DELETE
- D. PUT
Correct answer: D
Explanation
The correct answer is D (PUT) because this verb is typically used to update or modify an existing resource, which in this case refers to moderating a comment. Options A (GET) and B (POST) are used for retrieving data and creating new resources, respectively, while C (DELETE) is meant for removing resources rather than modifying them.