Question: What is the purpose of a transaction in a database?
Options:
Correct Answer: To ensure data integrity
Solution:
The purpose of a transaction in a database is to ensure data integrity by grouping a set of operations that must all succeed or fail together.