nerdexam
GIAC

GSSP-JAVA · Question #114

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 =…

The correct answer is B. <role-link>. See the full explanation below for the reasoning.

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 HR-Manager declared in the deployment descriptor should have 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<run-as>
  • D<method-intf>

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    76% (38)
  • C
    12% (6)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice