Skip to content
Sharp

Spring Core · interview question

In a typical Spring Boot application, where should transaction management be applied?

Multiple choiceMediumchapter-9-curatedpremiumspring-corecontrollers-services-repositories
Choose one answer
Answer and explanation

Correct answer

A. @Service

Why

Transaction management is typically applied at the @Service layer, where business logic is orchestrated. This allows the service to manage the transactional boundaries and ensure data consistency across multiple repository calls.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →