VMware 2V0-72.22 Exam
Professional Develop VMware Spring (Page 2 )

Updated On: 1-Feb-2026

If a class is annotated with @Component, what should be done to have Spring automatically detect the annotated class and load it as a bean? (Choose the best answer.)

  1. Ensure a valid bean name in the @Component annotation is specified.
  2. Ensure a valid @ComponentScan annotation in the Java configuration is specified.
  3. Ensure a valid @Scope for the class is specified.
  4. Ensure a valid @Bean for the class is specified.

Answer(s): A


Reference:

https://www.baeldung.com/spring-component-annotation



Which two statements about pointcut expressions are true? (Choose two.)

  1. A pointcut expression cannot specify the type of parameters.
  2. A pointcut expression will throw an exception if no methods are matched.
  3. A pointcut expression cannot have a wildcard for a method name.
  4. A pointcut expression can include operators such as the following: && (and), || (or), ! (not).
  5. A pointcut expression can be used to select join points which have been annotated with a specific annotation.

Answer(s): D,E


Reference:

https://www.baeldung.com/spring-aop-pointcut-tutorial



Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)

  1. Generic MapS
  2. Simple types (int, long, String, etc)
  3. JSONObject
  4. User defined types
  5. Properties
  6. XMLObject

Answer(s): B,D,E



Which two use cases can be addressed by the method level security annotation @PreAuthorize?

(Choose two.)

  1. Allow access to a method based on user identity.
  2. Allow access to a method based on the returned object.
  3. Allow access to a method based on HTTP method.
  4. Allow access to a method based on request URL.
  5. Allow access to a method based on roles.

Answer(s): C,E


Reference:

https://docs.spring.io/spring-
security/site/docs/5.2.11.RELEASE/reference/html/authorization.html



Which statement is true about the @PropertySource annotation? (Choose the best answer.)

  1. Used to designate the location of the application.properties file in a Spring Boot application.
  2. Used to easily look up and return a single property value from some external property file.
  3. Used to designate the file directory of the application.properties file in a Spring Boot application.
  4. Used to add a set of name/value pairs to the Spring Environment from an external source.

Answer(s): B



Viewing page 2 of 13
Viewing questions 6 - 10 out of 90 questions



Post your Comments and Discuss VMware 2V0-72.22 exam prep with other Community members:

Join the 2V0-72.22 Discussion