nerdexam
GIAC

GSNA · Question #336

GSNA Question #336: Real Exam Question with Answer & Explanation

Sign in or unlock GSNA to reveal the answer and full explanation for question #336. The question stem and answer options stay visible for context.

Question

You work as a Software Developer for Mansoft Inc. You create an application and use it to create users as members of the local Users group. Which of the following code snippets imperatively demands that the current user is a member of the local Users group?

Options

  • ASystem.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
  • BPrincipalPermission MyPermission = new PrincipalPermission(null, @"BUILTIN\Users", true);
  • CSystem.AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
  • DPrincipalPermission MyPermission = new PrincipalPermission(null, @"Users", true);

Unlock GSNA to see the answer

You've previewed enough free GSNA questions. Unlock GSNA 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 GSNA Practice