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