nerdexam
Microsoft

70-484 · Question #97

You are designing your Windows Store app with the MVVM design pattern. In the data access layer, you use an XML file to store and retrieve data. To maximize reuse of code across Windows Store, WPF…

The correct answer is C. Create a file helper class to read the XML file. Use this file to populate the data model. See the full explanation below for the reasoning.

Question

You are designing your Windows Store app with the MVVM design pattern. In the data access layer, you use an XML file to store and retrieve data. To maximize reuse of code across Windows Store, WPF, and Silverlight applications, how should you implement data access layer in your application?

Options

  • AImplement the logic to read the XML file when the page loads and display data from the XML
  • BCreate a viewmodel and populate its properties from the XML file in its constructor.
  • CCreate a file helper class to read the XML file. Use this file to populate the data model.
  • DImplement the logic to read the XML file when the page loads and populate the viewmodel.

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    80% (20)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-484 Practice