exam questions

Exam 1z0-908 All Questions

View all questions & answers for the 1z0-908 exam

Exam 1z0-908 topic 1 question 12 discussion

Actual exam question from Oracle's 1z0-908
Question #: 12
Topic #: 1
[All 1z0-908 Questions]

Examine these entries from the general query log:

All UPDATE statements reference existing rows.
Which describes the outcome of the sequence of statements?

  • A. Connection 24 experiences a lock wait timeout.
  • B. Connection 25 experiences a lock wait timeout.
  • C. A deadlock occurs immediately.
  • D. All statements execute without error.
  • E. A deadlock occurs after innodb_lock_wait_timeout seconds.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
abpg
2 months ago
Selected Answer: C
Answer is C.
upvoted 1 times
...
FelipeK
1 year, 2 months ago
Selected Answer: C
root@localhost[world]> update t2 set val=42 where id =3805; ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction +--------------------------+-------+ | Variable_name | Value | +--------------------------+-------+ | innodb_lock_wait_timeout | 900 | +--------------------------+-------+
upvoted 1 times
...
marklv
1 year, 3 months ago
D is right
upvoted 1 times
marklv
1 year, 1 month ago
correction, 24 and 25 hit the same id, an started a transaction. B and C are correct except b is NOT correct if 24 commits before timeout. So C happens. And C happens because the updates happen BEFORE 24 commits.
upvoted 1 times
marklv
5 months, 4 weeks ago
I see I didn't say the answer. No commit is ever executed, so the transactions are in limbo. So E is the correct answer. Eventually a timeout will occur. Auto commit does not matter when you begin a transaction. Both connections hit the same row, and are not committed, so there are lock.
upvoted 1 times
...
...
...
Dhanushka
1 year, 5 months ago
Selected Answer: D
Auto-commit not been disabled hence it should be able to execute all
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago