Microsoft
70-513 · Question #309
70-513 Question #309: Real Exam Question with Answer & Explanation
The correct answer is D. Add the following attribute to the SavePerson operation on lContosoService. See the full explanation below for the reasoning.
Question
A Windows Communication Formation (WCF) client and service share the following service contract interface <ServiceContractO> Public Interface IContosoService <OperationContractO> Sub SasePerson(BWal person As Person) End Interface They also use the following binding. Dim binding As NetTcpBinding = New NetTcpBinding With {TransactionFlow = True) The client cals the service with the (following code using (mransactionScope ts = new TransactionScope(TransactionScopeOption Required)) { IContosoService client = factoryCreateChannelO; client SavePerson(person); Consde. WriteLine( Transaction. CurreriTransactioninformation DistnbutedldentifierX ts CorrpleteO; ) The service has the following impementation for SavePerson Public Sub SavePerson(ByVal person As Perwn) -- implements IContosoService SavePerson person Save() ConsdeWriteLine(Transaction .Current Transactionlnformaiona Distributedldentifier) End Sit The distributed identifiers do not match on the client and the server. You need to ensure that the client and server enlist in the same distributed transaction What should you do?
Options
- AAdd the following attributes to the SavePerson operation on IContosoService.
- BAdd the following attributes to the SavePerson operation on lContosoService
- CAdd the following attribute to the SavePerson operation on lContosoService
- DAdd the following attribute to the SavePerson operation on lContosoService
Community Discussion
No community discussion yet for this question.