Want to pass your Professional Develop VMware Spring 2V0-72.22 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
Which two are required to use transactions in Spring? (Choose two.)
A. Add @EnableTransactionManagement to a Java configuration class.
B. Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.
C. A class must be annotated with @Service and @Transaction.
D. A class requiring a transaction must implement the TransactionInterceptor interface.
E. Write a Spring AOP advice to implement transactional behavior.
Which two statements are true regarding Spring Boot Testing? (Choose two.)
A. @TestApplicationContext is used to define additional beans or customizations for a test.
B. Test methods in a @SpringBootTest class are transactional by default.
C. @SpringBootTest is typically used for integration testing.
D. Test methods annotated with @SpringBootTest will recreate the ApplicationContext.
E. @SpringBootTest without any configuration classes expects there is only one class annotated with @SpringBootConfiguration in the application.
Which two statements describe Spring JdbcTemplate? (Choose two.)
A. All JdbcTemplate methods throw SQLException which you are required to handle.
B. The JdbcTemplate provides the ability to work with result sets.
C. The JdbcTemplate can only perform update but not insert to the database.
D. The JdbcTemplate provides methods for query execution.
E. The JdbcTemplate generates SQL statements.