nerdexam
GIAC

GSSP-JAVA · Question #146

GSSP-JAVA Question #146: Real Exam Question with Answer & Explanation

Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #146. The question stem and answer options stay visible for context.

Question

Mark works as a Programmer for InfoTech Inc. He develops the following code for a Web application named JavaSecurity Application. <web-app . . . .> <display-name>A JavaSecurity Application</display-name> <servlet> ... <security-role-ref > <role-name>Manager</role-name> <role-link>Admin</role-link> </security-role-ref> </servlet> <security-role> <role-name>Programmer</role-name> </security-role> <security-role> <role-name>Admin</role-name> </security-role> <security-role> <role-name>Employee</role-name> </security-role> </web-app> Which of the following will be the action of the container if the request is HttpServletRequest, and request.isUserInRole("Admin"); has been called in a servlet code?

Options

  • AThe container will throw a system exception.
  • BThe container will return true.
  • CThe container will throw an application exception.
  • DThe container will return false.

Unlock GSSP-JAVA to see the answer

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