Search Header Logo

SB_Quiz2_Day5

Authored by Pratham Soni

Computers

Professional Development

SB_Quiz2_Day5
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?