← Back to Test
Problem 1 - Olympiad
A university uses a relational schema where STUDENT(StudentID PK, Name, AdvisorID FK) references ADVISOR(AdvisorID PK, Name). A trigger enforces that every student must have an advisor whose ID exists in ADVISOR. The DBA deletes an advisor row without cascading. Which combination of transaction isolation level and lock type on ADVISOR would guarantee the trigger never sees a phantom advisor deletion, and what is the earliest instant the trigger’s check can be safely executed?