TCS WINGS 1 T4 SPRING BOOT SET 5
Rahul Vijayan
Follow for more updates
TCS WINGS 1 T4 SPRING BOOT SET 5
You want to add custom properties to your Spring Boot application. What would you do?
Options:
A) Create a custom properties file
B) Use @ConfigurationProperties
C) Both A and B
D) Spring Boot does not support custom properties
Answer:
C) Both A and BYou want to implement rate limiting in your Spring Boot application. What library would you typically use?
Options:
A) Resilience4j
B) Spring Cloud Gateway
C) Both A and B
D) Rate limiting is not supported in Spring Boot
Answer:
C) Both A and BYou want to deploy your Spring Boot application as a Docker container. What should you create?
Options:
A) Dockerfile
B) docker-compose.yml
C) Both A and B
D) Spring Boot applications cannot be containerized
Answer:
A) DockerfileYou want to connect to a MySQL database using Spring Boot. Which dependency would you add?
Options:
A) MySQL Driver
B) Spring Boot Starter Data JPA
C) Both A and B
D) Spring Boot does not support MySQL
Answer:
C) Both A and BYou want to enable Swagger documentation in your Spring Boot application. Which dependency should you add?
Options:
A) springfox-swagger2
B) springfox-swagger-ui
C) Both A and B
D) Swagger is not supported in Spring Boot
Answer:
C) Both A and BYou need to implement OAuth2 resource server in your Spring Boot application. What dependency should you include?
Options:
A) spring-security-oauth2-resource-server
B) spring-boot-starter-security
C) Both A and B
D) Resource servers are not supported in Spring Boot
Answer:
A) spring-security-oauth2-resource-serverYou want to implement a microservice that handles payments. What pattern would you typically use?
Options:
A) Saga Pattern
B) Circuit Breaker
C) Event Sourcing
D) All of the above
Answer:
D) All of the aboveYou need to secure your microservices with JWT. What library would you typically use?
Options:
A) jjwt
B) Spring Security
C) Both A and B
D) JWT is not supported in Spring Boot
Answer:
C) Both A and BYou want to add metrics to your Spring Boot application. Which actuator endpoint would you enable?
Options:
A) /metrics
B) /health
C) /info
D) /env
Answer:
A) /metricsYou need to implement a custom authentication filter in your Spring Security configuration. What class should you extend?
Options:
A) UsernamePasswordAuthenticationFilter
B) BasicAuthenticationFilter
C) Both A and B
D) Spring Security does not support custom filters
Answer:
A) UsernamePasswordAuthenticationFilter

Comments
Post a Comment