Level 1: Bronze
A memorized definition. Not wrong, but it stops there.
Atomicity, consistency, isolation and durability.
3 stars If you are short on time, start with this one.
In one or two sentences
Atomicity, consistency, isolation and durability. These are the properties that let several operations be handled safely as one unit.
Say it out loud, or type it below. What you type never leaves this device.
A memorized definition. Not wrong, but it stops there.
Atomicity, consistency, isolation and durability.
Correct, but too broad or missing context.
Atomicity means all or nothing. Consistency means moving from one valid state to another. Isolation means concurrent transactions do not interfere. Durability means committed results survive.
Reaches principle, use and trade-off, with words that invite the next question.
Different mechanisms provide each property. Atomicity relies on undo information that rolls back a failure, and durability on a write ahead log that records changes on disk before commit. Isolation comes from locks or multiple versions, and full isolation costs performance, so it is tuned by isolation level. Consistency comes from constraints together with application rules, so the database does not guarantee it alone.
These are likely next questions from an interviewer. Think of your answer first, then press the button.
1 / 3
What happens to data if the server stops right after commit?
The change record is already on disk, so on restart the log is replayed to restore the committed work.
2 / 3
Does the database guarantee consistency?
Only the rules that constraints can express. Business rules, such as totals that must match, also depend on the application writing transactions correctly.
3 / 3
What about transactions across several systems?
They need agreement protocols such as two phase commit, which is costly. Many systems use compensating actions to restore consistency instead.