nerdexam
Microsoft

70-513 · Question #85

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

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

Question

You are developing a Windows Communication Foundation (WCF) service. One of the service operations contains the following code. private static int counter = 0; [OperationContract] public void IncrementCount() [ counter++; } You need to set a service behavior that prevents two or more threads from incrementing the counter variable at the same time. Which code segment should you use to set the service behavior?

Options

  • A[ServiceBehavior(
  • B[ServiceBehavior(
  • C[ServiceBehavior(
  • D[ServiceBehavior(

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