What is ACID?
ACID is a set of properties that guarantee the reliability of database transactions:
- Atomicity, a transaction either runs fully or not at all. If an error occurs midway, the system rolls back every change.
- Consistency, after a transaction runs, the data stays in a valid state that satisfies the database's rules and constraints.
- Isolation, concurrent transactions don't interfere with each other: each one behaves as if it were running alone.
- Durability, once a transaction completes successfully, its changes survive even a system failure.
These properties make transactions predictable and protect data from loss and conflicts.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.