VMware 2V0-72.22 Spring Professional Develop Online Training
VMware 2V0-72.22 Online Training
The questions for 2V0-72.22 were last updated at Mar 09,2025.
- Exam Code: 2V0-72.22
- Exam Name: Spring Professional Develop
- Certification Provider: VMware
- Latest update: Mar 09,2025
Which two statements are true about REST? (Choose two.)
- A . REST is a Protocol.
- B . REST is Stateful.
- C . REST is Reliable.
- D . REST is Interoperable.
- E . REST is Relative.
Spring Boot will find and load property files in which of the following? (Choose the best answer.)
- A . A *.properties file matching the name of the class annotated with @SpringBootApplication.
- B . config.properties or config.yml, usually located in the classpath root.
- C . application.properties or application.yml, usually located in the classpath root.
- D . env.properties or env.yml, usually located in the classpath root.
Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
- A . Cucumber
- B . Hamcrest
- C . spring-test
- D . Junit
- E . EasyMock
- F . PowerMock
Which two statements are correct regarding Spring Boot auto-configuration customization? (Choose two.)
- A . Use the @AutoConfigureAfter or @AutoConfigureBefore annotations to apply configuration in a specific order.
- B . Disable specific auto-configuration classes by using the exclude attribute on the @EnableAutoConfiguation annotation.
- C . Provide customized auto-configuration by subclassing the provided Spring Boot auto-configuration classes.
- D . Enable component scanning within auto-configuration classes to find necessary components.
- E . Control the order of auto-configuration classes applied with @AutoConfigureOrder.
Which two statements about the @Autowired annotation are true? (Choose two.)
- A . @Autowired fields are injected after any config methods are invoked.
- B . Multiple arguments can be injected into a single method using @Autowired.
- C . By default, if a dependency cannot be satisfied with @Autowired, Spring throws a RuntimeException.
- D . If @Autowired is used on a class, field injection is automatically performed for all dependencies.
- E . @Autowired can be used to inject references into BeanPostProcessor and BeanFactoryPostProcessor.
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
- A . It is a meta-annotation on the @SpringBootApplication composed annotation.
- B . It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.
- C . It is meta-annotation on the @SpringBootConfiguration composed annotation.
- D . It has the same effect regardless of the package of the class that is annotated with it.
- E . It ensures auto-configuration is applied before user-defined beans have been registered.
Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)
- A . BeanPostProcessors are called before the dependencies have been injected.
- B . Custom BeanPostProcessors can be implemented for Spring applications.
- C . BeanPostProcessors are called before the BeanFactoryPostProcessors.
- D . BeanPostProcessors are called during the initialization phase of a bean life cycle.
- E . BeanPostProcessors cannot be ordered in a Spring Boot application.
Which two statements are true about @Controller annotated classes? (Choose two.)
- A . The @Controller annotated classes can only render views.
- B . The classes are eligible for handling requests in Spring MVC.
- C . The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.
- D . @Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.
- E . The @Controller annotation is a stereotype annotation like @Component.
Which three types can be used as @Controller method arguments? (Choose three.)
- A . Locale
- B . Principal
- C . Language
- D . Session
- E . Request
- F . HttpSession
Which three statements are advantages of using Spring’s Dependency Injection? (Choose three.)
- A . Dependency injection can make code easier to trace because it couples behavior with construction.
- B . Dependency injection reduces the start-up time of an application.
- C . Dependencies between application components can be managed external to the components.
- D . Configuration can be externalized and centralized in a small set of files.
- E . Dependency injection creates tight coupling between components.
- F . Dependency injection facilitates loose coupling between components.