nerdexam
Microsoft

70-513 · Question #73

70-513 Question #73: Real Exam Question with Answer & Explanation

Sign in or unlock 70-513 to reveal the answer and full explanation for question #73. The question stem and answer options stay visible for context.

Question

You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.(Line numbers are included for reference only.) 01 [ServiceContract] 02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)] 03 public class OrderService 04 { 05 [OperationContract] 06 public void SubmitOrder(Order anOrder) 07 { 08 try 09 { 10 ... 11 } 12 catch(DivideByZeroException ex) 13 { 14 ... 15 } 16 } 17 } You need to ensure that the stack trace details of the exception are not included in the error information sent to the client. What should you do?

Options

  • AReplace line 14 with the following line:
  • BReplace line 14 with the following line:
  • CAfter line 05, add the following line:
  • DAlter line 05, add the following line:

Unlock 70-513 to see the answer

You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-513 Practice