Databases · Junior · Question 49 of 75

Why should an application connect to the database with a user that has limited privileges?

Explanation

Grant only the needed rights (GRANT SELECT, INSERT ON ...). Run migrations with a separate, more powerful role.

Further reading

Problem with a question

Databases · Junior · question 49

Test yourself

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

Take this quiz