TCS WINGS 1 T4 SPRING BOOT SET 3
Rahul Vijayan Follow for more updates TCS WINGS 1 T4 SPRING BOOT SET 3 You want to secure your Spring Boot REST API using OAuth2. Which dependency would you add? Options: A) Spring Security OAuth2 B) Spring Security C) Spring Boot Starter Web D) Spring Cloud Config Answer: A) Spring Security OAuth2 You need to define a custom filter in your Spring Boot application. What class would you extend? Options: A) GenericFilterBean B) OncePerRequestFilter C) Filter D) Both A and B Answer: D) Both A and B In a Spring Boot application, how can you externalize configuration properties? Options: A) Using application.properties B) Using application.yml C) Using environment variables D) All of the above Answer: D) All of the above You want to validate that a String field is not empty in your entity class. What annotation would you use? Options: A) @NotEmpty B) @NotNull C) @Size(min = 1) D) All of the above Answer: D) All of the above You need to prevent the same method from being called multipl...