📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which statement about foreign keys and indexes is true?

A. A foreign key column should usually be indexed to make joins and parent deletes fast ✅
B. Foreign keys are always indexed automatically in every DBMS
C. A foreign key can never be indexed
D. A foreign key index slows every query

Correct Answer: A. A foreign key column should usually be indexed to make joins and parent deletes fast

Explanation

Joins use the foreign key, and deleting a parent requires finding its children, so an index on the foreign key improves both operations.