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 91–100 of 192
Which service manages application lifecycle in Spring?
-
A
Spring Boot
-
B
Spring Cloud
-
C
Spring Data
-
D
Spring MVC
Explanation
Spring Boot simplifies application configuration and lifecycle management; others serve different purposes.
A company needs real-time messaging between microservices. Which Spring component is best suited for this?
-
A
Spring Web Service
-
B
Spring Batch
-
C
Spring Messaging
-
D
Spring Security
Explanation
Spring Messaging supports real-time service communication, unlike the others.
You are configuring a Spring Security application. What happens if the authentication provider is missing?
-
A
Default user is created
-
B
Application will crash
-
C
No user access granted
-
D
Logging will be disabled
Explanation
Without an authentication provider, users cannot gain access to the application.
Which service in Spring is used for caching data?
-
A
Spring Cache
-
B
Spring JDBC
-
C
Spring MVC
-
D
Spring Security
Explanation
Spring Cache provides the abstraction for caching data, while the others serve different purposes.
A company needs to handle batch processing of data. Which Spring framework component should they use?
-
A
Spring Web
-
B
Spring Data
-
C
Spring Batch
-
D
Spring Cloud
Explanation
Spring Batch is specifically designed for batch processing, unlike the other components.
You are configuring a Spring Boot application for security. What happens if you omit the security configuration?
-
A
Application will be unsecured
-
B
Application will crash
-
C
Application will perform slower
-
D
Application will toggle endpoints
Explanation
Without security configuration, the application lacks access control and is unsecured.
Which service provides a platform for building microservices?
-
A
Spring Boot
-
B
Spring Data
-
C
Spring Cloud
-
D
Spring Security
Explanation
Spring Cloud provides tools for building microservices; others focus on different areas.
A company needs to retrieve data from multiple database sources. Which Spring feature should they use?
-
A
Spring RestTemplate
-
B
Spring Batch
-
C
Spring Data
-
D
Spring JMS
Explanation
Spring Data simplifies data access across multiple sources; others do not specialize in this.
You are configuring a Spring application. What happens when a bean is marked as 'prototype'?
-
A
One instance per application
-
B
One instance per request
-
C
Multiple instances per request
-
D
New instance every time
Explanation
Prototype beans create a new instance every time; others behave differently regarding instance creation.
Which service provides cloud-native app development capabilities in Spring?
-
A
Spring Cloud
-
B
Spring Boot
-
C
Spring Framework
-
D
Spring Data
Explanation
Spring Cloud is designed for cloud-native services, while others focus on app development and data management.