Explore topic-wise MCQs in Spring.

This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.

1.

Element which configures authentication services.

A. authentication-provider
B. authentication-manager
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
2.

Element used to restrict access to a particular URL.

A. restrict-url
B. intercept-url
C. intercept-restrict
D. none of the mentioned
Answer» C. intercept-restrict
3.

The http auto-config=”false” element automatically configures the basic security services that a typical web application needs.

A. True
B. False
Answer» C.
4.

Filter chain configured by Spring security, when web app security enabled.

A. springSecurityFilterChain
B. delegatingFilterProxy
C. none of the mentioned
D. all of the mentioned
Answer» B. delegatingFilterProxy
5.

Way to secure web app’s URL.

A. servlet filters
B. refresh-check-delay
C. http servlet filters
D. none of the mentioned
Answer» B. refresh-check-delay
6.

THE_HTTP_AUTO-CONFIG=‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖŒÄFALSE‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖŒÄ_ELEMENT_AUTOMATICALLY_CONFIGURES_THE_BASIC_SECURITY_SERVICES_THAT_A_TYPICAL_WEB_APPLICATION_NEEDS.?$#

A. True
B. False
Answer» C.
7.

Element which configures authentication services.$

A. authentication-provider
B. authentication-manager
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
8.

Element_used_to_restrict_access_to_a_particular_URL.$

A. restrict-url
B. intercept-url
C. intercept-restrict
D. none of the mentioned
Answer» C. intercept-restrict
9.

HTTP Basic authentication support is configured by:-

A. logout
B. http-basic
C. http-basicauth
D. none of the mentioned
Answer» E.
10.

The basic security services registered and configured by Spring Security.

A. Form-based login service
B. Logout Service
C. HTTP Basic authentication.
D. All of the mentioned
Answer» E.
11.

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

A. Authenticating against a database
B. LDAP repository
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
12.

Element which defines user details.

A. user-service
B. user-details
C. user-requirements
D. user-servicerequirements
Answer» B. user-details
13.

Filter chain configured by Spring security, when web app security enabled?

A. springSecurityFilterChain
B. delegatingFilterProxy
C. none of the mentioned
D. all of the mentioned
Answer» B. delegatingFilterProxy
14.

By default, DelegatingFilterProxy delegates to a bean whose name is the same as its filter-name property.

A. True
B. False
Answer» B. False
15.

The responsibility of DelegatingFilterProxy is simply to delegate HTTP request filtering to a Spring bean that implements the interface:-

A. java.util.logging.Filter
B. java.util.logging.net
C. java.util.logging.FilterHttp
D. none of the mentioned
Answer» B. java.util.logging.net
16.

To dispatch requests for web application.

A. DispatcherServlet
B. ViewHandler
C. ViewResolver
D. None of the mentioned
Answer» B. ViewHandler
17.

To load root application context at the start up.

A. ContextListener
B. ContextLoader
C. ContextLoaderListener
D. ContextEventListener
Answer» D. ContextEventListener
18.

Servlet APIs to access security information of web application.

A. HttpServletRequest.isUserInRole()
B. HttpServletRequest.getUserPrincipal()
C. None of the mentioned
D. All of the mentioned
Answer» E.
19.

Servlet filter registered in web deployment descriptor, which filters request in spring application context.

A. DelegatingFilter
B. DelegatingFilterProxy
C. DelegatingProxy
D. None of the mentioned
Answer» C. DelegatingProxy
20.

Way to secure web app’s URL.

A. servlet filters
B. refresh-check-delay
C. http servlet filters
D. none of the mentioned
Answer» B. refresh-check-delay