What the Recruiter is Testing
Whether you understand AOP dynamic proxies in Spring Boot vs. treating annotations like magic, and whether you can debug silent transaction rollback failures in production.
Model Answer Framework (XYZ Formula)
- Explain that Spring wraps the bean in a JDK Dynamic Proxy or CGLIB proxy that intercepts external calls to open/commit/rollback the database transaction.
- Clarify that self-invocation (`this.saveData()`) bypasses the proxy completely, so `@Transactional` and `RollbackOn` rules are ignored.
- Apply XYZ: 'Accomplished zero partial-order writes [X] as measured by 100% atomic payment-ledger consistency [Y] by extracting transactional boundaries into dedicated domain service beans and enforcing propagation rules [Z].'
Red Flag to Avoid (Instant Disqualifier)
Saying '@Transactional locks the database table automatically' or not knowing that unchecked `RuntimeException` triggers rollback by default while checked exceptions do not.