Databases · Middle · Question 43 of 75

Where should a 'unique email' rule be enforced?

Explanation

Two requests can both pass a 'does it exist?' check and insert duplicates. The constraint makes the database the final judge; handle its error in the app.

Further reading

Problem with a question

Databases · Middle · question 43

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz