TCS WINGS 1 T4 SPRING BOOT SET 10
Rahul Vijayan
Follow for more updates
TCS WINGS 1 T4 SPRING BOOT SET 10
You need to enable Spring Boot DevTools for faster development. What dependency should you add?
Options:
A) spring-boot-devtools
B) spring-boot-starter-web
C) Both A and B
D) DevTools is not supported in Spring Boot
Answer:
A) spring-boot-devtoolsYou want to configure a message broker in your Spring Boot application. Which technology could you use?
Options:
A) RabbitMQ
B) Apache Kafka
C) Both A and B
D) Spring Boot does not support message brokers
Answer:
C) Both A and BYou want to monitor your application metrics. What endpoint would you enable in Spring Boot Actuator?
Options:
A) /metrics
B) /health
C) /info
D) All of the above
Answer:
D) All of the aboveYou want to implement API versioning in your Spring Boot application. What is a common approach?
Options:
A) URL versioning
B) Header versioning
C) Parameter versioning
D) All of the above
Answer:
D) All of the aboveYou want to configure your Spring Boot application to use a specific profile. What property would you set?
Options:
A) spring.profiles.active
B) application-{profile}.properties
C) Both A and B
D) Spring Boot does not support profiles
Answer:
C) Both A and BYou want to define a custom error response structure in your Spring Boot application. What class would you create?
Options:
A) CustomError
B) ErrorResponse
C) Both A and B
D) Spring Boot does not support custom error responses
Answer:
C) Both A and BYou want to implement a custom UserDetailsService in your Spring Security configuration. What interface should you implement?
Options:
A) UserDetailsService
B) AuthenticationManager
C) UserDetails
D) CustomUserDetailsService
Answer:
A) UserDetailsServiceYou need to use Spring Boot's embedded server. What is the default server?
Options:
A) Tomcat
B) Jetty
C) Undertow
D) None of the above
Answer:
A) TomcatYou want to enable HATEOAS in your Spring Boot application. Which dependency should you add?
Options:
A) spring-boot-starter-hateoas
B) spring-boot-starter-web
C) Both A and B
D) HATEOAS is not supported in Spring Boot
Answer:
A) spring-boot-starter-hateoasYou want to configure Spring Security to use JWT. What class would you typically extend?
Options:
A) WebSecurityConfigurerAdapter
B) JwtAuthenticationFilter
C) Both A and B
D) JWT is not supported in Spring Security
Answer:
C) Both A and B

Comments
Post a Comment