GIAC GSSP-Java Exam Practice Questions (P. 2)
- Full Access (275 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
<web-app . . . .>
<display-name>A Secure 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 is a valid isUserInRole() method call that can be made if request is the
HttpServletRequest request?
- Arequest.isUserInRole("Programmer");
- Brequest.isUserInRole("Manager");
- Crequest.isUserInRole("Admin");
- Drequest.isUserInRole("Employee");
B

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #7
Each correct answer represents a complete solution. Choose all that apply.
- AgetCallerPrincipal()
- BgetRollbackOnly()
- CgetUserTransaction()
- DisCallerInRole()
AD

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #8
<security-constraint> elements.
All of them constraining a Web resource Res1, the
<auth-constraint> sub-element of the <security-constraint> elements are as follows.
<auth-constraint>Admin</auth-constraint>
<auth-constraint>Manager</auth-constraint>
<auth-constraint/>
Which of the following can access the resource Res1?
- AOnly Manager can access the resource.
- BNo one can access the resource.
- CEveryone can access the resource.
- DOnly Admin can access the resource.
B

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #9
Each correct answer represents a complete solution. Choose all that apply.
- ASingletons are used to control object creation by limiting the number to one but allowing the flexibility to create more objects if the situation changes.
- BSingletons can only be stateless, providing utility functions that need no more information than their parameters.
- CA singleton class may disappear if no object holds a reference to the Singleton object, and it will be reloaded later when the singleton is needed again.
- DThe behavior of a singleton can be obtained by static fields and methods such as java.lang.Math.sin(double).
ACD

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #10
- A<user-data-constraint>
- B<web-resource-collection>
- C<auth-constraint>
- D<login-config>
A

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
All Pages