nerdexam
Microsoft

70-513 · Question #113

You are developing a Windows Communication Foundation (WCF) service that executes a long- running operation. The service is accessed from your business applications in a server transaction in which…

The correct answer is B. Apply [ServiceBehavior(TransactionTimeout="00:00:45")] to the service. See the full explanation below for the reasoning.

Question

You are developing a Windows Communication Foundation (WCF) service that executes a long- running operation. The service is accessed from your business applications in a server transaction in which the client does not participate. You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?

Options

  • ASet the service binding sendTimeout attribute to 00:00:45.
  • BApply [ServiceBehavior(TransactionTimeout="00:00:45")] to the service
  • CSet the service binding receiveTimeout attribute to 00:00:45.
  • DApply [OperationBehavior(TransactionScopeRequired=false)] to the service

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    74% (23)
  • C
    6% (2)
  • D
    16% (5)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice