- Which of the following is true about Spring Security?
View Answer
Correct answer: D — All of the above
- In Spring Security, which annotation secures method calls?
View Answer
Correct answer: A — @Secured
- What will be printed?
1 import org.springframework.security.access.annotation.Secured; 2 class EduinqService { 3 @Secured("ROLE_ADMIN") 4 public void secure(){ System.out.println("Eduinq Secure Method"); } 5 } View Answer
Correct answer: A — Eduinq Secure Method (if ROLE_ADMIN)
- Which of the following is true about JWT (JSON Web Token)?
View Answer
Correct answer: D — All of the above
- Which part of JWT ensures integrity?
View Answer
Correct answer: C — Signature
- Which of the following is true about OAuth2?
View Answer
Correct answer: D — All of the above
- In OAuth2, which flow is used for server to server communication?
View Answer
Correct answer: B — Client Credentials
- Which of the following is true about CSRF (Cross Site Request Forgery)?
View Answer
Correct answer: D — All of the above
- In Spring Security, CSRF protection is enabled by default for:
View Answer
Correct answer: B — Form based login
- Which of the following is true about password hashing?
View Answer
Correct answer: D — A and C
- Which of the following is true about common security pitfalls?
View Answer
Correct answer: D — All of the above
- Which of the following is true about HTTPS?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security filters?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT expiration?
View Answer
Correct answer: D — All of the above
- Which of the following is true about OAuth2 scopes?
View Answer
Correct answer: D — All of the above
- Which of the following is true about CSRF tokens?
View Answer
Correct answer: D — All of the above
- Which of the following is true about password salting?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security @EnableWebSecurity?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT signature algorithms?
View Answer
Correct answer: D — All of the above
- Which of the following is true about OAuth2 refresh tokens?
View Answer
Correct answer: D — All of the above
- In Spring Security, which class configures HTTP security?
View Answer
Correct answer: B — HttpSecurity
- Which of the following is true about JWT revocation?
View Answer
Correct answer: D — All of the above
- Which OAuth2 flow is considered insecure for modern apps?
View Answer
Correct answer: B — Implicit
- Which of the following is true about CSRF edge cases?
View Answer
Correct answer: D — All of the above
- Which of the following is true about password policies?
View Answer
Correct answer: D — All of the above
- Which of the following is true about HTTPS certificates?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security custom filters?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT best practices?
View Answer
Correct answer: D — All of the above
- Which of the following is true about OAuth2 Password flow?
View Answer
Correct answer: D — All of the above
- Which of the following is true about CSRF token storage?
View Answer
Correct answer: D — All of the above
- Which of the following is true about secure coding practices?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security AuthenticationManager?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT payload?
View Answer
Correct answer: D — All of the above
- Which of the following is true about OAuth2 Authorization Code flow?
View Answer
Correct answer: D — All of the above
- Which of the following is true about CSRF protection in APIs?
View Answer
Correct answer: D — All of the above
- Which of the following is true about password storage mistakes?
View Answer
Correct answer: D — All of the above
- Which of the following is true about HTTPS handshake?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security roles vs authorities?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT blacklisting?
View Answer
Correct answer: D — All of the above
- Which of the following is true about OAuth2 Device Code flow?
View Answer
Correct answer: D — All of the above
- Which of the following is true about CSRF double submit cookie pattern?
View Answer
Correct answer: D — All of the above
- Which of the following is true about secure session management?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security PasswordEncoder?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT claim types?
View Answer
Correct answer: D — All of the above
- Which of the following is true about OAuth2 token introspection?
View Answer
Correct answer: D — All of the above
- Which of the following is true about CSRF SameSite cookie attribute?
View Answer
Correct answer: D — All of the above
- Which of the following is true about secure API design?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Spring Security custom authentication providers?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JWT refresh token best practices?
View Answer
Correct answer: D — All of the above
- Which of the following is true about secure coding overall?
View Answer
Correct answer: D — All of the above