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 1–10 of 192
Which service is used for managing application lifecycles in Spring?
-
A
Spring Cloud
-
B
Spring Boot
-
C
Spring MVC
-
D
Spring Data
Explanation
Spring Boot simplifies application lifecycle management whereas others focus on specific areas.
A company needs to easily externalize configuration. What should they use?
-
A
Spring Profiles
-
B
Spring Interceptors
-
C
Spring AOP
-
D
Spring REST
Explanation
Spring Profiles allow external configuration management, unlike the other options.
You are configuring a Spring application with multiple beans. What happens if two beans have the same name?
-
A
First bean is used
-
B
Last bean is used
-
C
An error is thrown
-
D
Random bean is selected
Explanation
Spring will throw a NoUniqueBeanDefinitionException if there are name conflicts. This behavior ensures clarity in bean resolution.
Which service is responsible for deploying Spring applications?
-
A
Spring Boot
-
B
Spring Data
-
C
Spring MVC
-
D
Spring Security
Explanation
Spring Boot automates application deployment, while others serve different purposes.
A company needs to store and manage JSON data using Spring applications, which module should they leverage?
-
A
Spring Reactive
-
B
Spring Web
-
C
Spring Data REST
-
D
Spring Batch
Explanation
Spring Data REST simplifies working with JSON data REST APIs, while others don’t specialize in data management.
You are configuring an application property source, what happens when you set a property as overwritten in your profile?
-
A
It will not be applied.
-
B
Original property remains有效.
-
C
Overwritten property takes priority.
-
D
Overrides alternate sources only.
Explanation
An overwritten property in a profile always takes priority, while others imply default behavior.
Which Spring component focuses on transaction management?
-
A
PlatformTransactionManager
-
B
ApplicationContext
-
C
Autowired
-
D
SpringBatch
Explanation
PlatformTransactionManager handles transaction management, while others serve different purposes.
A company needs to ensure secure REST API communication. What should they implement?
-
A
Basic Authentication
-
B
JWT Tokens
-
C
Cookie Sessions
-
D
IP Whitelisting
Explanation
JWT Tokens provide a secure method for API communication; others lack adequate security.
You are configuring a Spring Boot application with a database. What must you include in your application.properties?
-
A
server.port=8080
-
B
spring.datasource.url=<db_url>
-
C
spring.application.name=myapp
-
D
context.path=/app
Explanation
The datasource URL is essential for database connection, while others are not required.
Which service in Spring helps manage transactions?
-
A
Spring Transaction Management
-
B
Spring MVC
-
C
Spring Batch
-
D
Spring Security
Explanation
Spring Transaction Management handles transaction operations, while others serve different functionalities.