Transactions


  1. How many storage engines among the following are transaction-safe?
    InnoDB, Falcon, MyISAM, MEMORY











  1. 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.


  1. What is the durability property of transactions?











  1. 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.



  1. Transactional processing requires lesser overhead due to CPU cycles and memory.











  1. 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.


  1. Transactional processing provides strong guarantees about the outcome of operations.











  1. 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.



  1. What is the command to disable autocommit and launch a transaction?











  1. 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.