nerdexam
Microsoft

70-513 · Question #97

A WCF service code is implemented as follows. (Line numbers are included for reference only.) 01 [ServiceContract] 02 [ServiceBehavior(InstanceContextMode = 03 InstanceConcextMode.Single)] 04 public…

The correct answer is A. Change the service behavior to the following. B. Change the service behavior to the following. See the full explanation below for the reasoning.

Question

A WCF service code is implemented as follows. (Line numbers are included for reference only.) 01 [ServiceContract] 02 [ServiceBehavior(InstanceContextMode = 03 InstanceConcextMode.Single)] 04 public class CalculatorService 05 { 06 [OperacionContract] 07 public double Calculate(double opl, string op, double op2) 08 { ... 24 } 25 } You need to decrease the response time of the service. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Options

  • AChange the service behavior to the following.
  • BChange the service behavior to the following.
  • CRequire the clients use threads, the Parallel Task Library, or other mechanism to issue service
  • DRequire the clients to use async operations when calling the service.

How the community answered

(31 responses)
  • A
    84% (26)
  • C
    6% (2)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice