nerdexam
Microsoft

70-519 · Question #271

You are designing a testing methodology for an ASP.NET MVC 2 Web application. The application has a simple domain model that provides a thin wrapper over a data access layer. Controllers interact…

The correct answer is D. The repository objects. See the full explanation below for the reasoning.

Question

You are designing a testing methodology for an ASP.NET MVC 2 Web application. The application has a simple domain model that provides a thin wrapper over a data access layer. Controllers interact with the domain model directly and use methods on repository objects to save and retrieve objects from the data access layer. You have the following requirements:

  • Centralize data operations.
  • Directly validate data access rules.

You need to design tests against the appropriate layer to meet the requirements. Which layer should you recommend?

Options

  • AThe controllers
  • BThe domain model
  • CThe data access layer
  • DThe repository objects

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    16% (5)
  • D
    75% (24)

Community Discussion

No community discussion yet for this question.

Full 70-519 Practice