nerdexam
Microsoft

70-513 · Question #173

You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows. Sub…

The correct answer is A. Add the WebInvoke(UriTemplate: = "/Items/{id>", Method: = "DELETE") attribute to the. See the full explanation below for the reasoning.

Question

You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows. Sub DeleteItems (ByVol id As String) You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?

Options

  • AAdd the WebInvoke(UriTemplate: = "/Items/{id>", Method: = "DELETE") attribute to the
  • BAdd the HttpDelete attribute to the operation.
  • CReplace the string parameter with a RemovedActivityAction parameter.
  • DChange the Sub statement to Function and specify RemovedActivityAction as the return type.

How the community answered

(57 responses)
  • A
    74% (42)
  • B
    16% (9)
  • C
    4% (2)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice