nerdexam
Microsoft

70-513 · Question #159

You are developing a Windows Communication Foundation (WCF) service. One of the service operations contains the following code. You need to set a service behavior that prevents two or more threads…

The correct answer is C. Option C. See the full explanation below for the reasoning.

Question

You are developing a Windows Communication Foundation (WCF) service. One of the service operations contains the following code. 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?

Exhibits

70-513 question #159 exhibit 1
70-513 question #159 exhibit 2

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    15% (5)
  • C
    71% (24)
  • D
    12% (4)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice