Microsoft
70-513 · Question #313
70-513 Question #313: Real Exam Question with Answer & Explanation
Sign in or unlock 70-513 to reveal the answer and full explanation for question #313. The question stem and answer options stay visible for context.
Question
You are integrating a Windows Communication Foundation (WCF) service within an enterprise wide Service Oriented Architecture (SOA). Your service has the following service contract: [ServiceContract] public class CreditCardConfirmationService { [OperationContract] boolean ConfirmCreditCard(string ccNumber); double OrderAmount(int orderNumber); } You need to allow the code in the ConfirmCreditCard method to participate automatically in existing transactions. If there is no existing transaction, a new transaction must be created automatically. What should you do?
Options
- AInside the ConfirmCreditCard method, surround the code that must participate in the
- BInside the ConfirmCreditCard method, surround the code that must participate in the
- CAdd an [OperationBehavior(TransactionScopeRequired=true)] attribute to the
- DAdd an [OperationBehavior(TransactionAutoComplete=true)] attribute to the
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.