Spring MCQ Quiz Hub

Spring Mcq Set 4

Choose a topic to test your knowledge and improve your Spring skills

Element which defines user details.





✅ Correct Answer: 1

Which of the following way to provide authenticity of users is/are supported by Spring Security?





✅ Correct Answer: 3

The basic security services registered and configured by Spring Security.





✅ Correct Answer: 4

HTTP Basic authentication support is configured by:-





✅ Correct Answer: 4

Form-based login is configured by:-





✅ Correct Answer: 3

Action URL can be customized using form-login.





✅ Correct Answer: 1

Attribute used to display custom login page.





✅ Correct Answer: 1

Attribute which specifies redirection URL on login error.





✅ Correct Answer: 1

Session scope attribute to display error message.





✅ Correct Answer: 2

Logout service is configured by:-





✅ Correct Answer: 1

Element which redirects to a specific URL on logout.





✅ Correct Answer: 4

Anonymous login services can be configured by:-





✅ Correct Answer: 2

Default values of customized Username and authorities are anonymousUser and ROLE_ANONYMOUS respectively.





✅ Correct Answer: 1

Remember-me support can be configured by:-





✅ Correct Answer: 1

By default, Remember-me encodes the username, password, remember-me expiration time, and a private key as a token, and stores it as a cache in the user’s browser.





✅ Correct Answer: 2

Spring Security algorithms to secure password.





✅ Correct Answer: 3

Connection of database with Apache derby server requires.





✅ Correct Answer: 4

You can specify the statements for querying a user’s information and authorities in the users-by-username-query and authorities-by-username-query attributes.





✅ Correct Answer: 1

Utility to calculate MD5 digests for your password.





✅ Correct Answer: 3

Element used to secure methods.





✅ Correct Answer: 3

@Secured annotation is used to secure methods implemented by beans.





✅ Correct Answer: 1

Element used to specify access attributes for bean’s methods.





✅ Correct Answer: 1

Attribute used to specify custom access decision manager.





✅ Correct Answer: 1

JSP technology is also used to handle security of JSP views.





✅ Correct Answer: 1

Tag which displays user’s Authentication object.





✅ Correct Answer: 3

Tag which renders the granted authorities one by one.





✅ Correct Answer: 2

Tag used to render view contents conditionally.





✅ Correct Answer: 1

Attribute used to render enclosed content.





✅ Correct Answer: 3

Module that allows each domain to have it’s own access.





✅ Correct Answer: 3

ACL(Access control list) consists of:-





✅ Correct Answer: 1

ACEs(Access control entries) core consists of:-





✅ Correct Answer: 3

Which of the following is/are part of BasePermission class:-





✅ Correct Answer: 4

SID(Security Identity) associates with permission using.





✅ Correct Answer: 3

Interfaces that defines operation of an ACL service.





✅ Correct Answer: 3

Servlet listener which loads application context.





✅ Correct Answer: 3

Method to retrieve Spring Applicationcontext.





✅ Correct Answer: 1

Class used to have full access to the Spring context’s life cycle machinery and dependency injection.





✅ Correct Answer: 1

In order to leverage Spring application context machinery and configuration.





✅ Correct Answer: 2

Interface implemented by object instantiated by HttpRequestHandlerServlet.





✅ Correct Answer: 3

Attribute used to look up and delegate a particular root bean.





✅ Correct Answer: 2

ActionSupport class provides a method to access spring application context.





✅ Correct Answer: 1

Struts servlet used to handle web requests.





✅ Correct Answer: 1

Struts plugin used to integrate with spring.





✅ Correct Answer: 2

Integration of JSF with Spring Application Context.





✅ Correct Answer: 4

To handle web requests in JSF.





✅ Correct Answer: 1

Component of JSF, for user’s input in a form.





✅ Correct Answer: 1

Tag used to provide result of web requests and is read only.





✅ Correct Answer: 3

Tag which triggers server side requests.





✅ Correct Answer: 2

Tag used to integrate Spring with DWR.





✅ Correct Answer: 2

Spring supports web flows by:-





✅ Correct Answer: 3