Question

Transaction T1 holds a lock on Row A and requests a lock on Row
B. Transaction T2 holds a lock on Row B and requests a lock on Row
A. Both use strict Two-Phase Locking. What will happen, and how is it typically resolved?

A Both transactions proceed successfully because 2PL grants all requested locks immediately
B The DBMS silently ignores the second lock request, causing a dirty read instead
C 2PL automatically prevents this situation from ever occurring, so no issue arises
D T1 and T2 automatically merge into a single transaction to resolve the conflict
E A deadlock occurs; the DBMS's deadlock detection mechanism will typically abort one transaction to break the cycle
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)