Questions for the 2V0-72-22 were updated on : Dec 04 ,2025
Refer to the exhibit.
How can a Spring Bean be created from this LegacySingleton class?
A
Which two statements are true regarding @WebMvcTest? (Choose two.)
AD
Which two annotations are meta-annotations on the @SpringBootApplication composed
annotation? (Choose two.)
AB
Explanation:
A . @Configuration This annotation indicates that the class has @Bean definition methods and may
be processed by the Spring container to generate bean definitions and service requests for those
beans at runtime. B. @ComponentScan This annotation configures component scanning directives
for use with @Configuration classes. Provides support parallel with Spring XML's
context:component-scan element.
Which two mechanisms of autowiring a dependency when multiple beans match the dependency's
type are correct? (Choose two.)
AD
Which is the correct approach to register for a bean destruction callback?
B
Refer to the exhibit.
Which two statements are correct regarding auto-configuration of DataSource and JdbcTemplate
beans given a Spring Boot application with only these two dependencies? (Choose two.)
CE
Refer to the exhibit.
Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository?
(Choose two.)
CD
Which statements is true?
C
What's the password storage format when using the DelegatingPasswordEncoder?
B
Explanation:
https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/crypto/password/DelegatingPasswordEncoder.html
Refer to the exhibit.
What statement is true about @DirtiesContext?
B
Explanation:
@DirtiesContext @Test void testProcessWhichDirtiesAppCtx() { // some logic that results in the
Spring container being dirtied } Dirty the context after the current test method.
https://docs.spring.io/spring-framework/reference/testing/annotations/integration-spring/annotation-dirtiescontext.html
Which two statements are true about Spring AOP? (Choose two.)
AD
Refer to the exhibit.
AppConfig is a Java configuration class. Which two statements are true? (Choose two.)
DE
According to REST principles, which is the recommended way to update the order resource identified
by 1234?
B
Which two statements are true regarding a Spring Boot "fat" JAR? (Choose two.)
CE
Which two statements about BeanFactoryPostProcessors are true? (Choose two.)
BD
Explanation:
(1) BeanFactoryPostProcessor (Spring Framework 6.1.3 API). https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/config/BeanFactoryPostProcessor.html.(2)Spring
BeanPostProcessor | Baeldung. https://www.baeldung.com/spring-beanpostprocessor. (3)
BeanFactoryPostProcessor - Spring | Home. https://docs.spring.io/spring-
framework/docs/3.0.x/javadoc-
api/org/springframework/beans/factory/config/BeanFactoryPostProcessor.html. (4)
BeanFactoryPostProcessor (Spring Framework API 2.5). https://docs.spring.io/spring-
framework/docs/2.5.x/javadoc-
api/org/springframework/beans/factory/config/BeanFactoryPostProcessor.html. (5) Spring
BeanPostProcessor Example - HowToDoInJava.
https://howtodoinjava.com/spring-core/spring-bean-
post-processors/