MCQ King
MySQL – Managing MySQL Performance Logs MCQ
1 / 26
1. What is the primary purpose of the MySQL error log?
2 / 26
2. Which MySQL log records all SQL statements sent to the server?
3 / 26
3. What is the primary use of the slow query log in MySQL?
4 / 26
4. What can be a potential drawback of enabling the general query log in a production MySQL environment?
5 / 26
5. What MySQL log contains records of changes to the database, such as INSERT, UPDATE, DELETE, and DDL statements?
6 / 26
6. How can you configure log rotation for MySQL performance logs?
7 / 26
7. Which log is used to identify and optimize poorly performing queries in MySQL?
8 / 26
8. What SQL variable controls the threshold time for queries to be logged in the slow query log?
9 / 26
9. Which log should be protected to prevent unauthorized access due to potentially sensitive information?
10 / 26
10. What should you consider when enabling the general query log in MySQL?
11 / 26
11. Which log can be used for point-in-time recovery and replication in MySQL?
12 / 26
12. What is log retention policy in the context of MySQL performance logs?
13 / 26
13. Which log contains records of all changes to the database and is essential for replication and auditing?
14 / 26
14. What action can help prevent MySQL performance log files from consuming excessive disk space?
15 / 26
15. Which log should you review to identify queries that take longer than a predefined threshold to execute?
16 / 26
16. What is the primary disadvantage of enabling the general query log in a production MySQL environment?
17 / 26
17. What can you achieve by analyzing the slow query log in MySQL?
18 / 26
18. What should you do to protect sensitive information in MySQL performance logs?
19 / 26
19. What log can be used to diagnose and resolve critical errors and warnings in MySQL?
20 / 26
20. How can you prevent the binary log from growing indefinitely in MySQL?
21 / 26
21. Which MySQL log is best suited for capturing unauthorized access attempts or security-related events?
22 / 26
22. What is the primary benefit of log rotation in MySQL?
23 / 26
23. What action should you take if a MySQL performance log file becomes too large?
24 / 26
24. Which MySQL log records all SQL statements sent to the server, including those that may affect performance?
25 / 26
25. How can you automate the analysis of MySQL performance logs for anomalies and critical issues?
26 / 26
26. What is the purpose of log files retention policies in MySQL?
Your score is
Restart quiz