beginnerWhat Is a Transaction?

What are the only two possible endings of a transaction?

COMMIT (all changes take effect) or ROLLBACK (all changes are discarded) — never a partial outcome.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to What's the shared shape across the ATM, flight, and shopping examples?← Back to all Transaction Mastery questions