Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 37

Which two options are valid optional attributes for Spring’s @Transactional annotation? (Choose two.)

    Correct Answer: A, E

    Two valid optional attributes for Spring’s @Transactional annotation are 'isolation' and 'propagation'. The 'isolation' attribute specifies the transaction isolation level, whereas the 'propagation' attribute defines the transaction propagation behavior. Both of these attributes are essential in managing transaction boundaries and behavior in Spring applications.

Discussion
james2033Options: AE

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