ExamGecko
Question list
Search
Search

Question 59 - 2V0-72.22 discussion

Report
Export

Which statement describes the propagation behavior of Propagation.REQUIRES_NEW annotation?

(Choose the best answer.)

A.
Starts a new transaction but throws an exception if an active transaction already exists.
Answers
A.
Starts a new transaction but throws an exception if an active transaction already exists.
B.
Joins a transaction if one already exists; throws an exception if an active transaction does not exist.
Answers
B.
Joins a transaction if one already exists; throws an exception if an active transaction does not exist.
C.
Starts a new transaction; if an active transaction already exists, it is suspended.
Answers
C.
Starts a new transaction; if an active transaction already exists, it is suspended.
D.
Runs in a nested transaction if an active transaction exists; throws an exception if an active transaction does not exist.
Answers
D.
Runs in a nested transaction if an active transaction exists; throws an exception if an active transaction does not exist.
Suggested answer: C

Explanation:

Reference: https://codete.com/blog/spring-transaction-propagation-modes

asked 16/09/2024
Damien Fenderson
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first