Question
Which of the following statements is true about ACID
properties in database transactions?Solution
Atomicity is a key aspect of database transactions, ensuring that a transaction is treated as a single, indivisible unit. If any part of the transaction fails, the entire transaction is rolled back, leaving the database in its original state. This prevents incomplete transactions from corrupting data. For example, during a fund transfer between two accounts, if the debit operation succeeds but the credit operation fails, the transaction is rolled back, and no changes are made to either account. This guarantees reliability and prevents partial updates, which could lead to data inconsistency. Why Other Options Are Incorrect :
- ACID ensures that every transaction updates only one table at a time : This is false; ACID applies regardless of the number of tables updated in a transaction.
- The Isolation property guarantees that no other transaction can execute while one transaction is active : Isolation ensures controlled concurrent execution but does not prohibit simultaneous transactions entirely; it depends on isolation levels like Serializable or Read Committed.
- Durability ensures data is permanently removed after transaction rollback : Durability guarantees that once a transaction is committed, its changes are permanent, even in case of a system failure. Rollbacks do not affect committed changes.
- Consistency ensures that multiple transactions can execute simultaneously without any conflicts : Consistency refers to maintaining the correctness of data states before and after a transaction, not concurrency handling.
A girl found the answer for the question “subtract the sum 1/2 and 1/8 from unity and express the answer in decimals” as 1.5. The percentage...
Two boys are on opposite sides of a tower of 100 m height. If they measure the elevation of the top of the tower as 30° and 45° respectively the...
Find the H.C.F OF ( 1179 + 1379)and (1385 + 1185 )
The ratio of two number is 6 : 5 and their HCF is 15. So find and their LCM?
The efficiency of A,B,C,D are in the ratio of 6:5:4:3. If A and C can do a work together in 6 days. Then How many days B and D will take to complete the...
If x+ 1/x = 3, then find the value of 2x/(3x²-5x+3)
In a Mixture , the ratio of Milk and Water is 7 : 5. If 12 litre mixture is drawn off and replaced by 8 litre water then the ratio of Milk and Water bec...
The diameter of the base of a cylindrical drum is 21 dm and the height is 12 dm. It is full of petrol. How many tins each of size 15 cm × 11 cm &t...
If 4x + 1/5x = 4, then find value of 125x³ + 1/64x³
When N is divided by 5 the remainder is 2. What is the remainder, when n³ is divided by 5?