nerdexam
Microsoft

70-513 · Question #96

You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows. SubmitOrder makes a call to another service. The ProcessMessage method does not perform as…

The correct answer is C. ServiceBehavior ( ConcurrencyMode = ConcurrencyMode.Reentrant ). See the full explanation below for the reasoning.

Question

You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows. SubmitOrder makes a call to another service. The ProcessMessage method does not perform as expected under a heavy load. You need to enable processing of multiple messages. New messages must only be processed when the ProcessMessage method is not processing requests, or when it is waiting for calls to SubmitOrder to return. Which attribute should you apply to the MessageProcessor class?

Exhibit

70-513 question #96 exhibit

Options

  • ACallbackBehavior ( ConcurrencyMode = ConcurrencyMode.Reentrant )
  • BCallbackBehavior ( ConcurrencyMode = ConcurrencyMode.Multiple )
  • CServiceBehavior ( ConcurrencyMode = ConcurrencyMode.Reentrant )
  • DServiceBehavior ( ConcurrencyMode = ConcurrencyMode.Multiple )

How the community answered

(64 responses)
  • A
    5% (3)
  • B
    8% (5)
  • C
    72% (46)
  • D
    16% (10)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice