Which two statements are true regarding @WebMvcTest? (Choose two.)
Answer : A, D
Which two annotations are meta-annotations on the @SpringBootApplication composed annotation? (Choose two.)
Answer : A, B
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.)
Answer : A, D
Which is the correct approach to register for a bean destruction callback?
Answer : B
Refer to the exhibit.
AppConfig is a Java configuration class. Which two statements are true? (Choose two.)
Answer : D, E
Which two options are valid optional attributes for Spring's @Transactional annotation? (Choose two.)
Answer : A, E
https://www.baeldung.com/transaction-configuration-with-jpa-and-spring
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/annotation/Transactional.html
Which statement is true about the @PropertySource annotation? (Choose the best answer.)
Answer : D
This is true because the @PropertySource annotation provides a convenient and declarative mechanism for adding a PropertySource to Spring's Environment. A PropertySource is an abstraction for a source of name/value pairs that can be used by the Environment to resolve properties. The @PropertySource annotation can be used to load properties from an external file, such as a .properties or .yml file, and make them available to the application context.