nerdexam
Microsoft

70-513 · Question #169

A class named TestService implements the following interface. TestService is hosted in an ASP.NET applicator. You need to modify the application to allow the GetServiceTime method to return the data…

The correct answer is C. Add this attribute to the GetServiceTime method. See the full explanation below for the reasoning.

Question

A class named TestService implements the following interface. TestService is hosted in an ASP.NET applicator. You need to modify the application to allow the GetServiceTime method to return the data formatted as JSON. It must do this only when the request URL ends in lServiceTime. What should you do?

Exhibit

70-513 question #169 exhibit

Options

  • AAdd this attribute to the GetServiceTime method
  • BAdd this attribute to the GetServiceTime method
  • CAdd this attribute to the GetServiceTime method
  • DAdd this attribute to the GetServiceTime method

How the community answered

(46 responses)
  • A
    4% (2)
  • B
    15% (7)
  • C
    76% (35)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice