nerdexam
Microsoft

70-513 · Question #227

You are developing a Windows Communication Foundation (WCF) service to provide an in- memory cache for many Web applications. The service contract is defined as follows. (Line numbers are included…

The correct answer is D. <ServiceBehavior(InstanceContextMode:=. See the full explanation below for the reasoning.

Question

You are developing a Windows Communication Foundation (WCF) service to provide an in- memory cache for many Web applications. The service contract is defined as follows. (Line numbers are included for reference only.) 01 <ServiceContract()> 02 Public Interface IDataCache 04 . . . 05 End Interface 08 Public Class DataCache 09 Implements IDataCache 11 . . . 12 End Class You need to ensure that all users share the cache. Which code segment should you insert at line 07?

Options

  • A<ServiceBehavior (InstanceContextMode : =
  • B<ServiceBehavior(TransactionIsolationLevel:=
  • C<ServiceBehavior(TransactionIsolationLevel:=
  • D<ServiceBehavior(InstanceContextMode:=

How the community answered

(22 responses)
  • A
    14% (3)
  • B
    5% (1)
  • C
    5% (1)
  • D
    77% (17)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice