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.
Out of five members (L, M, N, O and P) of a family, how many members are males?
I. L is father of P, whose only son is N.
II. P has two sisters, M and O.
O, P, Q, S, T and V are standing in straight line facing north. Who among the following is between S and V?
I. V stand second to the right of S. ...
In which direction is Bheem facing now?
I. From C, Bheem walks 10m, then he takes left turn and walks 5m. Point C is in the west.
II....
There are seven members in a family. Who is the father-in-law of F?
Statement I: I is the daughter of A, who is married to the son of K. S and A ...
What is the position of Y in a row of seven persons?
I.R stands at extreme end of the row and there is only one person between R and Q.
II...
Six persons F, G, H, I, J and K are sitting in a row facing north. Who among the following sits at the extreme left end?
Statement I. K sits t...
In a row of 30 students facing north, what is Ankit’s position from the right end?
I. Akash is fourth to the right of Ankit and 24t...
The question given below consists of two statements numbered I and II given below it. You have to decide whether the data provided in the statements ar...
N, O, Q, R, S and U are standing in straight line facing north. Who among the following is between R and U?
I. U stand second to the right of ...
The question given below consists of two statements numbered I and II below them. You have to decide whether the data provided in the statements are s...