Microsoft
70-576 · Question #2
70-576 Question #2: Real Exam Question with Answer & Explanation
Sign in or unlock 70-576 to reveal the answer and full explanation for question #2. The question stem and answer options stay visible for context.
Question
You are designing a SharePoint 2010 feature. The feature includes a feature receiver that executes code on activation and deactivation. The feature receiver code interacts with a Web service, which could cause errors beyond your control. You need to ensure that the feature does not activate or deactivate if the Web service causes an error. Which approach should you recommend?
Options
- AWrap your code in a Try-Catch block.
- BWrap your code in a Try-Catch block.
- CWrap your code in a Try-Catch block.
- DWrap your code in a Try-Finally block.
Unlock 70-576 to see the answer
You've previewed enough free 70-576 questions. Unlock 70-576 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.