🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Spring Boot Interview Questions: all 10 questions

Quiz: Spring Boot Interview Questions · Question 5 of 10

How should services keep data consistent without sharing a database?

How should services keep data consistent without sharing a database?

  1. A.One distributed transaction across all databases
  2. B.Each owns its data and they coordinate with events (Saga, outbox)
  3. C.Copy every table to every service nightly
  4. D.Let the API gateway write to all databases
Answer & explanation

Correct answer: Each owns its data and they coordinate with events (Saga, outbox)

Eventual consistency through events is the usual approach.

Can you get the rest right without peeking?

Take the timed Quiz: Spring Boot Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →