--:--









Quiz for Spring Security

Course: JAVA | Subject: Java | Topic: Spring Framework (Spring Boot)



Logo

Q1: What is the primary goal of Spring Security?

Logo

Q2: Which annotation is used to enable Spring Security in a Spring Boot application?

Logo

Q3: Which class is used to configure HTTP security in Spring Security?

Logo

Q4: Which method configures security rules in Spring Security?

Logo

Q5: Which annotation is used to protect methods in Spring?

Logo

Q6: What is the default login URL provided by Spring Security?

Logo

Q7: Which filter is responsible for username and password authentication?

Logo

Q8: Which interface represents the currently authenticated user?

Logo

Q9: What does CSRF stand for in Spring Security?

Logo

Q10: Which class in Spring Security defines user roles and credentials?

Logo

Q11: Which interface provides custom user data for authentication?

Logo

Q12: What is the purpose of PasswordEncoder?

Logo

Q13: Which method in PasswordEncoder checks if passwords match?

Logo

Q14: Which annotation allows role-based access in Spring Security?

Logo

Q15: What is the use of SecurityContextHolder?

Logo

Q16: What is the default behavior for unauthenticated users in Spring Security?

Logo

Q17: Which class is used to customize authentication manager?

Logo

Q18: How can you disable CSRF in Spring Security?

Logo

Q19: What type of security does Spring Security primarily offer?

Logo

Q20: Which annotation disables security for a specific method or endpoint?

Are you ready to start test? Set your time limit