Distributed Transactions   «Prev  Next»

EJB Transaction Theory - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. Which of the following statements are true for transactions?
Please select all the correct answers.
  A. Transactions can be nested.
  B. An atomic operation means that all resources are committed or none are.
  C. A global transaction updates a single local database.
  D. A two-phase commit allows one or more databases to be updated in an atomic operation.

2. Which of the following apply to a transactional object?
Please select all the correct answers.
  A. It can alter the outcome of a transaction.
  B. If the system crashes before the data is written, it can be recovered automatically.
  C. It may have data that needs to be saved as part of a transaction.
  D. It registers itself with the transaction manager.
  E. It can check whether the transaction completed.

3. Which of the following applies to a recoverable object?
Please select all the correct answers.
  A. It knows how to take part in a two-phase commit.
  B. It cannot roll back its state.
  C. If the system crashes before the data is written, it can be recovered automatically.
  D. It registers itself with the transaction manager.