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
Start Mock Test Timed · Full-length · Scored

Questions 101–110 of 192

Q101

A company needs to manage configuration across multiple services. Which Spring tool should they use?

  • A Spring Security
  • B Spring Config Server
  • C Spring MVC
  • D Spring AOP
Explanation Spring Config Server centralizes configuration management, whereas the other options do not offer configuration management.
Q102

You are configuring a Spring application with multiple profiles. What happens when you run with no active profile set?

  • A Default values are used
  • B Application will throw an error
  • C No configuration is loaded
  • D Only production profile is active
Explanation Without an active profile, Spring uses default property values, while the other options do not accurately describe the behavior.
Q103

Which service is used to manage application configurations in Spring?

  • A Spring Cloud Config
  • B Spring Data JPA
  • C Spring Security
  • D Spring Boot Actuator
Explanation Spring Cloud Config is specifically designed for managing application configurations while others serve different purposes.
Q104

A company needs to handle circuit breaking in a microservices application. What should they implement?

  • A Spring Retry
  • B Spring Cloud CircuitBreaker
  • C Spring Security
  • D Spring Batch
Explanation Spring Cloud CircuitBreaker is designed for managing circuit breaking, unlike the others that serve different functionalities.
Q105

You are configuring a REST controller in Spring. What occurs if you omit the @RequestMapping annotation?

  • A No mapping occurs.
  • B Automatic GET mapping applied.
  • C POST method only available.
  • D Error on startup.
Explanation Without @RequestMapping, the method has no defined mapping, making it not accessible.
Q106

Which service is used for managing microservices in Spring?

  • A Spring Cloud
  • B Spring Batch
  • C Spring Data
  • D Spring Security
Explanation Spring Cloud is designed for microservice management, while others serve different functions.
Q107

A company needs to implement authentication in a Spring application. Which component should they use?

  • A Spring Framework
  • B Spring Security
  • C Spring MVC
  • D Spring Boot
Explanation Spring Security provides authentication and authorization, unlike the other components.
Q108

You are configuring a Spring application to connect to an SQL database. What happens when you use the `@Transactional` annotation?

  • A It guarantees database write operations.
  • B It manages transaction boundaries.
  • C It improves query performance.
  • D It automatically syncs databases.
Explanation `@Transactional` manages transaction boundaries but does not ensure write operations or sync databases.
Q109

Which service is primarily used for dependency management in Spring applications?

  • A Spring Boot Starter
  • B Spring MVC
  • C Spring Data
  • D Spring Security
Explanation Spring Boot Starter simplifies dependency management, while others serve different purposes.
Q110

A company needs to secure its REST APIs. Which Spring feature should they implement for best practices?

  • A Spring AOP
  • B Spring Security
  • C Spring Batch
  • D Spring WebFlux
Explanation Spring Security provides robust features for securing APIs, unlike the other options.