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
Options
- AOption A
- BOption B
- COption C
- DOption D
How the community answered
(34 responses)- A3% (1)
- B15% (5)
- C71% (24)
- D12% (4)
Community Discussion
No community discussion yet for this question.

