VMware vRealize Automation 8.x (2022) — Question 75
Using declarative transaction management, which situation will cause a transaction to roll back by default?
Answer options
- A. When any uncaught unchecked exception is thrown
- B. When any type of exception is thrown, checked or unchecked
- C. When any uncaught checked exception is thrown
- D. Only when a Spring-specific exception is thrown
Correct answer: A
Explanation
The correct answer is A because declarative transaction management in Spring is designed to automatically roll back transactions when an uncaught unchecked exception occurs. Options B and C are incorrect as checked exceptions do not cause a rollback by default, and D is misleading since rollbacks are not limited to Spring-specific exceptions.