nerdexam
GIAC

GSSP-JAVA · Question #112

Roger works as a Software Developer for Tech Mart Inc. He creates an application using Enterprise JavaBeans. In the bean class, he writes a code snippet as follows. Boolean b =…

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

Question

Roger works as a Software Developer for Tech Mart Inc. He creates an application using Enterprise JavaBeans. In the bean class, he writes a code snippet as follows. Boolean b = ctx.isCallerInRole("Administrator"); The Application Assembler named Bob declares the following entries within the <entity> element of the deployment descriptor. 1. <security-role-ref> 2. The HR-Manager will have permission to access all the methods. 3. <role-name>HR-Manager</role-name> 4. 5. </security-role-ref> Bob wants to ensure that the HR-Manager declared in the deployment descriptor has all the privileges of an administrator. Which of the following elements should Bob declare in line 4 while deploying the bean?

Options

  • A<security-role>
  • B<role-link>
  • C<method-permission>
  • D<run-as>

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