Exam SnowPro Advanced Data Engineer All QuestionsBrowse all questions from this exam
Question 18

A Data Engineer ran a stored procedure containing various transactions. During the execution, the session abruptly disconnected, preventing one transaction from committing or rolling back. The transaction was left in a detached state and created a lock on resources.

What step must the Engineer take to immediately run a new transaction?

    Correct Answer: A

Discussion
stopthisnowOption: A

Aborting Transactions If a transaction is running in a session and the session disconnects abruptly, preventing the transaction from committing or rolling back, the transaction is left in a detached state, including any locks that the transaction is holding on resources. If this happens, you might need to abort the transaction. To abort a running transaction, the user who started the transaction or an account administrator can call the system function, SYSTEM$ABORT_TRANSACTION. If the transaction is not aborted by the user: If it blocks another transaction from acquiring a lock on the same table and is idle for 5 minutes, it is automatically aborted and rolled back. If it does not block other transactions from modifying the same table and is older than 4 hours, it is automatically aborted and rolled back.