🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.A single @Transactional across all services
  2. B.Two-phase commit is always used
  3. C.The API gateway rolls back all services
  4. 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 →