70-516 · Question #28
70-516 Question #28: Real Exam Question with Answer & Explanation
The correct answer is C. Call the Reenlist method of the TransactionManager class.. Enlisting Resources as Participants in a Transaction Implementing a Resource Manager Committing a Transaction in Single-Phase and Multi-Phase TransactionManager.Reenlist() Reenlists a durable participant in a transaction. A resource manager facilitates resolution of durable enlis
Question
Options
- ACall the EnlistVolatile method of the Transaction class.
- BCall the EnlistDurable method of the Transaction class.
- CCall the Reenlist method of the TransactionManager class.
- DCall the RecoveryComplete method of the TransactionManager class.
Explanation
Enlisting Resources as Participants in a Transaction Implementing a Resource Manager Committing a Transaction in Single-Phase and Multi-Phase TransactionManager.Reenlist() Reenlists a durable participant in a transaction. A resource manager facilitates resolution of durable enlistments in a transaction by reenlisting the transaction participant after resource failure. Transaction.EnlistVolatile() Enlists a volatile resource manager to participate in a transaction. Volatile resource managers cannot recovery from failure to complete a transaction in which they were participating. Transaction.EnlistDurable() Enlists a durable resource manager to participate in a transaction. TransactionManager.RecoveryComplete() Notifies the transaction manager that a resource manager recovering from failure has finished reenlisting in all unresolved transactions. All durable resource managers should do recovery when they first start up by calling the Reenlist method for each outstanding transaction. Only when all of the reenlistments are done should the resource manager call RecoveryComplete. TransactionManager.Reenlist() Method Transaction.EnlistVolatile() Method Transaction.EnlistDurable() TransactionManager.RecoveryComplete() Method us/library/system.transactions.transactionmanager.recoverycomplete.aspx)
Community Discussion
No community discussion yet for this question.