What is a transaction, and what does ACID mean?

Explain what a database transaction is. What does ACID stand for, and what does each of its four guarantees mean?

ExplainTransactions and locksJuniorBackendData EngineerQA