Question: What is a transaction in the context of Spring Data?

  1. a version-controlled schema change that is applied to a database
  2. a sequence of actions representing a single unit of work managed as a single operation that can be either committed or rolled back
  3. an encoded message and response between various shards of a database
  4. an exchange or interaction between various worker nodes in a multithreaded environment

Answer: The correct answer of the above question is Option B:a sequence of actions representing a single unit of work managed as a single operation that can be either committed or rolled back