🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Distributed Transactions and Sagas: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Why can't a food order across payment, restaurant and delivery microservices use one normal ACID transaction?
  2. Q2. In two-phase commit, what happens if one participant votes "no" in the prepare phase?
  3. Q3. What is a major drawback of 2PC between microservices?
  4. Q4. What does this print? (code)
  5. Q5. In a saga, what is a compensating action?
  6. Q6. Why should a step that cannot be undone, like sending an SMS, come last in a saga?
  7. Q7. In saga choreography, how does the restaurant service know it should act?
  8. Q8. What problem does the transactional outbox solve?
  9. Q9. What does this print? (code)
  10. Q10. The outbox relay may publish the same event twice after a crash. What must consumers do?