

MCQOPTIONS
Saved Bookmarks
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. |
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. |
A. | True |
B. | False |
Answer» B. False | |
2. |
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. |
A. | True |
B. | False |
Answer» C. | |
3. |
Remember-me support can be configured by:- |
A. | remember-me |
B. | remember-me-basic |
C. | remember-basic |
D. | none of the mentioned |
Answer» B. remember-me-basic | |
4. |
Default values of customized Username and authorities are anonymousUser and ROLE_ANONYMOUS respectively. |
A. | True |
B. | False |
Answer» B. False | |
5. |
Anonymous login services can be configured by:- |
A. | anonymous-basic |
B. | anonymous |
C. | anonymous-target |
D. | none of the mentioned |
Answer» C. anonymous-target | |
6. |
DEFAULT_VALUES_OF_CUSTOMIZED_USERNAME_AND_AUTHORITIES_ARE_ANONYMOUSUSER_AND_ROLE_ANONYMOUS_RESPECTIVELY.?$ |
A. | True |
B. | False |
Answer» B. False | |
7. |
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.$# |
A. | True |
B. | False |
Answer» C. | |
8. |
Remember-me support can be configured by:-$ |
A. | remember-me |
B. | remember-me-basic |
C. | remember-basic |
D. | none of the mentioned |
Answer» B. remember-me-basic | |
9. |
Utility to calculate MD5 digests for your password. |
A. | CheckSum |
B. | BeanShell |
C. | Jacksum |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
10. |
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.$ |
A. | True |
B. | False |
Answer» B. False | |
11. |
Connection of database with Apache derby server requires. |
A. | Derby client.jar |
B. | Spring JDBC support |
C. | None of the mentioned |
D. | All of the mentioned |
Answer» E. | |
12. |
Spring Security algorithms to secure password. |
A. | MD5 |
B. | SHA |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
13. |
Anonymous login services can be configured by:? |
A. | anonymous-basic |
B. | anonymous |
C. | anonymous-target |
D. | none of the mentioned |
Answer» C. anonymous-target | |
14. |
Element which redirects to a specific URL on logout. |
A. | logout-success |
B. | logout-success_url |
C. | logout-url |
D. | logout-success-url |
Answer» E. | |
15. |
Logout service is configured by:- |
A. | logout |
B. | login |
C. | logout-basic |
D. | logout_basic |
Answer» B. login | |
16. |
Session scope attribute to display error message. |
A. | SPRING_SECURITY_FIRST_EXCEPTION |
B. | SPRING_SECURITY_LAST_EXCEPTION |
C. | SPRING_SECURITY_EXCEPTION |
D. | SPRING_SECURITY_LAST_ERROR |
Answer» C. SPRING_SECURITY_EXCEPTION | |
17. |
Attribute which specifies redirection URL on login error. |
A. | authentication-failure-url |
B. | authentication-failure_login-url |
C. | authentication-login-url |
D. | none of the mentioned |
Answer» B. authentication-failure_login-url | |
18. |
Attribute used to display custom login page. |
A. | login-url |
B. | custom-login |
C. | login-custom |
D. | custom-login |
Answer» B. custom-login | |
19. |
Action URL can be customized using form-login. |
A. | True |
B. | False |
Answer» B. False | |
20. |
Form-based login is configured by:- |
A. | servlet filters |
B. | refresh-check-delay |
C. | form-login |
D. | none of the mentioned |
Answer» D. none of the mentioned | |