nerdexam
Microsoft

70-518 · Question #237

70-518 Question #237: Real Exam Question with Answer & Explanation

The correct answer is C. Modify the Web service to throw exceptions of type FaultException.. See the full explanation below for the reasoning.

Question

You design a Windows Presentation Foundation (WPF) application that interacts with a Windows Communication Foundation (WCF) Web service. The WCF Web service throws exceptions of type Exception. The WPF application crashes when the WCF Web service throws an exception. You need to recommend an error-handling strategy that allows users to submit updated data to the WCF Web service without restarting the WPF application. What should you recommend?

Options

  • AModify the Web service to throw custom exceptions derived from the Exception class.
  • BModify the Web service to throw exceptions of type InvalidOperationException.
  • CModify the Web service to throw exceptions of type FaultException.
  • DModify the Web service to throw custom exceptions derived from the ApplicationException

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice