Questions
- Which of the following HTTP verbs is recommended for creating a resource?
a.
GETb.
POSTc.
DELETEd.
PUT - Which of the following HTTP status codes represents 
No Content?a.
200b.
201c.
202d.
204 - Which of the following middlewares is used to configure routing?
a.
UseDeveloperExceptionPage()b.
UseHttpsRedirection()c.
UseRouting()d.
UseAuthorization() - If a controller is annotated with the 
[ApiController]attribute, do I need to classModelState.IsValidexplicitly in each action method?a. Yes, model validation isn't part of the
ApiControllerattribute, hence, you need to callModelState.Validin each action method.b. No, model validation is handled as part of the
ApiControllerattribute, hence,ModelState.Validis triggered automatically for all action items.