Question 21
EasyIn recovery terms, what is a system crash?
- A.
A failure that loses the contents of main memory but leaves the disk intact
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
In recovery terms, what is a system crash?
A failure that loses the contents of main memory but leaves the disk intact
The loss of the whole disk
A wrong query
A user typing the wrong password
Sign up free to see the answer and a step-by-step explanation.
What is an uncommitted change?
A change made by the administrator
A change made by a transaction that has not yet committed
A change that can never be undone
A change to the table's structure
Sign up free to see the answer and a step-by-step explanation.
What is a read-only transaction?
A transaction that deletes data
A transaction that runs forever
A transaction that cannot be started
A transaction that only reads data and makes no changes
Sign up free to see the answer and a step-by-step explanation.
During recovery, what does an undo operation do?
Creates a new database
Reverses the changes of transactions that had not committed
Deletes the log
Repeats the changes of committed transactions
Sign up free to see the answer and a step-by-step explanation.
During recovery, what does a redo operation do?
Restarts the computer
Deletes the database
Cancels committed transactions
Re-applies the changes of committed transactions that may not have reached the disk
Sign up free to see the answer and a step-by-step explanation.
What is a serial schedule?
One in which transactions run at random
One in which only one user exists
One in which transactions run one after another without interleaving
One in which transactions never commit
Sign up free to see the answer and a step-by-step explanation.
A CHECK constraint stops a balance from going below zero. Which ACID property does it mainly help to keep?
Isolation
Atomicity
Durability
Consistency
Sign up free to see the answer and a step-by-step explanation.
Which are the states of a transaction?
New, ready, running, waiting
Open, closed, locked
Read, write, execute
Active, partially committed, committed, failed, aborted
Sign up free to see the answer and a step-by-step explanation.
What is a dirty read?
Reading a deleted table
Reading corrupted data from disk
Reading data written by a transaction that has not yet committed
Reading data twice
Sign up free to see the answer and a step-by-step explanation.
What is a non-repeatable read?
Reading new rows that appear
Reading the same row twice in a transaction and getting different values because another transaction changed it
Reading uncommitted data
A read that fails
Sign up free to see the answer and a step-by-step explanation.