Questions: ACID Properties

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A bank transfer transaction successfully debits $500 from Account A, but the database crashes before it can credit Account B. After the database restarts and recovers, what does atomicity guarantee?

AThe credit to Account B is completed during recovery, since the debit already occurred
BThe debit to Account A is rolled back, leaving both accounts in their pre-transaction state
CThe transaction is re-executed from the beginning automatically
DThe database flags Account A as overdrawn and waits for a human administrator to resolve it
Question 2 Multiple Choice

Two concurrent transactions both read an account balance of $1,000 and each independently decide to withdraw $800, which would leave $200. Without isolation controls, what anomaly could occur, and which ACID property prevents it?

ABoth withdrawals succeed, leaving the balance at −$600; prevented by Consistency
BBoth withdrawals succeed, leaving the balance at −$600; prevented by Isolation
COne withdrawal is lost entirely; prevented by Atomicity
DThe account is locked until both transactions complete; prevented by Durability
Question 3 True / False

A database system can be fully ACID compliant and still produce incorrect data if the application code contains logic errors.

TTrue
FFalse
Question 4 True / False

'Consistency' in the ACID acronym means the same thing as 'consistency' in the CAP theorem — both ensure that most nodes in a distributed system see the same data at the same time.

TTrue
FFalse
Question 5 Short Answer

Why do some distributed databases deliberately relax ACID guarantees, and which property is most commonly relaxed first?

Think about your answer, then reveal below.