LEARN. PRACTICE. EXPLAIN.
Learning paths & interview practiceP
Backend Engineer
DatabasesAdvanced10 min

Both transactions are waiting for each other.

  1. 1Your approach
  2. 2The follow-up
  3. 3Reflect & learn
THE INTERVIEWER ASKS

The scenario

Two transfers update the same pair of accounts in opposite orders. Explain how a deadlock can occur and how to handle it.

How would you approach it?

Explain your assumptions, your approach, and why you chose it.

Loading your notes…0 / 12,000
No timer. Think it through.
AlifBay Prep