Question 1
EasyWhich component of the ACID properties guarantees that database operations that form a single logical transaction either all complete successfully or none take effect at all?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
Which component of the ACID properties guarantees that database operations that form a single logical transaction either all complete successfully or none take effect at all?
Atomicity
Consistency
Isolation
Durability
Answer: A
Atomicity enforces the 'all-or-nothing' rule for transactions. If any operation within the transaction fails, the entire transaction is rolled back to leave the database in its previous valid state.
What is a transaction?
A single SQL keyword
A backup of the database
A table with money values
A sequence of operations performed as a single logical unit of work
Answer: D
Either all its operations take effect or none do, like transferring money between two accounts.
Which command makes a transaction's changes permanent?
COMMIT
ROLLBACK
SAVE
END
Answer: A
COMMIT ends the transaction and makes its changes durable.
Which command undoes the changes of the current transaction?
COMMIT
DELETE
ROLLBACK
UNDO
Answer: C
ROLLBACK restores the data to its state before the transaction (or to a savepoint).
Which ACID property ensures that committed changes survive a crash?
Durability
Consistency
Isolation
Atomicity
Answer: A
Durability is achieved through logging and writing data to stable storage.
Which ACID property makes concurrent transactions behave as if they ran one after another?
Atomicity
Durability
Consistency
Isolation
Answer: D
Isolation hides each transaction's intermediate changes from the others.
What does a SAVEPOINT allow?
Saving the database to a file
Rolling back part of a transaction to a marked point
Creating a new table
Committing twice
Answer: B
ROLLBACK TO SAVEPOINT s undoes only the work after s; the transaction continues.
Which ACID property means a transaction takes the database from one valid state to another?
Isolation
Consistency
Atomicity
Durability
Answer: B
Constraints and rules (such as 'balance ≥ 0') hold before and after every transaction.
What do the letters ACID stand for?
Atomicity, Consistency, Isolation, Durability
Atomicity, Concurrency, Indexing, Design
Accuracy, Control, Integrity, Data
Access, Commit, Index, Delete
Answer: A
These four properties describe how reliable transactions behave.
A transfer debits ₹1,000 from one account but, after an error, never credits the other. Which ACID property has been violated?
Atomicity
Isolation
Consistency of the schema
Durability
Answer: A
Atomicity means all of a transaction happens or none of it does.