exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 18 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 18
Topic #: 1
[All 2V0-72.22 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
james2033
7 months, 1 week ago
Selected Answer: AB
Need 2 things: @EnableTransactionManagement and @Transactional .
upvoted 4 times
...
Ancient1
1 year, 1 month ago
Selected Answer: AB
A: You have to enable transaction management. B: You choose which methods/classes will be treated as transactional by using the @Transactional annotation.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago