You have already completed the Test before. Hence you can not start it again.
Test is loading...
You must sign in or sign up to start the Test.
You have to finish following quiz, to start this Test:
Your results are here!! for" MySQL 8.0 Database Administrator Practice Test 5 "
0 of 60 questions answered correctly
Your time:
Time has elapsed
Your Final Score is : 0
You have attempted : 0
Number of Correct Questions : 0 and scored 0
Number of Incorrect Questions : 0 and Negative marks 0
Average score
Your score
MySQL 8.0 Database Administrator
You have attempted: 0
Number of Correct Questions: 0 and scored 0
Number of Incorrect Questions: 0 and Negative marks 0
You can review your answers by clicking on “View Answers” option. Important Note : Open Reference Documentation Links in New Tab (Right Click and Open in New Tab).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Answered
Review
Question 1 of 60
1. Question
What should be done before rejoining a crashed node to an InnoDB Cluster?
Correct
Before rejoining, the node must have an up-to-date transaction set to prevent inconsistencies. Restarting all nodes, using logical backups, or modifying binlog filtering does not ensure safe rejoining.
Incorrect
Before rejoining, the node must have an up-to-date transaction set to prevent inconsistencies. Restarting all nodes, using logical backups, or modifying binlog filtering does not ensure safe rejoining.
Unattempted
Before rejoining, the node must have an up-to-date transaction set to prevent inconsistencies. Restarting all nodes, using logical backups, or modifying binlog filtering does not ensure safe rejoining.
Question 2 of 60
2. Question
Which requirement must be met to enable Group Replication in MySQL?
Correct
Group Replication requires GTIDs for consistent transaction tracking across nodes. It does not require identical hardware, unique binary log identifiers, or a specific isolation level (default REPEATABLE READ is supported).
Incorrect
Group Replication requires GTIDs for consistent transaction tracking across nodes. It does not require identical hardware, unique binary log identifiers, or a specific isolation level (default REPEATABLE READ is supported).
Unattempted
Group Replication requires GTIDs for consistent transaction tracking across nodes. It does not require identical hardware, unique binary log identifiers, or a specific isolation level (default REPEATABLE READ is supported).
Question 3 of 60
3. Question
Which advantage does MySQL Enterprise Backup have over mysqldump when restoring large datasets?
Correct
MySQL Enterprise Backup restores data much faster than mysqldump, as it copies raw physical files rather than executing SQL statements. Easier schema export is irrelevant since it deals with logical exports. Improved logical imports apply to mysqldump, and Enhanced index rebuilds are unrelated.
Incorrect
MySQL Enterprise Backup restores data much faster than mysqldump, as it copies raw physical files rather than executing SQL statements. Easier schema export is irrelevant since it deals with logical exports. Improved logical imports apply to mysqldump, and Enhanced index rebuilds are unrelated.
Unattempted
MySQL Enterprise Backup restores data much faster than mysqldump, as it copies raw physical files rather than executing SQL statements. Easier schema export is irrelevant since it deals with logical exports. Improved logical imports apply to mysqldump, and Enhanced index rebuilds are unrelated.
Question 4 of 60
4. Question
Which system variable controls whether MySQL recalculates index statistics automatically?
Correct
innodb_stats_auto_recalc determines whether MySQL automatically updates index statistics when table data changes. innodb_auto_optimize is not a valid variable. index_stats_refresh does not exist, and optimizer_index_scan is not a system setting.
Incorrect
innodb_stats_auto_recalc determines whether MySQL automatically updates index statistics when table data changes. innodb_auto_optimize is not a valid variable. index_stats_refresh does not exist, and optimizer_index_scan is not a system setting.
Unattempted
innodb_stats_auto_recalc determines whether MySQL automatically updates index statistics when table data changes. innodb_auto_optimize is not a valid variable. index_stats_refresh does not exist, and optimizer_index_scan is not a system setting.
Question 5 of 60
5. Question
Which cache improves performance by storing metadata about opened tables?
Correct
The Open Table Cache stores metadata about opened tables, improving performance by reducing filesystem access. The other caches do not handle table metadata.
Incorrect
The Open Table Cache stores metadata about opened tables, improving performance by reducing filesystem access. The other caches do not handle table metadata.
Unattempted
The Open Table Cache stores metadata about opened tables, improving performance by reducing filesystem access. The other caches do not handle table metadata.
Question 6 of 60
6. Question
What is the role of whitelisting in preventing SQL injection attacks?
Correct
Whitelisting ensures that only valid inputs are accepted, which prevents malicious data from entering SQL queries. This method helps avoid SQL injection by checking input against safe values before processing.
Incorrect
Whitelisting ensures that only valid inputs are accepted, which prevents malicious data from entering SQL queries. This method helps avoid SQL injection by checking input against safe values before processing.
Unattempted
Whitelisting ensures that only valid inputs are accepted, which prevents malicious data from entering SQL queries. This method helps avoid SQL injection by checking input against safe values before processing.
Question 7 of 60
7. Question
Which scenario requires forcing a primary instance during cluster recovery?
Correct
Forcing a primary instance is required when a quorum is lost, meaning that most nodes are down. Issues like router failures, binary log corruption, or GTID loss do not require forcing a primary.
Incorrect
Forcing a primary instance is required when a quorum is lost, meaning that most nodes are down. Issues like router failures, binary log corruption, or GTID loss do not require forcing a primary.
Unattempted
Forcing a primary instance is required when a quorum is lost, meaning that most nodes are down. Issues like router failures, binary log corruption, or GTID loss do not require forcing a primary.
Question 8 of 60
8. Question
Which file extension is used for binary log backup files in MySQL 8.0?
Correct
Binary logs use the .bin extension and store transactional changes. .sql is for mysqldump exports. .log is used for general logs, and .cfg stores MySQL configuration files.
Incorrect
Binary logs use the .bin extension and store transactional changes. .sql is for mysqldump exports. .log is used for general logs, and .cfg stores MySQL configuration files.
Unattempted
Binary logs use the .bin extension and store transactional changes. .sql is for mysqldump exports. .log is used for general logs, and .cfg stores MySQL configuration files.
Question 9 of 60
9. Question
Which command is used to check the current configuration of MySQL replication on a slave server?
Correct
The SHOW REPLICA STATUS command provides detailed information about the replication process on a MySQL slave server. It includes details such as Master_Log_File, Read_Master_Log_Pos, and Seconds_Behind_Master. The SHOW MASTER STATUS command only applies to the master server, while SHOW PROCESSLIST provides session-related details but does not specifically indicate replication status. The SHOW VARIABLES LIKE ‘replication%‘ command only displays general replication settings and does not give real-time replication status.
Incorrect
The SHOW REPLICA STATUS command provides detailed information about the replication process on a MySQL slave server. It includes details such as Master_Log_File, Read_Master_Log_Pos, and Seconds_Behind_Master. The SHOW MASTER STATUS command only applies to the master server, while SHOW PROCESSLIST provides session-related details but does not specifically indicate replication status. The SHOW VARIABLES LIKE ‘replication%‘ command only displays general replication settings and does not give real-time replication status.
Unattempted
The SHOW REPLICA STATUS command provides detailed information about the replication process on a MySQL slave server. It includes details such as Master_Log_File, Read_Master_Log_Pos, and Seconds_Behind_Master. The SHOW MASTER STATUS command only applies to the master server, while SHOW PROCESSLIST provides session-related details but does not specifically indicate replication status. The SHOW VARIABLES LIKE ‘replication%‘ command only displays general replication settings and does not give real-time replication status.
Question 10 of 60
10. Question
Which system privilege is required to shutdown MySQL on a host to ensure proper security?
Correct
The SHUTDOWN privilege allows a user to shutdown MySQL securely. The SUPER privilege does grant various administrative tasks, but the SHUTDOWN privilege specifically controls the ability to stop the server.
Incorrect
The SHUTDOWN privilege allows a user to shutdown MySQL securely. The SUPER privilege does grant various administrative tasks, but the SHUTDOWN privilege specifically controls the ability to stop the server.
Unattempted
The SHUTDOWN privilege allows a user to shutdown MySQL securely. The SUPER privilege does grant various administrative tasks, but the SHUTDOWN privilege specifically controls the ability to stop the server.
Question 11 of 60
11. Question
Which tool automates scheduled backups in MySQL 8.0 environments?
Correct
MySQL Enterprise Backup supports scheduled, automated backups with hot backup capabilities. mysqldump Logical Export requires manual execution unless scripted. mysqlpump Schema Export does not handle automated scheduling, and Binary Log Backup Tool focuses on transaction logs, not automated full backups.
Incorrect
MySQL Enterprise Backup supports scheduled, automated backups with hot backup capabilities. mysqldump Logical Export requires manual execution unless scripted. mysqlpump Schema Export does not handle automated scheduling, and Binary Log Backup Tool focuses on transaction logs, not automated full backups.
Unattempted
MySQL Enterprise Backup supports scheduled, automated backups with hot backup capabilities. mysqldump Logical Export requires manual execution unless scripted. mysqlpump Schema Export does not handle automated scheduling, and Binary Log Backup Tool focuses on transaction logs, not automated full backups.
Question 12 of 60
12. Question
Which MySQL configuration file is read during server startup on Windows?
Correct
On Windows, MySQL reads configuration settings from C:\ProgramData\MySQL\my-defaults.ini. The other options are invalid or reference incorrect paths.
Incorrect
On Windows, MySQL reads configuration settings from C:\ProgramData\MySQL\my-defaults.ini. The other options are invalid or reference incorrect paths.
Unattempted
On Windows, MySQL reads configuration settings from C:\ProgramData\MySQL\my-defaults.ini. The other options are invalid or reference incorrect paths.
Question 13 of 60
13. Question
Which MySQL variable must be enabled to activate MySQL Enterprise Firewall?
Correct
The mysql_firewall_enable=ON system variable must be set to activate MySQL Enterprise Firewall. The other variables are not valid in MySQL 8.0.
Incorrect
The mysql_firewall_enable=ON system variable must be set to activate MySQL Enterprise Firewall. The other variables are not valid in MySQL 8.0.
Unattempted
The mysql_firewall_enable=ON system variable must be set to activate MySQL Enterprise Firewall. The other variables are not valid in MySQL 8.0.
Question 14 of 60
14. Question
Which MySQL system variable defines the threshold for logging a query as slow?
Correct
The long_query_time variable specifies the execution time threshold (in seconds) for logging slow queries. The other options do not exist in MySQL 8.0.
Incorrect
The long_query_time variable specifies the execution time threshold (in seconds) for logging slow queries. The other options do not exist in MySQL 8.0.
Unattempted
The long_query_time variable specifies the execution time threshold (in seconds) for logging slow queries. The other options do not exist in MySQL 8.0.
Question 15 of 60
15. Question
What is a primary challenge when using asynchronous replication for high availability?
Correct
In asynchronous replication, the primary does not wait for replicas to confirm writes, which means unreplicated transactions may be lost if the primary crashes before replication is completed.
Incorrect
In asynchronous replication, the primary does not wait for replicas to confirm writes, which means unreplicated transactions may be lost if the primary crashes before replication is completed.
Unattempted
In asynchronous replication, the primary does not wait for replicas to confirm writes, which means unreplicated transactions may be lost if the primary crashes before replication is completed.
Question 16 of 60
16. Question
Which mysqldump option is needed to include both schema and data in the backup file?
Correct
The –complete-insert-all option ensures that both schema and data are included in the mysqldump output. –routines-triggers-db backs up stored procedures. –create-table-mode does not exist, and –add-drop-database removes existing databases before restoring.
Incorrect
The –complete-insert-all option ensures that both schema and data are included in the mysqldump output. –routines-triggers-db backs up stored procedures. –create-table-mode does not exist, and –add-drop-database removes existing databases before restoring.
Unattempted
The –complete-insert-all option ensures that both schema and data are included in the mysqldump output. –routines-triggers-db backs up stored procedures. –create-table-mode does not exist, and –add-drop-database removes existing databases before restoring.
Question 17 of 60
17. Question
Which MySQL feature prevents man-in-the-middle attacks during client authentication?
Correct
By enabling CA verification (VERIFY_CA) in MySQL SSL settings, clients ensure that they are connecting to the correct server, preventing man-in-the-middle attacks. The other options help with security but do not directly prevent interception attacks.
Incorrect
By enabling CA verification (VERIFY_CA) in MySQL SSL settings, clients ensure that they are connecting to the correct server, preventing man-in-the-middle attacks. The other options help with security but do not directly prevent interception attacks.
Unattempted
By enabling CA verification (VERIFY_CA) in MySQL SSL settings, clients ensure that they are connecting to the correct server, preventing man-in-the-middle attacks. The other options help with security but do not directly prevent interception attacks.
Question 18 of 60
18. Question
What should be done before starting a MySQL upgrade?
Correct
A full backup is mandatory before an upgrade to avoid data loss. Resetting logs, flushing transactions, or modifying strict mode does not protect against upgrade failures.
Incorrect
A full backup is mandatory before an upgrade to avoid data loss. Resetting logs, flushing transactions, or modifying strict mode does not protect against upgrade failures.
Unattempted
A full backup is mandatory before an upgrade to avoid data loss. Resetting logs, flushing transactions, or modifying strict mode does not protect against upgrade failures.
Question 19 of 60
19. Question
Which MySQL command is used to check the integrity of an InnoDB table?
Correct
The CHECK TABLE command is used to verify the integrity of a table, ensuring that there is no corruption. It works with both MyISAM and InnoDB tables. Unlike REPAIR TABLE, which attempts to fix corrupt MyISAM tables, CHECK TABLE does not modify data—it simply reports issues. VALIDATE TABLE is not a valid MySQL command. ANALYZE TABLE helps optimize query performance by updating index statistics but does not verify table integrity.
Incorrect
The CHECK TABLE command is used to verify the integrity of a table, ensuring that there is no corruption. It works with both MyISAM and InnoDB tables. Unlike REPAIR TABLE, which attempts to fix corrupt MyISAM tables, CHECK TABLE does not modify data—it simply reports issues. VALIDATE TABLE is not a valid MySQL command. ANALYZE TABLE helps optimize query performance by updating index statistics but does not verify table integrity.
Unattempted
The CHECK TABLE command is used to verify the integrity of a table, ensuring that there is no corruption. It works with both MyISAM and InnoDB tables. Unlike REPAIR TABLE, which attempts to fix corrupt MyISAM tables, CHECK TABLE does not modify data—it simply reports issues. VALIDATE TABLE is not a valid MySQL command. ANALYZE TABLE helps optimize query performance by updating index statistics but does not verify table integrity.
Question 20 of 60
20. Question
What is the main limitation of using MySQL Enterprise Monitor for query performance analysis?
Correct
MySQL Enterprise Monitor does not directly track queries inside triggers, since they execute as part of larger transactions. Stored procedures and buffer pool activities can be monitored through other tools.
Incorrect
MySQL Enterprise Monitor does not directly track queries inside triggers, since they execute as part of larger transactions. Stored procedures and buffer pool activities can be monitored through other tools.
Unattempted
MySQL Enterprise Monitor does not directly track queries inside triggers, since they execute as part of larger transactions. Stored procedures and buffer pool activities can be monitored through other tools.
Question 21 of 60
21. Question
Which system variable must be enabled for Performance Schema data to appear in MySQL Enterprise Monitor?
Correct
The performance_schema system variable must be enabled for MySQL Enterprise Monitor to collect performance data. Other variables control logging, InnoDB locking, or background events but do not affect monitoring capabilities.
Incorrect
The performance_schema system variable must be enabled for MySQL Enterprise Monitor to collect performance data. Other variables control logging, InnoDB locking, or background events but do not affect monitoring capabilities.
Unattempted
The performance_schema system variable must be enabled for MySQL Enterprise Monitor to collect performance data. Other variables control logging, InnoDB locking, or background events but do not affect monitoring capabilities.
Question 22 of 60
22. Question
Which of the following increases the risk of data exposure in MySQL 8.0?
Correct
The general_log stores all queries in plain text, potentially exposing sensitive data if improperly secured. utf8mb4 is for character encoding, not security. Disabling binary logging affects replication but does not expose data, and STRICT_ALL_TABLES enforces stricter validation, improving security.
Incorrect
The general_log stores all queries in plain text, potentially exposing sensitive data if improperly secured. utf8mb4 is for character encoding, not security. Disabling binary logging affects replication but does not expose data, and STRICT_ALL_TABLES enforces stricter validation, improving security.
Unattempted
The general_log stores all queries in plain text, potentially exposing sensitive data if improperly secured. utf8mb4 is for character encoding, not security. Disabling binary logging affects replication but does not expose data, and STRICT_ALL_TABLES enforces stricter validation, improving security.
Question 23 of 60
23. Question
Which command is used to view active client connections and their states in MySQL 8.0?
Correct
The SHOW PROCESSLIST command displays all active client connections, along with session details like user, host, command, time, and state. This helps administrators monitor database activity and identify slow or problematic connections. The other options are not valid MySQL commands for viewing active connections.
Incorrect
The SHOW PROCESSLIST command displays all active client connections, along with session details like user, host, command, time, and state. This helps administrators monitor database activity and identify slow or problematic connections. The other options are not valid MySQL commands for viewing active connections.
Unattempted
The SHOW PROCESSLIST command displays all active client connections, along with session details like user, host, command, time, and state. This helps administrators monitor database activity and identify slow or problematic connections. The other options are not valid MySQL commands for viewing active connections.
Question 24 of 60
24. Question
What is the primary security benefit of using keyring_encrypted_file instead of keyring_file in MySQL 8.0?
Correct
The keyring_encrypted_file plugin provides an additional layer of security by encrypting stored encryption keys, unlike keyring_file, which stores keys in plaintext. This helps protect against unauthorized access in case the keyring file is compromised. The plugin does not impact query performance, replication, or SSL requirements.
Incorrect
The keyring_encrypted_file plugin provides an additional layer of security by encrypting stored encryption keys, unlike keyring_file, which stores keys in plaintext. This helps protect against unauthorized access in case the keyring file is compromised. The plugin does not impact query performance, replication, or SSL requirements.
Unattempted
The keyring_encrypted_file plugin provides an additional layer of security by encrypting stored encryption keys, unlike keyring_file, which stores keys in plaintext. This helps protect against unauthorized access in case the keyring file is compromised. The plugin does not impact query performance, replication, or SSL requirements.
Question 25 of 60
25. Question
Which MySQL 8.0 feature allows a replica to catch up without requiring full data resynchronization?
Correct
Crash-safe replication enables replicas to resume replication from the last successfully applied transaction rather than requiring a full re-synchronization. It uses the replicaÂ’s transaction position instead of just the binary log file position. Incremental backups, temporary tables, and adaptive buffering do not handle replication catch-up.
Incorrect
Crash-safe replication enables replicas to resume replication from the last successfully applied transaction rather than requiring a full re-synchronization. It uses the replicaÂ’s transaction position instead of just the binary log file position. Incremental backups, temporary tables, and adaptive buffering do not handle replication catch-up.
Unattempted
Crash-safe replication enables replicas to resume replication from the last successfully applied transaction rather than requiring a full re-synchronization. It uses the replicaÂ’s transaction position instead of just the binary log file position. Incremental backups, temporary tables, and adaptive buffering do not handle replication catch-up.
Question 26 of 60
26. Question
Which variable affects how MySQL allocates memory for sorting operations?
Correct
The sort_buffer_size variable determines the memory allocated per session for ORDER BY and GROUP BY sorting operations. join_buffer_size is used for joins that cannot use indexes, read_rnd_buffer_size improves random reads, and innodb_sort_buffer_size does not exist in MySQL 8.0.
Incorrect
The sort_buffer_size variable determines the memory allocated per session for ORDER BY and GROUP BY sorting operations. join_buffer_size is used for joins that cannot use indexes, read_rnd_buffer_size improves random reads, and innodb_sort_buffer_size does not exist in MySQL 8.0.
Unattempted
The sort_buffer_size variable determines the memory allocated per session for ORDER BY and GROUP BY sorting operations. join_buffer_size is used for joins that cannot use indexes, read_rnd_buffer_size improves random reads, and innodb_sort_buffer_size does not exist in MySQL 8.0.
Question 27 of 60
27. Question
Which statement is true when running multiple MySQL instances with the same datadir?
Correct
Using the same datadir for multiple MySQL instances will cause data corruption due to concurrent access. Each instance must have its own unique datadir to function properly. Different configuration files are necessary, but they do not prevent corruption if the same datadir is used. Running multiple instances does not inherently improve performance or enable automatic failover.
Incorrect
Using the same datadir for multiple MySQL instances will cause data corruption due to concurrent access. Each instance must have its own unique datadir to function properly. Different configuration files are necessary, but they do not prevent corruption if the same datadir is used. Running multiple instances does not inherently improve performance or enable automatic failover.
Unattempted
Using the same datadir for multiple MySQL instances will cause data corruption due to concurrent access. Each instance must have its own unique datadir to function properly. Different configuration files are necessary, but they do not prevent corruption if the same datadir is used. Running multiple instances does not inherently improve performance or enable automatic failover.
Question 28 of 60
28. Question
Which step is required before upgrading a MySQL server to version 8.0?
Correct
Before upgrading to MySQL 8.0, you must run mysql_upgrade to check incompatible changes and ensure schema compatibility. Converting tables, enabling strict mode, or purging logs is not required for upgrades.
Incorrect
Before upgrading to MySQL 8.0, you must run mysql_upgrade to check incompatible changes and ensure schema compatibility. Converting tables, enabling strict mode, or purging logs is not required for upgrades.
Unattempted
Before upgrading to MySQL 8.0, you must run mysql_upgrade to check incompatible changes and ensure schema compatibility. Converting tables, enabling strict mode, or purging logs is not required for upgrades.
Question 29 of 60
29. Question
Which MySQL variable controls the minimum TLS version clients can use?
Correct
The tls_version variable in MySQL specifies which TLS versions are allowed. Setting this properly helps enforce security compliance by restricting outdated protocols. The other options do not exist in MySQL 8.0.
Incorrect
The tls_version variable in MySQL specifies which TLS versions are allowed. Setting this properly helps enforce security compliance by restricting outdated protocols. The other options do not exist in MySQL 8.0.
Unattempted
The tls_version variable in MySQL specifies which TLS versions are allowed. Setting this properly helps enforce security compliance by restricting outdated protocols. The other options do not exist in MySQL 8.0.
Question 30 of 60
30. Question
What happens if MySQL Enterprise Firewall is set to DETECTING mode for a user?
Correct
In DETECTING mode, MySQL Enterprise Firewall logs queries that do not match the allowlist but does not block them. Blocking occurs in ENFORCE mode.
Incorrect
In DETECTING mode, MySQL Enterprise Firewall logs queries that do not match the allowlist but does not block them. Blocking occurs in ENFORCE mode.
Unattempted
In DETECTING mode, MySQL Enterprise Firewall logs queries that do not match the allowlist but does not block them. Blocking occurs in ENFORCE mode.
Question 31 of 60
31. Question
Which MySQL server configuration allows clients to use SSL connections?
Correct
To enable SSL connections, MySQL requires a certificate (ssl_cert), a private key (ssl_key), and a certificate authority file (ssl_ca). The other options are invalid MySQL settings.
Incorrect
To enable SSL connections, MySQL requires a certificate (ssl_cert), a private key (ssl_key), and a certificate authority file (ssl_ca). The other options are invalid MySQL settings.
Unattempted
To enable SSL connections, MySQL requires a certificate (ssl_cert), a private key (ssl_key), and a certificate authority file (ssl_ca). The other options are invalid MySQL settings.
Question 32 of 60
32. Question
Which approach minimizes data loss by combining full, incremental, and binary log backups?
Correct
A Mixed Backup Strategy balances full backups, incremental backups, and binary logs to ensure efficient recovery while minimizing storage usage. Layered recovery model is not a recognized term in MySQL. Combined snapshot plan and Sequential archive method do not describe standard MySQL backup strategies.
Incorrect
A Mixed Backup Strategy balances full backups, incremental backups, and binary logs to ensure efficient recovery while minimizing storage usage. Layered recovery model is not a recognized term in MySQL. Combined snapshot plan and Sequential archive method do not describe standard MySQL backup strategies.
Unattempted
A Mixed Backup Strategy balances full backups, incremental backups, and binary logs to ensure efficient recovery while minimizing storage usage. Layered recovery model is not a recognized term in MySQL. Combined snapshot plan and Sequential archive method do not describe standard MySQL backup strategies.
Question 33 of 60
33. Question
Which InnoDB structure stores table and index data on disk in MySQL 8.0?
Correct
The InnoDB Shared Tablespace (or file-per-table tablespace) stores table and index data in .ibd files if file_per_table is enabled. The Undo Tablespace stores undo logs, the Data Dictionary manages metadata, and the Tablespace System contains global InnoDB components.
Incorrect
The InnoDB Shared Tablespace (or file-per-table tablespace) stores table and index data in .ibd files if file_per_table is enabled. The Undo Tablespace stores undo logs, the Data Dictionary manages metadata, and the Tablespace System contains global InnoDB components.
Unattempted
The InnoDB Shared Tablespace (or file-per-table tablespace) stores table and index data in .ibd files if file_per_table is enabled. The Undo Tablespace stores undo logs, the Data Dictionary manages metadata, and the Tablespace System contains global InnoDB components.
Question 34 of 60
34. Question
Which variable controls the number of simultaneous threads that can execute within the MySQL server?
Correct
The innodb_thread_concurrency variable controls the maximum number of concurrent threads that InnoDB can execute at any time. A value of 0 allows unlimited concurrency, but setting an optimal value can improve performance. thread_cache_size manages thread reuse, max_connections limits client connections, and performance_schema_max_threads affects Performance Schema monitoring, not execution concurrency.
Incorrect
The innodb_thread_concurrency variable controls the maximum number of concurrent threads that InnoDB can execute at any time. A value of 0 allows unlimited concurrency, but setting an optimal value can improve performance. thread_cache_size manages thread reuse, max_connections limits client connections, and performance_schema_max_threads affects Performance Schema monitoring, not execution concurrency.
Unattempted
The innodb_thread_concurrency variable controls the maximum number of concurrent threads that InnoDB can execute at any time. A value of 0 allows unlimited concurrency, but setting an optimal value can improve performance. thread_cache_size manages thread reuse, max_connections limits client connections, and performance_schema_max_threads affects Performance Schema monitoring, not execution concurrency.
Question 35 of 60
35. Question
Which process ensures automatic primary selection in an InnoDB Cluster?
Correct
Group Communication System (GCS) handles automatic primary selection in case of failure. MySQL Router, Cluster Monitor, and Transaction Coordinator do not control primary node elections.
Incorrect
Group Communication System (GCS) handles automatic primary selection in case of failure. MySQL Router, Cluster Monitor, and Transaction Coordinator do not control primary node elections.
Unattempted
Group Communication System (GCS) handles automatic primary selection in case of failure. MySQL Router, Cluster Monitor, and Transaction Coordinator do not control primary node elections.
Question 36 of 60
36. Question
Which command is used to copy raw MySQL data files safely?
Correct
The rsync -av command safely copies MySQL raw data files, preserving ownership and permissions. mysqldump and mysqlpump perform logical backups instead. cp –recursive –fast is not an optimal method for ensuring consistency in database backups.
Incorrect
The rsync -av command safely copies MySQL raw data files, preserving ownership and permissions. mysqldump and mysqlpump perform logical backups instead. cp –recursive –fast is not an optimal method for ensuring consistency in database backups.
Unattempted
The rsync -av command safely copies MySQL raw data files, preserving ownership and permissions. mysqldump and mysqlpump perform logical backups instead. cp –recursive –fast is not an optimal method for ensuring consistency in database backups.
Question 37 of 60
37. Question
Which MySQL statement grants a user all privileges on a specific database?
Correct
The correct syntax for granting all privileges on a database is GRANT ALL PRIVILEGES ON database. TO user@host*. The ALL keyword alone is invalid, and the TO clause must be placed after specifying the database. Using incorrect keyword order results in a syntax error.
Incorrect
The correct syntax for granting all privileges on a database is GRANT ALL PRIVILEGES ON database. TO user@host*. The ALL keyword alone is invalid, and the TO clause must be placed after specifying the database. Using incorrect keyword order results in a syntax error.
Unattempted
The correct syntax for granting all privileges on a database is GRANT ALL PRIVILEGES ON database. TO user@host*. The ALL keyword alone is invalid, and the TO clause must be placed after specifying the database. Using incorrect keyword order results in a syntax error.
Question 38 of 60
38. Question
Which command verifies if MySQL is running on a Linux server?
Correct
The correct way to check MySQL status is systemctl status mysqlserver. The other options reference incorrect MySQL service names.
Incorrect
The correct way to check MySQL status is systemctl status mysqlserver. The other options reference incorrect MySQL service names.
Unattempted
The correct way to check MySQL status is systemctl status mysqlserver. The other options reference incorrect MySQL service names.
Question 39 of 60
39. Question
Which MySQL 8.0 keyring plugin stores encryption keys in an external KMS (Key Management System)?
Correct
The keyring_kms plugin allows MySQL 8.0 to integrate with an external Key Management System (KMS), ensuring encryption keys are securely managed outside the database server. The other options are either invalid or do not exist as MySQL keyring plugins.
Incorrect
The keyring_kms plugin allows MySQL 8.0 to integrate with an external Key Management System (KMS), ensuring encryption keys are securely managed outside the database server. The other options are either invalid or do not exist as MySQL keyring plugins.
Unattempted
The keyring_kms plugin allows MySQL 8.0 to integrate with an external Key Management System (KMS), ensuring encryption keys are securely managed outside the database server. The other options are either invalid or do not exist as MySQL keyring plugins.
Question 40 of 60
40. Question
Which command initializes the MySQL data directory when installing MySQL manually?
Correct
The mysqld –initialize-insecure command initializes the data directory without setting a root password, making it easier for automation. The other options are invalid or do not exist in MySQL 8.0.
Incorrect
The mysqld –initialize-insecure command initializes the data directory without setting a root password, making it easier for automation. The other options are invalid or do not exist in MySQL 8.0.
Unattempted
The mysqld –initialize-insecure command initializes the data directory without setting a root password, making it easier for automation. The other options are invalid or do not exist in MySQL 8.0.
Question 41 of 60
41. Question
What happens if two multisource replication channels apply conflicting updates?
Correct
When a conflicting update occurs in multisource replication, MySQL stops the affected channel, requiring manual intervention to resolve conflicts. MySQL does not retry, merge, or discard transactions automatically, as this could lead to data inconsistency across replication sources.
Incorrect
When a conflicting update occurs in multisource replication, MySQL stops the affected channel, requiring manual intervention to resolve conflicts. MySQL does not retry, merge, or discard transactions automatically, as this could lead to data inconsistency across replication sources.
Unattempted
When a conflicting update occurs in multisource replication, MySQL stops the affected channel, requiring manual intervention to resolve conflicts. MySQL does not retry, merge, or discard transactions automatically, as this could lead to data inconsistency across replication sources.
Question 42 of 60
42. Question
Which MySQL 8.0 option allows launching multiple instances using separate configuration files?
Correct
The –defaults-file option lets users specify a custom configuration file for each MySQL instance, ensuring unique datadir, port, socket, and log files. The –default-authentication-plugin option sets the authentication plugin, –default-tmp-storage-engine specifies the temporary storage engine, and –default-storage-engine sets the default table storage engine but does not configure multiple instances.
Incorrect
The –defaults-file option lets users specify a custom configuration file for each MySQL instance, ensuring unique datadir, port, socket, and log files. The –default-authentication-plugin option sets the authentication plugin, –default-tmp-storage-engine specifies the temporary storage engine, and –default-storage-engine sets the default table storage engine but does not configure multiple instances.
Unattempted
The –defaults-file option lets users specify a custom configuration file for each MySQL instance, ensuring unique datadir, port, socket, and log files. The –default-authentication-plugin option sets the authentication plugin, –default-tmp-storage-engine specifies the temporary storage engine, and –default-storage-engine sets the default table storage engine but does not configure multiple instances.
Question 43 of 60
43. Question
What is the purpose of mysqld_safe in MySQL 8.0?
Correct
mysqld_safe is a wrapper script that starts the MySQL server (mysqld) with enhanced crash recovery capabilities. If mysqld crashes unexpectedly, mysqld_safe attempts to restart it automatically, ensuring high availability. This tool also allows logging options and security settings to be configured at startup. It is unrelated to query execution safety, deadlock detection, or storage engine functionality, making those choices incorrect.
Incorrect
mysqld_safe is a wrapper script that starts the MySQL server (mysqld) with enhanced crash recovery capabilities. If mysqld crashes unexpectedly, mysqld_safe attempts to restart it automatically, ensuring high availability. This tool also allows logging options and security settings to be configured at startup. It is unrelated to query execution safety, deadlock detection, or storage engine functionality, making those choices incorrect.
Unattempted
mysqld_safe is a wrapper script that starts the MySQL server (mysqld) with enhanced crash recovery capabilities. If mysqld crashes unexpectedly, mysqld_safe attempts to restart it automatically, ensuring high availability. This tool also allows logging options and security settings to be configured at startup. It is unrelated to query execution safety, deadlock detection, or storage engine functionality, making those choices incorrect.
Question 44 of 60
44. Question
You need to configure a MySQL 8.0 server to allow connections only from specific IP addresses for security reasons. Which feature should you use?
Correct
Host-based authentication in MySQL allows administrators to specify which IP addresses or hostnames can connect to a given user account. This is managed through the GRANT statement, which can be configured to permit or deny access based on client IP. The bind_address option controls which network interfaces MySQL listens on but does not restrict specific clients. The skip_networking option disables network access entirely, which is not practical for remote connections. SSL/TLS encryption secures connections but does not control access at the IP level.
Incorrect
Host-based authentication in MySQL allows administrators to specify which IP addresses or hostnames can connect to a given user account. This is managed through the GRANT statement, which can be configured to permit or deny access based on client IP. The bind_address option controls which network interfaces MySQL listens on but does not restrict specific clients. The skip_networking option disables network access entirely, which is not practical for remote connections. SSL/TLS encryption secures connections but does not control access at the IP level.
Unattempted
Host-based authentication in MySQL allows administrators to specify which IP addresses or hostnames can connect to a given user account. This is managed through the GRANT statement, which can be configured to permit or deny access based on client IP. The bind_address option controls which network interfaces MySQL listens on but does not restrict specific clients. The skip_networking option disables network access entirely, which is not practical for remote connections. SSL/TLS encryption secures connections but does not control access at the IP level.
Question 45 of 60
45. Question
What does MySQL Enterprise Monitor use to identify queries with high resource consumption?
Correct
MySQL Enterprise Monitor gathers query performance data using Performance Schema, which provides real-time insights into resource-intensive queries. It does not rely on binary logs, OS metrics, or response time indexing.
Incorrect
MySQL Enterprise Monitor gathers query performance data using Performance Schema, which provides real-time insights into resource-intensive queries. It does not rely on binary logs, OS metrics, or response time indexing.
Unattempted
MySQL Enterprise Monitor gathers query performance data using Performance Schema, which provides real-time insights into resource-intensive queries. It does not rely on binary logs, OS metrics, or response time indexing.
Question 46 of 60
46. Question
What happens if a multisource replication channel is stopped manually?
Correct
In multisource replication, stopping a single replication channel does not affect others. Each channel operates independently, meaning other active channels continue replicating. MySQL does not restart the server, and unprocessed transactions remain in relay logs until applied.
Incorrect
In multisource replication, stopping a single replication channel does not affect others. Each channel operates independently, meaning other active channels continue replicating. MySQL does not restart the server, and unprocessed transactions remain in relay logs until applied.
Unattempted
In multisource replication, stopping a single replication channel does not affect others. Each channel operates independently, meaning other active channels continue replicating. MySQL does not restart the server, and unprocessed transactions remain in relay logs until applied.
Question 47 of 60
47. Question
Which MySQL feature helps prevent unexpected storage exhaustion?
Correct
The Tablespace Autoextend feature automatically increases storage capacity when a tablespace reaches its limit, preventing unexpected failures. Other options do not directly manage storage space.
Incorrect
The Tablespace Autoextend feature automatically increases storage capacity when a tablespace reaches its limit, preventing unexpected failures. Other options do not directly manage storage space.
Unattempted
The Tablespace Autoextend feature automatically increases storage capacity when a tablespace reaches its limit, preventing unexpected failures. Other options do not directly manage storage space.
Question 48 of 60
48. Question
Which MySQL clause is most affected by an index on a column?
Correct
A SELECT DISTINCT query benefits from indexing because MySQL can efficiently eliminate duplicate values using sorted index data. DELETE and INSERT are slowed by indexes due to the additional maintenance required. ALTER TABLE operations that change indexes can also be slow, but they are not affected by an index in the same way SELECT DISTINCT is.
Incorrect
A SELECT DISTINCT query benefits from indexing because MySQL can efficiently eliminate duplicate values using sorted index data. DELETE and INSERT are slowed by indexes due to the additional maintenance required. ALTER TABLE operations that change indexes can also be slow, but they are not affected by an index in the same way SELECT DISTINCT is.
Unattempted
A SELECT DISTINCT query benefits from indexing because MySQL can efficiently eliminate duplicate values using sorted index data. DELETE and INSERT are slowed by indexes due to the additional maintenance required. ALTER TABLE operations that change indexes can also be slow, but they are not affected by an index in the same way SELECT DISTINCT is.
Question 49 of 60
49. Question
Which method can diagnose why replication is not progressing?
Correct
When replication stops, SHOW REPLICA STATUS reveals thread failures, error codes, and relay log positions. The master status and binary logs do not diagnose replica-side issues, and enabling relay log info tracking does not directly show errors.
Incorrect
When replication stops, SHOW REPLICA STATUS reveals thread failures, error codes, and relay log positions. The master status and binary logs do not diagnose replica-side issues, and enabling relay log info tracking does not directly show errors.
Unattempted
When replication stops, SHOW REPLICA STATUS reveals thread failures, error codes, and relay log positions. The master status and binary logs do not diagnose replica-side issues, and enabling relay log info tracking does not directly show errors.
Question 50 of 60
50. Question
What is the primary advantage of using GTID-based replication over traditional binary log replication?
Correct
Global Transaction Identifiers (GTIDs) uniquely identify each transaction across all servers, ensuring seamless failover and recovery. This avoids manual log file positioning issues found in traditional binary log replication. GTIDs do not compress logs, handle failover alone, or allow unordered execution.
Incorrect
Global Transaction Identifiers (GTIDs) uniquely identify each transaction across all servers, ensuring seamless failover and recovery. This avoids manual log file positioning issues found in traditional binary log replication. GTIDs do not compress logs, handle failover alone, or allow unordered execution.
Unattempted
Global Transaction Identifiers (GTIDs) uniquely identify each transaction across all servers, ensuring seamless failover and recovery. This avoids manual log file positioning issues found in traditional binary log replication. GTIDs do not compress logs, handle failover alone, or allow unordered execution.
Question 51 of 60
51. Question
What is the primary benefit of using the file-per-table tablespace mode in MySQL 8.0?
Correct
When using file-per-table mode, MySQL creates a separate tablespace file (.ibd) for each table, which allows better space management and efficient storage reclamation after table truncation or deletion. Foreign keys and transactions remain supported, and redo logs are shared across all tablespaces. Metadata is stored in data dictionary tables, not in individual directories.
Incorrect
When using file-per-table mode, MySQL creates a separate tablespace file (.ibd) for each table, which allows better space management and efficient storage reclamation after table truncation or deletion. Foreign keys and transactions remain supported, and redo logs are shared across all tablespaces. Metadata is stored in data dictionary tables, not in individual directories.
Unattempted
When using file-per-table mode, MySQL creates a separate tablespace file (.ibd) for each table, which allows better space management and efficient storage reclamation after table truncation or deletion. Foreign keys and transactions remain supported, and redo logs are shared across all tablespaces. Metadata is stored in data dictionary tables, not in individual directories.
Question 52 of 60
52. Question
Which query would help find the oldest blocking transaction in MySQL?
Correct
The information_schema.innodb_trx table shows active transactions, and sorting by trx_started helps identify the oldest blocking transaction. The INNODB STATUS command provides summary information, performance_schema.transactions does not exist, and PROCESSLIST does not show detailed transaction times.
Incorrect
The information_schema.innodb_trx table shows active transactions, and sorting by trx_started helps identify the oldest blocking transaction. The INNODB STATUS command provides summary information, performance_schema.transactions does not exist, and PROCESSLIST does not show detailed transaction times.
Unattempted
The information_schema.innodb_trx table shows active transactions, and sorting by trx_started helps identify the oldest blocking transaction. The INNODB STATUS command provides summary information, performance_schema.transactions does not exist, and PROCESSLIST does not show detailed transaction times.
Question 53 of 60
53. Question
How does MySQL prevent replication inconsistency when using parallel workers?
Correct
In parallel replication, MySQL ensures consistency by using write-set dependencies, which allow independent transactions to be executed in parallel while maintaining correct commit order. The SQL thread does not force strict ordering, and the I/O thread does not apply events.
Incorrect
In parallel replication, MySQL ensures consistency by using write-set dependencies, which allow independent transactions to be executed in parallel while maintaining correct commit order. The SQL thread does not force strict ordering, and the I/O thread does not apply events.
Unattempted
In parallel replication, MySQL ensures consistency by using write-set dependencies, which allow independent transactions to be executed in parallel while maintaining correct commit order. The SQL thread does not force strict ordering, and the I/O thread does not apply events.
Question 54 of 60
54. Question
Which MySQL command is used to manually start replication on a replica?
Correct
The START REPLICA command (formerly START SLAVE) is used to initiate replication, allowing the replica to start retrieving and applying transactions from the primary.
Incorrect
The START REPLICA command (formerly START SLAVE) is used to initiate replication, allowing the replica to start retrieving and applying transactions from the primary.
Unattempted
The START REPLICA command (formerly START SLAVE) is used to initiate replication, allowing the replica to start retrieving and applying transactions from the primary.
Question 55 of 60
55. Question
How does enabling the require_secure_transport system variable affect client connections?
Correct
When require_secure_transport is enabled, MySQL rejects all client connections that are not using TLS/SSL encryption. This ensures that sensitive data such as credentials and queries are transmitted securely. The setting does not limit connections to localhost, block persistent connections, or disable user authentication.
Incorrect
When require_secure_transport is enabled, MySQL rejects all client connections that are not using TLS/SSL encryption. This ensures that sensitive data such as credentials and queries are transmitted securely. The setting does not limit connections to localhost, block persistent connections, or disable user authentication.
Unattempted
When require_secure_transport is enabled, MySQL rejects all client connections that are not using TLS/SSL encryption. This ensures that sensitive data such as credentials and queries are transmitted securely. The setting does not limit connections to localhost, block persistent connections, or disable user authentication.
Question 56 of 60
56. Question
Which MySQL option file directive controls the log file size limit for the InnoDB storage engine?
Correct
The innodb_log_file_size option controls the maximum size of each log file for InnoDB. It is placed under the [mysqld] section, not under logging or other options.
Incorrect
The innodb_log_file_size option controls the maximum size of each log file for InnoDB. It is placed under the [mysqld] section, not under logging or other options.
Unattempted
The innodb_log_file_size option controls the maximum size of each log file for InnoDB. It is placed under the [mysqld] section, not under logging or other options.
Question 57 of 60
57. Question
Which audit policy setting allows MySQL to ignore certain log events?
Correct
The IGNORE rule prevents specific SQL statements or actions from being logged in the audit log. Other options do not exist in MySQL 8.0.
Incorrect
The IGNORE rule prevents specific SQL statements or actions from being logged in the audit log. Other options do not exist in MySQL 8.0.
Unattempted
The IGNORE rule prevents specific SQL statements or actions from being logged in the audit log. Other options do not exist in MySQL 8.0.
Question 58 of 60
58. Question
Which statement best describes the function of GTID-based replication in MySQL 8.0?
Correct
Global Transaction Identifiers (GTIDs) provide a unique identifier for every transaction executed on a MySQL server, simplifying replication management. GTID-based replication ensures that transactions are not applied multiple times and allows for easier failover without complex binlog position tracking. It is fully compatible with InnoDB, which supports transactions. MyISAM does not support GTID-based replication because it lacks transactional consistency.
Incorrect
Global Transaction Identifiers (GTIDs) provide a unique identifier for every transaction executed on a MySQL server, simplifying replication management. GTID-based replication ensures that transactions are not applied multiple times and allows for easier failover without complex binlog position tracking. It is fully compatible with InnoDB, which supports transactions. MyISAM does not support GTID-based replication because it lacks transactional consistency.
Unattempted
Global Transaction Identifiers (GTIDs) provide a unique identifier for every transaction executed on a MySQL server, simplifying replication management. GTID-based replication ensures that transactions are not applied multiple times and allows for easier failover without complex binlog position tracking. It is fully compatible with InnoDB, which supports transactions. MyISAM does not support GTID-based replication because it lacks transactional consistency.
Question 59 of 60
59. Question
Which file stores MySQLÂ’s default system variable values?
Correct
The default system variables are stored in /etc/mysql/mysql-global.cnf, defining server-wide configurations. The other options reference incorrect or non-existent configuration files.
Incorrect
The default system variables are stored in /etc/mysql/mysql-global.cnf, defining server-wide configurations. The other options reference incorrect or non-existent configuration files.
Unattempted
The default system variables are stored in /etc/mysql/mysql-global.cnf, defining server-wide configurations. The other options reference incorrect or non-existent configuration files.
Question 60 of 60
60. Question
Which metric indicates how often an index is used relative to table scans?
Correct
Handler_read_rnd_next measures the number of sequential row reads, which indicates full table scans rather than indexed searches. Innodb_index_stats_scan does not exist in MySQL. Performance_schema_events tracks query execution, but not index scans. Index_merge_cost_factor is a cost model parameter, not a statistic.
Incorrect
Handler_read_rnd_next measures the number of sequential row reads, which indicates full table scans rather than indexed searches. Innodb_index_stats_scan does not exist in MySQL. Performance_schema_events tracks query execution, but not index scans. Index_merge_cost_factor is a cost model parameter, not a statistic.
Unattempted
Handler_read_rnd_next measures the number of sequential row reads, which indicates full table scans rather than indexed searches. Innodb_index_stats_scan does not exist in MySQL. Performance_schema_events tracks query execution, but not index scans. Index_merge_cost_factor is a cost model parameter, not a statistic.
X
Use Page numbers below to navigate to other practice tests