nerdexam
Microsoft

70-513 · Question #286

70-513 Question #286: Real Exam Question with Answer & Explanation

Sign in or unlock 70-513 to reveal the answer and full explanation for question #286. The question stem and answer options stay visible for context.

Question

You are developing a Windows Communication Foundation (WCF) service that returns location information for authorized law enforcement agencies. The service contract is as follows. Users are authenticated and impersonated. The system uses ASP.NET roles. The members of law enforcement are members of the LawEnforcement role. You need to ensure that only members of the LawEnforcement role can call these methods. What are two possible ways to achieve this goal (Each correct answer presents a complete solution. Choose two.)

Exhibit

70-513 question #286 exhibit

Options

  • AAdd a PrincipalPermissionAttribute to each method that should be available only to members
  • BUse the CurrentPrincipal property of the thread.
  • CCreate a GenericPrincipal specifying Thread.CurrentPrincipal.Identity as the
  • DAt the beginning of each method, enumerate each ClaimSet in a new WindowsClaimSet.

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.

Full 70-513 Practice