CS Professional · Artificial Intelligence, Data Analytics and Cyber Security - Laws and Practice · Computer Hardware and Software
A bank transfers Rs 50,000 from account A to account B. The system debits A but crashes before crediting B, and on restart the debit is reversed so neither account changes. Which ACID property of a database transaction ensures this outcome?
Atomicity ensures this outcome. A transaction must be completed entirely or not at all, so when the crash left the transfer half done, the debit was rolled back. Durability and isolation address different concerns, namely persistence of committed data and separation of concurrent transactions.
- AIsolation, because concurrent transactions are hidden from each other
- BDurability, because committed data survives failure
- CConsistency, because the transaction is run by one user
- DAtomicity, because the transaction is all-or-nothingCorrect
Explanation
Atomicity means a transaction is completed fully or not at all. Here the partial debit is rolled back. Durability concerns committed data persisting after failure, and isolation concerns concurrent transactions, which are not the issue here.
Did you get it right without looking?
One question tells you little. A timed set on Computer Hardware and Software shows your real accuracy, how long you take and where you lose marks.
More Computer Hardware and Software questions
- A firm sets up a secure encrypted tunnel over the public internet so that its employees working from home can access the internal office net…
- A firm's analyst finds that its server runs slowly although the CPU clock speed is high, because the CPU repeatedly waits for data fetched f…
- In a computer's von Neumann-style architecture, which component fetches instructions from memory, decodes them and directs the other units t…
- A company secretary notes that the company's customer records are stored in tables where each row represents one customer and each column re…
- During a forensic seizure of a laptop in Pune, an investigator must preserve evidence in the order of volatility. Which item should ordinari…
- Under the Information Technology Act, 2000, a person who dishonestly or fraudulently tampers with computer source code that the law requires…