Whenever you're ready, walk me through how you'd approach this.
How would you store large amounts of data in a database while ensuring data consistency? (expected: two-phase commit)
Asked in the technical + system design stage. Explain how you would coordinate updates across multiple database nodes or services, including failure handling, recovery, and the tradeoffs of distributed transactions. Address how the design behaves when a participant, coordinator, or network connection fails.