
SB_Quiz2_Day5
Authored by Pratham Soni
Computers
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of Spring Security?
Data encryption
Authentication and access control
Database management
User interface design
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which annotation is used to enable method-level security in Spring Security?
@EnableGlobalMethodSecurity
@PreAuthorize
@EnableWebSecurity
@Configuration
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the @PreAuthorize annotation do?
Ensures method access based on roles
Sets up database connections
Defines user roles
Configures security filters
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class is used to configure security filters for HTTP requests?
HttpSecurity
UserDetailsManager
PasswordEncoder
SecurityFilterChain
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the PasswordEncoder bean?
To manage user sessions
To encode passwords for security
To authenticate users
To log user activities
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the .permitAll() method do in the security configuration?
Restricts access to all users
Requires authentication for all users
Grants admin access only
Allows access to all users
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the @RestController annotation?
To create a RESTful web service
To manage database connections
To configure security settings
To define a service layer
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?