Question 51
MediumWhat makes a schedule cascadeless?
- A.
Transactions read only values written by committed transactions
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
What makes a schedule cascadeless?
Transactions read only values written by committed transactions
Only one transaction is allowed
Transactions never write
All transactions run one after another
Sign up free to see the answer and a step-by-step explanation.
A transaction is waiting for user input in the middle and holds locks for minutes. Why is this bad design?
It prevents dirty reads only
Other transactions needing those locks are blocked for a long time
It speeds up the system
It improves durability
Sign up free to see the answer and a step-by-step explanation.
In autocommit mode, what happens after each SQL statement?
Nothing until COMMIT
It is committed automatically as its own transaction
It is rolled back
It is logged but not applied
Sign up free to see the answer and a step-by-step explanation.
Which of these is a transaction failure, not a system crash?
The power goes off
The operating system crashes
The disk head crashes
A transaction aborts because of a constraint violation
Sign up free to see the answer and a step-by-step explanation.
Which isolation level does the SQL standard say prevents dirty reads, non-repeatable reads and phantom reads?
SERIALIZABLE
REPEATABLE READ
READ COMMITTED
READ UNCOMMITTED
Sign up free to see the answer and a step-by-step explanation.
In a bank transfer, ₹500 is debited from A and the system crashes before crediting B. Which property ensures A isn't left short?
Durability
Atomicity
Consistency only
Isolation
Sign up free to see the answer and a step-by-step explanation.
What is a cascading rollback?
Rolling back a transaction twice
Rolling back only part of a transaction
One transaction's rollback forces others that read its uncommitted data to roll back too
A rollback that deletes a table
Sign up free to see the answer and a step-by-step explanation.
What does a checkpoint do in log-based recovery?
Commits every running transaction
Limits how much of the log must be scanned after a crash by recording a point where changes were flushed to disk
Deletes the log
Locks every table
Sign up free to see the answer and a step-by-step explanation.
Which isolation level is the default in PostgreSQL and many other systems, preventing dirty reads but allowing non-repeatable reads?
READ UNCOMMITTED
READ COMMITTED
REPEATABLE READ
SERIALIZABLE
Sign up free to see the answer and a step-by-step explanation.
During recovery, which transactions are redone and which are undone?
Only the last transaction is redone
All transactions are redone
All transactions are undone
Transactions with a COMMIT record in the log are redone; those without one are undone
Sign up free to see the answer and a step-by-step explanation.