VMware
Spring Professional Develop
2V0-72.22
Prepare for the 2V0-72.22 exam to validate your skills in Spring Professional development.
192 questions
0 views
Free
Questions 11–20 of 192
A company needs to asynchronously process requests in Spring. What capability should they implement?
-
A
Spring WebFlux
-
B
@Transactional
-
C
Spring AOP
-
D
Spring Data
Explanation
Spring WebFlux supports asynchronous processing; the others focus on different concerns.
You are configuring a Spring Boot application. What happens when you set 'spring.main.allow-bean-definition-overriding=true'?
-
A
Allows multiple beans with same names
-
B
Disables bean initialization
-
C
Enables JPA by default
-
D
Activates all profiles
Explanation
This setting permits bean name collisions, while the other options are not related.
Which service provides centralized configuration management?
-
A
Spring Cloud Config
-
B
Spring Boot Starter
-
C
Spring Data JPA
-
D
Spring Security
Explanation
Spring Cloud Config centralizes external configurations, while others serve different purposes.
A company needs to handle user authentication. What should they implement?
-
A
Spring Data
-
B
Spring Security
-
C
Spring Batch
-
D
Spring Test
Explanation
Spring Security is specifically designed for authentication and authorization.
You are configuring a REST controller. What annotation should you use to define an endpoint?
-
A
@Controller
-
B
@RestController
-
C
@Service
-
D
@Component
Explanation
@RestController combines @Controller with @ResponseBody for RESTful services.
Which service manages application deployment in Spring?
-
A
Spring Cloud
-
B
Spring Data
-
C
Spring Framework
-
D
Spring Boot
Explanation
Spring Boot simplifies application deployment and configuration, others support different functions.
A company needs to connect their microservices efficiently. Which pattern should they use?
-
A
Circuit Breaker
-
B
Message Broker
-
C
Service Registry
-
D
Load Balancer
Explanation
Service Registry is crucial for microservices discovery; others support different functionalities.
What happens when you set a property value in application.properties?
-
A
It overrides default application behavior.
-
B
It locks the application.
-
C
It requires a server restart.
-
D
It affects only a single session.
Explanation
Setting a property overrides defaults for the entire application, others are incorrect behaviors.
Which service allows Spring applications to communicate on messaging protocols?
-
A
Spring Cloud Stream
-
B
Spring Data REST
-
C
Spring Batch
-
D
Spring Security
Explanation
Spring Cloud Stream facilitates messaging protocols, while others serve different purposes.
A company needs to implement a distributed tracing solution for its microservices. What should it use?
-
A
Spring Cloud Sleuth
-
B
Spring RestTemplate
-
C
Spring Batch
-
D
Spring Security
Explanation
Spring Cloud Sleuth specifically provides distributed tracing functionalities.