GSSP-Java practice questions, page 7 of 11, with answer review and explanations.
Question 31
Which of the following fields must be present in the login page when using the form-based authentication? Each correct answer represents a part of the solution. Choose two.
j_login
j_password
get_pw
j_pw
j_username
user_pw
Question 32
Mark works as a Programmer for InfoTech Inc. He wants to define the security constraint for an application that allows users with the role of Manager access to the POST method of all resources with the URL pattern /acme/Manager/*, and also allow users with the role of Editor access to the POST method of all resources with the URL pattern /acme/Editor/*. Which of the following code will be used to declare the security element?
Which of the following sub-elements specifies which users in specified roles are permitted access to a resource collection?
<user-data-constraint>
<web-resource-collection>
<url-pattern>
<auth-constraint>
Question 34
In which of the following directories will files be searched when the classpath is specified by the syntax below.-classpath uc\JavaFiles\NewFiles;uc\ServletFiles;.;
The current directory, the NewFiles directory, and the ServletFiles directory
The current directory, the uc directory, the NewFiles directory, and the ServletFiles directory
The current directory, the uc directory, the JavaFiles directory, the NewFiles directory, and the ServletFiles directory
The uc directory, the JavaFiles directory, the NewFiles directory, and the ServletFiles directory
Question 35
Which of the following is the appropriate deployment descriptor elements entry for the code given below? @RunAs("admin") @Stateless public class StudentBean implements Student { //more code ... }