← Quiz: Microservices Basics: all 10 questions
Quiz: Microservices Basics · Question 10 of 10
Which pattern handles a business transaction that spans several services, each with its own database?
Which pattern handles a business transaction that spans several services, each with its own database?
- A.A single @Transactional across all services
- B.Two-phase commit is always used
- C.The API gateway rolls back all services
- D.The Saga pattern: a series of local transactions with compensating steps
Answer & explanation
Correct answer: The Saga pattern: a series of local transactions with compensating steps
There are no shared transactions across services; a saga undoes earlier steps if a later one fails.
Can you get the rest right without peeking?
Take the timed Quiz: Microservices Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →