Halloween Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

GIAC Certification GSSP-Java Syllabus Exam Questions Answers

Page: 2 / 10
Total 275 questions

GIAC Secure Software Programmer - Java Questions and Answers

Question 5

Which of the following tags is used to include resources from within the same servlet container?

Options:

A.

B.

C.

D.

Question 6

Which of the following exceptions is thrown to indicate that a servlet is temporarily unavailable?

Options:

A.

ServletException

B.

ApplicationException

C.

IllegalStateException

D.

IOException

E.

UnavailableException

F.

IllegalAccessException

Question 7

You work as a Software Developer for NewTech Inc. You write a bean class using Enterprise JavaBeans 3.0. The class uses the @DeclareRoles ("ADMIN, HR, DBA, USER") annotation to declare the security roles. The class contains a method named showResult(). You want to ensure that the ADMIN role is granted privilege to the showResult() method. Moreover, if a role that is not allowed to access the method tries to call the method, an error message must be shown. Assuming that there is no security-related element in the deployment descriptor, which of the following will you use to accomplish the task?

Each correct answer represents a part of the solution. Choose two.

Options:

A.

The isCallerInRole() method

B.

The getCallerPrincipal() method

C.

The @RolesAllowed("ADMIN") annotation

D.

The @PermitAll annotation

Question 8

Which of the following is the return type of the getInitParameter() method of the ServletContext interface?

Options:

A.

Enumeration

B.

String

C.

String array

D.

ServletContext

E.

Integer

Page: 2 / 10
Total 275 questions