Transactions
- How many storage engines among the following are transaction-safe?
InnoDB, Falcon, MyISAM, MEMORY
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
For some applications, transactional properties are essential. For example, financial operations usually require transaction processing. InnoDB and Falcon are transaction-safe while the other two are not.
- What is the durability property of transactions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The ‘durability’ property of a transaction is one of the four elementary characteristics that are expected for a database transaction to maintain throughout. The others are Isolation, Atomicity and Consistency.
- Transactional processing requires lesser overhead due to CPU cycles and memory.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Transactional processing is a Compound process. The statements and the state of the database need to be kept track of during the execution of the transaction. This means CPU cycles need to be reserved.
- Transactional processing provides strong guarantees about the outcome of operations.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
A transaction can either execute successfully or it can be rolled back to the point of initiation. Once a transaction completes, changes are recorded with commit. If it fails, changes are rolled back.
- What is the command to disable autocommit and launch a transaction?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
By default, MySQL runs in the autocommit mode. This means that the changes performed by individual statements or operations on tables are automatically committed to the database immediately.