Question 3 of 10Pro Only

What are primary keys, foreign keys, and other constraints, and why are they important for data integrity?

Sample answer preview

Database constraints are rules enforced by the database engine that ensure data follows defined rules. They are essential for maintaining data integrity because they prevent invalid data from being stored, regardless of how the data is inserted or updated.

primary keyforeign keyUNIQUENOT NULLCHECKDEFAULT

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Database Administrator interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime