MySQL – User Management and Privileges MCQ

MySQL – User Management and Privileges MCQ

1 / 25

1. What is the primary purpose of user management in MySQL?

2 / 25

2. How do you create a new user account in MySQL?

3 / 25

3. What is the significance of the ‘hostname’ in a MySQL user account?

4 / 25

4. Which SQL statement is used to assign privileges to a user in MySQL?

5 / 25

5. What is the primary purpose of using the GRANT statement in MySQL?

6 / 25

6. What type of privileges can be assigned to a user in MySQL?

7 / 25

7. What does the ‘REVOKE’ statement do in MySQL?

8 / 25

8. Which SQL statement is used to list the privileges assigned to a user in MySQL?

9 / 25

9. What is the principle of least privilege in MySQL user management?

10 / 25

10. What is the purpose of enforcing strong passwords for user accounts in MySQL?

11 / 25

11. What is the significance of the ‘hostname’ in MySQL user account creation?

12 / 25

12. How can you view the privileges assigned to a specific user in MySQL?

13 / 25

13. What happens when you execute the REVOKE statement in MySQL?

14 / 25

14. Which of the following is a valid MySQL privilege keyword?

15 / 25

15. What is the primary role of the GRANT statement in MySQL user management?

16 / 25

16. What is the benefit of regularly reviewing and auditing user accounts and privileges in MySQL?

17 / 25

17. What is the role of the REVOKE statement in MySQL user management?

18 / 25

18. What privileges can be assigned to a MySQL user account?

19 / 25

19. What is the primary purpose of using strong passwords for user accounts in MySQL?

20 / 25

20. What is the best practice for MySQL user management regarding the ‘root’ user account?

21 / 25

21. What is the ‘hostname’ in MySQL user account creation used for?

22 / 25

22. Which keyword is used to assign privileges to a user account in MySQL?

23 / 25

23. What is the primary benefit of the ‘REVOKE’ statement in MySQL?

24 / 25

24. What is the primary purpose of the ‘SHOW GRANTS’ statement in MySQL?

25 / 25

25. Which MySQL user management best practice promotes security?

Your score is

0%