How does the @Transactional annotation work in Spring? Tell me about situations where a transaction behaves differently from what the developer expects.
~4 min by voice
How to approach it
This checks whether you understand how Transactional works inside, the AOP proxy, binding the transaction to the thread, the rollback rules and propagation, and whether you can derive the typical bugs from that mechanism instead of just listing them from memory.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.