QUESTION 8 OF 15

Why use a transaction for related writes?

Reveal the answer and explore the explanation.

08
Medium

Why use a transaction for related writes?

Answer
Answer

Groups operations into an atomic unit with defined isolation semantics.

Practical example

Save an attempt and its answers together or neither.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As