GIAC Secure Software Programmer - Java - GSSP-JaVa Exam Practice Test
You work as a Software Developer for BlueTech Inc. You create code using EJB 3.0. You want to ensure that each new record is checked for validation before it is inserted into the database. Which of the following callback methods will you use to write the logic for validation?
Correct Answer: A
Vote an answer
Which of the following classes is an engine class designed to provide conversions between opaque cryptographic keys and allows you to build an opaque key object from a given key specification?
Correct Answer: D
Vote an answer
You work as a programmer for PassGuide.Inc. You want to create a servlet filter that stores all request headers to a database for all requests to the Web application's home page "/work.jsp". Which of the following HttpServletRequest methods allows you to retrieve all of the request headers?
Correct Answer: C
Vote an answer
Mark works as a Programmer for InfoTech Inc. He develops an application named AccountServlet. He wants to ensure that no body can access his application, i.e., he does not want any role to have access on his application. He defines the following security constraint for his application.
<security-constraint>
<web-resource-collection>
<web-resource-name>AccountServlet</web-resource-name>
<url-pattern>/acme/Account</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
//code
</security-constraint>
Which of the following options will be used to secure his application?
<security-constraint>
<web-resource-collection>
<web-resource-name>AccountServlet</web-resource-name>
<url-pattern>/acme/Account</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
//code
</security-constraint>
Which of the following options will be used to secure his application?
Correct Answer: A
Vote an answer
Which of the following elements of the java.util.logging package exports objects to a variety of destinations including memory, output streams, consoles, files, and sockets?
Correct Answer: B
Vote an answer
Which of the following syntaxes is used to run the application packaged as a JAR file?
Correct Answer: D
Vote an answer
Which of the following methods retrieves a single character from a string?
Correct Answer: B
Vote an answer
Which of the following statements about a native modifier in Java are true?
Each correct answer represents a complete solution. Choose two.
Each correct answer represents a complete solution. Choose two.
Correct Answer: B,E
Vote an answer
Which of the following authentications uses HTTPS (HTTP over SSL) to verify a user?
Correct Answer: D
Vote an answer