📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is a deferred foreign-key constraint?

A. A constraint that deletes rows automatically
B. A constraint whose check is postponed until the end of a transaction, allowing temporary violations during the transaction ✅
C. A constraint that is never checked
D. A constraint that applies only to inserts

Correct Answer: B. A constraint whose check is postponed until the end of a transaction, allowing temporary violations during the transaction

Explanation

Deferrable constraints allow intermediate states, such as swapping keys, as long as integrity holds at commit time.