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 2 "
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
Which MySQL isolation level prevents a transaction from reading uncommitted data but allows phantom reads?
Correct
The Repeatable Read level prevents dirty reads but allows phantom reads, which means another transaction can insert new rows before a query is re-executed. Read Uncommitted allows dirty reads, Serializable blocks phantoms, and Read Committed allows non-repeatable reads.
Incorrect
The Repeatable Read level prevents dirty reads but allows phantom reads, which means another transaction can insert new rows before a query is re-executed. Read Uncommitted allows dirty reads, Serializable blocks phantoms, and Read Committed allows non-repeatable reads.
Unattempted
The Repeatable Read level prevents dirty reads but allows phantom reads, which means another transaction can insert new rows before a query is re-executed. Read Uncommitted allows dirty reads, Serializable blocks phantoms, and Read Committed allows non-repeatable reads.
Question 2 of 60
2. Question
What happens if MySQL 8.0 is configured to use an unavailable keyring plugin for encryption?
Correct
If the configured keyring plugin is unavailable, encrypted tables will remain unreadable since the encryption keys cannot be retrieved. MySQL does not have a fallback encryption mechanism or temporary session-based keys for tablespaces.
Incorrect
If the configured keyring plugin is unavailable, encrypted tables will remain unreadable since the encryption keys cannot be retrieved. MySQL does not have a fallback encryption mechanism or temporary session-based keys for tablespaces.
Unattempted
If the configured keyring plugin is unavailable, encrypted tables will remain unreadable since the encryption keys cannot be retrieved. MySQL does not have a fallback encryption mechanism or temporary session-based keys for tablespaces.
Question 3 of 60
3. Question
Which MySQL command modifies an existing user‘s authentication plug-in?
Correct
To change a userÂ’s authentication plug-in, use ALTER USER ‘user‘@‘host‘ IDENTIFIED WITH plugin. Using ALTER USER … IDENTIFIED BY changes the password but not the authentication plug-in. ALTER USER … USING is invalid syntax. Directly modifying mysql.user is not recommended, as changes do not apply until a restart.
Incorrect
To change a userÂ’s authentication plug-in, use ALTER USER ‘user‘@‘host‘ IDENTIFIED WITH plugin. Using ALTER USER … IDENTIFIED BY changes the password but not the authentication plug-in. ALTER USER … USING is invalid syntax. Directly modifying mysql.user is not recommended, as changes do not apply until a restart.
Unattempted
To change a userÂ’s authentication plug-in, use ALTER USER ‘user‘@‘host‘ IDENTIFIED WITH plugin. Using ALTER USER … IDENTIFIED BY changes the password but not the authentication plug-in. ALTER USER … USING is invalid syntax. Directly modifying mysql.user is not recommended, as changes do not apply until a restart.
Question 4 of 60
4. Question
Which MySQL 8.0 utility is used to perform logical backups?
Correct
mysqldump is the primary MySQL tool for performing logical backups by generating SQL statements that can recreate the database. mysqlpump is a parallelized version of mysqldump for faster exports. mysqlbackup (part of MySQL Enterprise) and xtrabackup (by Percona) perform physical backups rather than logical ones.
Incorrect
mysqldump is the primary MySQL tool for performing logical backups by generating SQL statements that can recreate the database. mysqlpump is a parallelized version of mysqldump for faster exports. mysqlbackup (part of MySQL Enterprise) and xtrabackup (by Percona) perform physical backups rather than logical ones.
Unattempted
mysqldump is the primary MySQL tool for performing logical backups by generating SQL statements that can recreate the database. mysqlpump is a parallelized version of mysqldump for faster exports. mysqlbackup (part of MySQL Enterprise) and xtrabackup (by Percona) perform physical backups rather than logical ones.
Question 5 of 60
5. Question
Which condition must be met before taking a raw file backup?
Correct
To ensure data consistency, MySQL must be stopped before taking a raw file backup, preventing corrupt or incomplete copies. Logging is unnecessary. Binary logs do not affect raw backups directly, and system tables are included in the data directory.
Incorrect
To ensure data consistency, MySQL must be stopped before taking a raw file backup, preventing corrupt or incomplete copies. Logging is unnecessary. Binary logs do not affect raw backups directly, and system tables are included in the data directory.
Unattempted
To ensure data consistency, MySQL must be stopped before taking a raw file backup, preventing corrupt or incomplete copies. Logging is unnecessary. Binary logs do not affect raw backups directly, and system tables are included in the data directory.
Question 6 of 60
6. Question
What is a disadvantage of using multi-primary group replication for scalability?
Correct
In multi-primary group replication, multiple nodes can write simultaneously, but conflicts can occur if the same data is modified in multiple locations, requiring automatic conflict resolution strategies.
Incorrect
In multi-primary group replication, multiple nodes can write simultaneously, but conflicts can occur if the same data is modified in multiple locations, requiring automatic conflict resolution strategies.
Unattempted
In multi-primary group replication, multiple nodes can write simultaneously, but conflicts can occur if the same data is modified in multiple locations, requiring automatic conflict resolution strategies.
Question 7 of 60
7. Question
Which audit log rotation setting controls when MySQL creates a new log file?
Correct
The audit_log_rotate_on_size variable controls when MySQL rotates the audit log file based on size limits. Other options do not exist in MySQL 8.0.
Incorrect
The audit_log_rotate_on_size variable controls when MySQL rotates the audit log file based on size limits. Other options do not exist in MySQL 8.0.
Unattempted
The audit_log_rotate_on_size variable controls when MySQL rotates the audit log file based on size limits. Other options do not exist in MySQL 8.0.
Question 8 of 60
8. Question
What is the purpose of the InnoDB Change Buffer in MySQL 8.0?
Correct
The InnoDB Change Buffer caches modifications to secondary indexes (INSERT, UPDATE, DELETE) before writing them to disk. This improves performance by batching index changes rather than updating the indexes immediately. It does not store execution plans, dirty pages, or undo logs.
Incorrect
The InnoDB Change Buffer caches modifications to secondary indexes (INSERT, UPDATE, DELETE) before writing them to disk. This improves performance by batching index changes rather than updating the indexes immediately. It does not store execution plans, dirty pages, or undo logs.
Unattempted
The InnoDB Change Buffer caches modifications to secondary indexes (INSERT, UPDATE, DELETE) before writing them to disk. This improves performance by batching index changes rather than updating the indexes immediately. It does not store execution plans, dirty pages, or undo logs.
Question 9 of 60
9. Question
Which MySQL Enterprise Monitor component stores collected monitoring data?
Correct
The Enterprise Monitor Repository is responsible for storing collected monitoring data, enabling historical performance analysis. Other options relate to event logging, performance schema tracking, and audit logging, but they do not store monitoring metrics.
Incorrect
The Enterprise Monitor Repository is responsible for storing collected monitoring data, enabling historical performance analysis. Other options relate to event logging, performance schema tracking, and audit logging, but they do not store monitoring metrics.
Unattempted
The Enterprise Monitor Repository is responsible for storing collected monitoring data, enabling historical performance analysis. Other options relate to event logging, performance schema tracking, and audit logging, but they do not store monitoring metrics.
Question 10 of 60
10. Question
Which of the following MySQL user account configurations poses the highest security risk?
Correct
A user account with no password and access from any host (‘%‘) allows unauthorized access, making it a severe security vulnerability. Using localhost with a strong password is secure, requiring SSL on a private network is safer, and auth_pam allows integration with external authentication, reducing risk.
Incorrect
A user account with no password and access from any host (‘%‘) allows unauthorized access, making it a severe security vulnerability. Using localhost with a strong password is secure, requiring SSL on a private network is safer, and auth_pam allows integration with external authentication, reducing risk.
Unattempted
A user account with no password and access from any host (‘%‘) allows unauthorized access, making it a severe security vulnerability. Using localhost with a strong password is secure, requiring SSL on a private network is safer, and auth_pam allows integration with external authentication, reducing risk.
Question 11 of 60
11. Question
Which change must be manually configured after upgrading to MySQL 8.0?
Correct
MySQL 8.0 changed its default authentication plugin to caching_sha2_password, requiring manual client updates. Other settings do not require mandatory changes.
Incorrect
MySQL 8.0 changed its default authentication plugin to caching_sha2_password, requiring manual client updates. Other settings do not require mandatory changes.
Unattempted
MySQL 8.0 changed its default authentication plugin to caching_sha2_password, requiring manual client updates. Other settings do not require mandatory changes.
Question 12 of 60
12. Question
Which MySQL component is responsible for enforcing audit logging policies?
Correct
The audit_log plugin is responsible for capturing and enforcing audit logging policies in MySQL. The log_output setting controls log destinations but is unrelated to auditing. The binlog_format option determines binary logging, while the performance_schema does not store audit logs.
Incorrect
The audit_log plugin is responsible for capturing and enforcing audit logging policies in MySQL. The log_output setting controls log destinations but is unrelated to auditing. The binlog_format option determines binary logging, while the performance_schema does not store audit logs.
Unattempted
The audit_log plugin is responsible for capturing and enforcing audit logging policies in MySQL. The log_output setting controls log destinations but is unrelated to auditing. The binlog_format option determines binary logging, while the performance_schema does not store audit logs.
Question 13 of 60
13. Question
What is a primary function of Group Replication in MySQL 8.0?
Correct
Group Replication provides synchronous replication ensuring strong consistency across all nodes. It does not use asynchronous replication, load balance queries, or store data in memory (though InnoDB may cache data).
Incorrect
Group Replication provides synchronous replication ensuring strong consistency across all nodes. It does not use asynchronous replication, load balance queries, or store data in memory (though InnoDB may cache data).
Unattempted
Group Replication provides synchronous replication ensuring strong consistency across all nodes. It does not use asynchronous replication, load balance queries, or store data in memory (though InnoDB may cache data).
Question 14 of 60
14. Question
Which system variable controls whether MySQL allows passwordless authentication for root on Unix-based systems?
Correct
The skip-grant-tables option disables MySQLÂ’s authentication system, allowing root access without a password. This is useful for emergency recovery but should not be enabled in a production system. authentication_policy manages password complexity rules, default_authentication_plugin sets the default authentication method, and use_native_passwords is not a valid MySQL variable.
Incorrect
The skip-grant-tables option disables MySQLÂ’s authentication system, allowing root access without a password. This is useful for emergency recovery but should not be enabled in a production system. authentication_policy manages password complexity rules, default_authentication_plugin sets the default authentication method, and use_native_passwords is not a valid MySQL variable.
Unattempted
The skip-grant-tables option disables MySQLÂ’s authentication system, allowing root access without a password. This is useful for emergency recovery but should not be enabled in a production system. authentication_policy manages password complexity rules, default_authentication_plugin sets the default authentication method, and use_native_passwords is not a valid MySQL variable.
Question 15 of 60
15. Question
Which factor makes physical backups better than logical backups in MySQL 8.0?
Correct
A Physical Backup is significantly faster because it copies raw files, whereas a Logical Backup requires SQL parsing during restore. Logical backups are more portable and support partial restores, while physical backups require system-level privileges.
Incorrect
A Physical Backup is significantly faster because it copies raw files, whereas a Logical Backup requires SQL parsing during restore. Logical backups are more portable and support partial restores, while physical backups require system-level privileges.
Unattempted
A Physical Backup is significantly faster because it copies raw files, whereas a Logical Backup requires SQL parsing during restore. Logical backups are more portable and support partial restores, while physical backups require system-level privileges.
Question 16 of 60
16. Question
You are configuring MySQL 8.0 replication. You want to ensure that transactions are committed in the same order on the replica as they were on the source. Which replication method should you use?
Correct
Row-based replication (RBR) ensures that transactions are committed in the exact order they were executed on the source server by replicating the actual row changes instead of the SQL statements. This prevents issues like non-deterministic behavior that can occur with statement-based replication (SBR), where certain functions (such as UUID or RAND) might produce different results on the replica. Mixed replication switches between SBR and RBR but does not guarantee strict ordering in all cases. Asynchronous replication does not affect the replication method itself but determines how updates are delivered from the source to the replica.
Incorrect
Row-based replication (RBR) ensures that transactions are committed in the exact order they were executed on the source server by replicating the actual row changes instead of the SQL statements. This prevents issues like non-deterministic behavior that can occur with statement-based replication (SBR), where certain functions (such as UUID or RAND) might produce different results on the replica. Mixed replication switches between SBR and RBR but does not guarantee strict ordering in all cases. Asynchronous replication does not affect the replication method itself but determines how updates are delivered from the source to the replica.
Unattempted
Row-based replication (RBR) ensures that transactions are committed in the exact order they were executed on the source server by replicating the actual row changes instead of the SQL statements. This prevents issues like non-deterministic behavior that can occur with statement-based replication (SBR), where certain functions (such as UUID or RAND) might produce different results on the replica. Mixed replication switches between SBR and RBR but does not guarantee strict ordering in all cases. Asynchronous replication does not affect the replication method itself but determines how updates are delivered from the source to the replica.
Question 17 of 60
17. Question
What is the purpose of the skip_name_resolve option in MySQL 8.0?
Correct
When skip_name_resolve is enabled, MySQL does not resolve hostnames to IP addresses, and all client authentication must use IP-based user accounts rather than hostnames. This improves connection performance by avoiding DNS lookups. It does not enforce encryption or modify query execution speed.
Incorrect
When skip_name_resolve is enabled, MySQL does not resolve hostnames to IP addresses, and all client authentication must use IP-based user accounts rather than hostnames. This improves connection performance by avoiding DNS lookups. It does not enforce encryption or modify query execution speed.
Unattempted
When skip_name_resolve is enabled, MySQL does not resolve hostnames to IP addresses, and all client authentication must use IP-based user accounts rather than hostnames. This improves connection performance by avoiding DNS lookups. It does not enforce encryption or modify query execution speed.
Question 18 of 60
18. Question
Which mysqldump option is recommended to improve backup performance for large tables?
Correct
The –quick-buffer-mode option tells mysqldump to fetch rows one by one, reducing memory usage and improving performance on large tables. –stream-dump-option is not valid. –skip-lock-backups does not exist, and –no-create-database omits database creation statements.
Incorrect
The –quick-buffer-mode option tells mysqldump to fetch rows one by one, reducing memory usage and improving performance on large tables. –stream-dump-option is not valid. –skip-lock-backups does not exist, and –no-create-database omits database creation statements.
Unattempted
The –quick-buffer-mode option tells mysqldump to fetch rows one by one, reducing memory usage and improving performance on large tables. –stream-dump-option is not valid. –skip-lock-backups does not exist, and –no-create-database omits database creation statements.
Question 19 of 60
19. Question
Which command can restart MySQL on Linux without stopping it first?
Correct
To restart MySQL without stopping it first, use systemctl restart mysqlserver. The other options contain incorrect systemd syntax or reference non-existent commands.
Incorrect
To restart MySQL without stopping it first, use systemctl restart mysqlserver. The other options contain incorrect systemd syntax or reference non-existent commands.
Unattempted
To restart MySQL without stopping it first, use systemctl restart mysqlserver. The other options contain incorrect systemd syntax or reference non-existent commands.
Question 20 of 60
20. Question
What does the Retrieved_Gtid_Set value in SHOW REPLICA STATUS indicate?
Correct
The Retrieved_Gtid_Set value shows transactions fetched by the I/O thread but not yet applied by the SQL thread. The executed GTIDs are in a different status variable, and GTIDs in relay logs or binary logs are not exclusive to unexecuted transactions.
Incorrect
The Retrieved_Gtid_Set value shows transactions fetched by the I/O thread but not yet applied by the SQL thread. The executed GTIDs are in a different status variable, and GTIDs in relay logs or binary logs are not exclusive to unexecuted transactions.
Unattempted
The Retrieved_Gtid_Set value shows transactions fetched by the I/O thread but not yet applied by the SQL thread. The executed GTIDs are in a different status variable, and GTIDs in relay logs or binary logs are not exclusive to unexecuted transactions.
Question 21 of 60
21. Question
Which MySQL table contains metadata for stored procedures and functions?
Correct
The mysql.routines table stores metadata for stored procedures and functions inside the Data Dictionary. The other options do not exist or serve different purposes.
Incorrect
The mysql.routines table stores metadata for stored procedures and functions inside the Data Dictionary. The other options do not exist or serve different purposes.
Unattempted
The mysql.routines table stores metadata for stored procedures and functions inside the Data Dictionary. The other options do not exist or serve different purposes.
Question 22 of 60
22. Question
Which system variable enables MySQLÂ’s error log to be written to a file?
Correct
The log_error variable determines where MySQL writes its error log, crucial for troubleshooting. The binary log is controlled by log_bin, while log_output manages log destinations but not the error log itself.
Incorrect
The log_error variable determines where MySQL writes its error log, crucial for troubleshooting. The binary log is controlled by log_bin, while log_output manages log destinations but not the error log itself.
Unattempted
The log_error variable determines where MySQL writes its error log, crucial for troubleshooting. The binary log is controlled by log_bin, while log_output manages log destinations but not the error log itself.
Question 23 of 60
23. Question
What is the primary function of the MySQL Performance Schema?
Correct
The MySQL Performance Schema is a diagnostic tool that collects low-level performance data, including query execution times, wait events, and resource usage. By analyzing this data, administrators can identify bottlenecks and optimize database performance. Unlike regular tables, Performance Schema tables do not store historical query results but instead provide real-time monitoring. Indexing improves query speed but is unrelated to Performance Schema, and user privilege management is handled by the mysql system database.
Incorrect
The MySQL Performance Schema is a diagnostic tool that collects low-level performance data, including query execution times, wait events, and resource usage. By analyzing this data, administrators can identify bottlenecks and optimize database performance. Unlike regular tables, Performance Schema tables do not store historical query results but instead provide real-time monitoring. Indexing improves query speed but is unrelated to Performance Schema, and user privilege management is handled by the mysql system database.
Unattempted
The MySQL Performance Schema is a diagnostic tool that collects low-level performance data, including query execution times, wait events, and resource usage. By analyzing this data, administrators can identify bottlenecks and optimize database performance. Unlike regular tables, Performance Schema tables do not store historical query results but instead provide real-time monitoring. Indexing improves query speed but is unrelated to Performance Schema, and user privilege management is handled by the mysql system database.
Question 24 of 60
24. Question
Which approach is recommended for restoring raw file backups on a different server?
Correct
To restore raw file backups on another server, the MySQL version must match, files must be copied correctly, and the server must be restarted. Reconfiguring indexes or importing schema is unnecessary, as raw backups copy full data files.
Incorrect
To restore raw file backups on another server, the MySQL version must match, files must be copied correctly, and the server must be restarted. Reconfiguring indexes or importing schema is unnecessary, as raw backups copy full data files.
Unattempted
To restore raw file backups on another server, the MySQL version must match, files must be copied correctly, and the server must be restarted. Reconfiguring indexes or importing schema is unnecessary, as raw backups copy full data files.
Question 25 of 60
25. Question
Which MySQL command removes a role from a user without deleting the role itself?
Correct
To remove a role from a user, use REVOKE ‘role_name‘ FROM ‘user‘@‘host‘. REMOVE and DELETE ROLE are not valid MySQL commands, and DROP ROLE deletes the role entirely instead of just removing it from the user.
Incorrect
To remove a role from a user, use REVOKE ‘role_name‘ FROM ‘user‘@‘host‘. REMOVE and DELETE ROLE are not valid MySQL commands, and DROP ROLE deletes the role entirely instead of just removing it from the user.
Unattempted
To remove a role from a user, use REVOKE ‘role_name‘ FROM ‘user‘@‘host‘. REMOVE and DELETE ROLE are not valid MySQL commands, and DROP ROLE deletes the role entirely instead of just removing it from the user.
Question 26 of 60
26. Question
Which MySQL setting determines how Group Replication handles failed transactions?
Correct
group_replication_exit_state_action controls what happens when a node fails to apply transactions, allowing options like ABORT_SERVER or READ_ONLY. Replay buffers, checkpoints, and conflict handlers are not responsible for transaction failures.
Incorrect
group_replication_exit_state_action controls what happens when a node fails to apply transactions, allowing options like ABORT_SERVER or READ_ONLY. Replay buffers, checkpoints, and conflict handlers are not responsible for transaction failures.
Unattempted
group_replication_exit_state_action controls what happens when a node fails to apply transactions, allowing options like ABORT_SERVER or READ_ONLY. Replay buffers, checkpoints, and conflict handlers are not responsible for transaction failures.
Question 27 of 60
27. Question
What is a key advantage of using MySQL replication for scalability in read-intensive workloads?
Correct
By redirecting read queries to replicas, replication offloads workload from the primary server, improving scalability for read-heavy applications. However, replicas do not handle writes unless additional mechanisms like multi-primary replication are used.
Incorrect
By redirecting read queries to replicas, replication offloads workload from the primary server, improving scalability for read-heavy applications. However, replicas do not handle writes unless additional mechanisms like multi-primary replication are used.
Unattempted
By redirecting read queries to replicas, replication offloads workload from the primary server, improving scalability for read-heavy applications. However, replicas do not handle writes unless additional mechanisms like multi-primary replication are used.
Question 28 of 60
28. Question
Which system variable defines the retention period for MySQL binary logs?
Correct
binlog_expire_logs_seconds controls how long MySQL retains binary logs before automatically deleting them. innodb_log_file_size_value defines InnoDB log file size, slow_query_log_threshold sets logging limits, and sync_binlog_auto_commit does not control retention.
Incorrect
binlog_expire_logs_seconds controls how long MySQL retains binary logs before automatically deleting them. innodb_log_file_size_value defines InnoDB log file size, slow_query_log_threshold sets logging limits, and sync_binlog_auto_commit does not control retention.
Unattempted
binlog_expire_logs_seconds controls how long MySQL retains binary logs before automatically deleting them. innodb_log_file_size_value defines InnoDB log file size, slow_query_log_threshold sets logging limits, and sync_binlog_auto_commit does not control retention.
Question 29 of 60
29. Question
Which directory stores MySQL‘s default database files after installation on Linux?
Correct
MySQL stores its data files in /var/lib/mysql_database by default on Linux systems. The other options are incorrect directory paths that do not exist in MySQL installations.
Incorrect
MySQL stores its data files in /var/lib/mysql_database by default on Linux systems. The other options are incorrect directory paths that do not exist in MySQL installations.
Unattempted
MySQL stores its data files in /var/lib/mysql_database by default on Linux systems. The other options are incorrect directory paths that do not exist in MySQL installations.
Question 30 of 60
30. Question
Which folder contains the default InnoDB system tablespace files?
Correct
The default location for InnoDB system tablespace files is /var/mysql/innodb-systemdata/, unless otherwise configured. The other options refer to incorrect or non-existent directories.
Incorrect
The default location for InnoDB system tablespace files is /var/mysql/innodb-systemdata/, unless otherwise configured. The other options refer to incorrect or non-existent directories.
Unattempted
The default location for InnoDB system tablespace files is /var/mysql/innodb-systemdata/, unless otherwise configured. The other options refer to incorrect or non-existent directories.
Question 31 of 60
31. Question
Which mechanism in MySQL 8.0 ensures data durability by writing logs before flushing pages to disk?
Correct
The Redo Log Write-Ahead Mechanism guarantees data durability by ensuring changes are first written to logs before being flushed to disk. Full Page Writes prevent corruption, Buffer Pool Flush handles page eviction, and Index Merging optimizes indexes.
Incorrect
The Redo Log Write-Ahead Mechanism guarantees data durability by ensuring changes are first written to logs before being flushed to disk. Full Page Writes prevent corruption, Buffer Pool Flush handles page eviction, and Index Merging optimizes indexes.
Unattempted
The Redo Log Write-Ahead Mechanism guarantees data durability by ensuring changes are first written to logs before being flushed to disk. Full Page Writes prevent corruption, Buffer Pool Flush handles page eviction, and Index Merging optimizes indexes.
Question 32 of 60
32. Question
Which MySQL utility is used to export a database as a SQL file?
Correct
The mysqldump –database-dump utility exports MySQL databases as SQL files for backup or migration. The other options reference non-existent MySQL utilities.
Incorrect
The mysqldump –database-dump utility exports MySQL databases as SQL files for backup or migration. The other options reference non-existent MySQL utilities.
Unattempted
The mysqldump –database-dump utility exports MySQL databases as SQL files for backup or migration. The other options reference non-existent MySQL utilities.
Question 33 of 60
33. Question
Which binary log format ensures full row-based replication for backups?
Correct
The ROW format logs exact row changes, ensuring consistent replication. STATEMENT-based logs may cause non-deterministic issues. MIXED tries to combine both, but row-based logs are preferred for backups. COMPRESSED is not a valid format.
Incorrect
The ROW format logs exact row changes, ensuring consistent replication. STATEMENT-based logs may cause non-deterministic issues. MIXED tries to combine both, but row-based logs are preferred for backups. COMPRESSED is not a valid format.
Unattempted
The ROW format logs exact row changes, ensuring consistent replication. STATEMENT-based logs may cause non-deterministic issues. MIXED tries to combine both, but row-based logs are preferred for backups. COMPRESSED is not a valid format.
Question 34 of 60
34. Question
Which of the following commands is used to establish an encrypted connection to a MySQL server using SSL/TLS?
Correct
The –ssl-mode=REQUIRED option ensures that MySQL establishes a secure connection using SSL/TLS. If the server does not support encryption, the connection fails. The other options are not valid MySQL connection parameters for enforcing SSL.
Incorrect
The –ssl-mode=REQUIRED option ensures that MySQL establishes a secure connection using SSL/TLS. If the server does not support encryption, the connection fails. The other options are not valid MySQL connection parameters for enforcing SSL.
Unattempted
The –ssl-mode=REQUIRED option ensures that MySQL establishes a secure connection using SSL/TLS. If the server does not support encryption, the connection fails. The other options are not valid MySQL connection parameters for enforcing SSL.
Question 35 of 60
35. Question
Which risk exists when upgrading from MySQL 5.7 to 8.0?
Correct
MySQL 8.0 removes old authentication plugins, requiring client updates. Redo logs, binary log truncation, or forced engine conversion are not upgrade risks.
Incorrect
MySQL 8.0 removes old authentication plugins, requiring client updates. Redo logs, binary log truncation, or forced engine conversion are not upgrade risks.
Unattempted
MySQL 8.0 removes old authentication plugins, requiring client updates. Redo logs, binary log truncation, or forced engine conversion are not upgrade risks.
Question 36 of 60
36. Question
What is the recommended approach to starting multiple MySQL instances on a single host using systemd?
Correct
The best practice for managing multiple MySQL instances with systemd is to create separate unit files for each instance. Each unit file specifies unique configurations such as data directory, port, and socket. Modifying my.cnf alone is insufficient because it typically defines a single instance. Running instances with different user accounts is unnecessary, and starting instances manually lacks automation and reliability.
Incorrect
The best practice for managing multiple MySQL instances with systemd is to create separate unit files for each instance. Each unit file specifies unique configurations such as data directory, port, and socket. Modifying my.cnf alone is insufficient because it typically defines a single instance. Running instances with different user accounts is unnecessary, and starting instances manually lacks automation and reliability.
Unattempted
The best practice for managing multiple MySQL instances with systemd is to create separate unit files for each instance. Each unit file specifies unique configurations such as data directory, port, and socket. Modifying my.cnf alone is insufficient because it typically defines a single instance. Running instances with different user accounts is unnecessary, and starting instances manually lacks automation and reliability.
Question 37 of 60
37. Question
Which MySQL storage engine benefits the most from raw file backups?
Correct
InnoDB benefits the most from raw file backups because it supports transaction consistency and can handle crash recovery. MEMORY tables are lost on restart. ARCHIVE and CSV do not benefit from raw file backups, as they do not use standard data files.
Incorrect
InnoDB benefits the most from raw file backups because it supports transaction consistency and can handle crash recovery. MEMORY tables are lost on restart. ARCHIVE and CSV do not benefit from raw file backups, as they do not use standard data files.
Unattempted
InnoDB benefits the most from raw file backups because it supports transaction consistency and can handle crash recovery. MEMORY tables are lost on restart. ARCHIVE and CSV do not benefit from raw file backups, as they do not use standard data files.
Question 38 of 60
38. Question
Which system variable must be set to enforce SSL/TLS encryption for all client connections?
Correct
Setting require_secure_transport=ON forces all MySQL client connections to use SSL/TLS encryption, ensuring data confidentiality. The other options do not exist in MySQL 8.0.
Incorrect
Setting require_secure_transport=ON forces all MySQL client connections to use SSL/TLS encryption, ensuring data confidentiality. The other options do not exist in MySQL 8.0.
Unattempted
Setting require_secure_transport=ON forces all MySQL client connections to use SSL/TLS encryption, ensuring data confidentiality. The other options do not exist in MySQL 8.0.
Question 39 of 60
39. Question
How can an administrator reset MySQL Enterprise Firewall rules for a user?
Correct
The sp_reload_firewall_rules procedure is used to reset MySQL Enterprise Firewall rules for a specific user. The other commands are either invalid or do not exist in MySQL.
Incorrect
The sp_reload_firewall_rules procedure is used to reset MySQL Enterprise Firewall rules for a specific user. The other commands are either invalid or do not exist in MySQL.
Unattempted
The sp_reload_firewall_rules procedure is used to reset MySQL Enterprise Firewall rules for a specific user. The other commands are either invalid or do not exist in MySQL.
Question 40 of 60
40. Question
Which section should be configured in the option file to adjust MySQL‘s innodb_buffer_pool_size?
Correct
The innodb_buffer_pool_size is configured in the [mysqld] section, which applies to server-level settings. Other sections, such as innodb or client, are not used for this setting.
Incorrect
The innodb_buffer_pool_size is configured in the [mysqld] section, which applies to server-level settings. Other sections, such as innodb or client, are not used for this setting.
Unattempted
The innodb_buffer_pool_size is configured in the [mysqld] section, which applies to server-level settings. Other sections, such as innodb or client, are not used for this setting.
Question 41 of 60
41. Question
Which statement about MySQL Router in an InnoDB Cluster is correct?
Correct
MySQL Router transparently directs traffic to healthy nodes, ensuring high availability. It does not synchronize transactions, validate consistency, or manage conflicts, which are handled by Group Replication mechanisms.
Incorrect
MySQL Router transparently directs traffic to healthy nodes, ensuring high availability. It does not synchronize transactions, validate consistency, or manage conflicts, which are handled by Group Replication mechanisms.
Unattempted
MySQL Router transparently directs traffic to healthy nodes, ensuring high availability. It does not synchronize transactions, validate consistency, or manage conflicts, which are handled by Group Replication mechanisms.
Question 42 of 60
42. Question
Which log file is used by MySQL to track replica execution status?
Correct
The relay log temporarily stores replicated transactions from the primary before execution on the replica, ensuring data consistency while tracking replica execution progress.
Incorrect
The relay log temporarily stores replicated transactions from the primary before execution on the replica, ensuring data consistency while tracking replica execution progress.
Unattempted
The relay log temporarily stores replicated transactions from the primary before execution on the replica, ensuring data consistency while tracking replica execution progress.
Question 43 of 60
43. Question
Which MySQL index type is most effective for range queries in large tables?
Correct
B-tree indexes are ideal for range queries because they allow efficient traversal over ranges of values. Hash, spatial, and full-text indexes are optimized for different types of queries.
Incorrect
B-tree indexes are ideal for range queries because they allow efficient traversal over ranges of values. Hash, spatial, and full-text indexes are optimized for different types of queries.
Unattempted
B-tree indexes are ideal for range queries because they allow efficient traversal over ranges of values. Hash, spatial, and full-text indexes are optimized for different types of queries.
Question 44 of 60
44. Question
Which Windows command starts the MySQL service manually?
Correct
On Windows, the MySQL service is started with net start mysqlserver. The other options contain incorrect MySQL service names or do not exist.
Incorrect
On Windows, the MySQL service is started with net start mysqlserver. The other options contain incorrect MySQL service names or do not exist.
Unattempted
On Windows, the MySQL service is started with net start mysqlserver. The other options contain incorrect MySQL service names or do not exist.
Question 45 of 60
45. Question
Which command should be executed before taking a full backup to capture all binary logs?
Correct
Running FLUSH LOGS before a backup creates a new binary log file, ensuring a clear starting point for recovery. RESET MASTER deletes all logs, which is dangerous. sync_binlog improves durability but does not force log rotation. ANALYZE TABLE is unrelated.
Incorrect
Running FLUSH LOGS before a backup creates a new binary log file, ensuring a clear starting point for recovery. RESET MASTER deletes all logs, which is dangerous. sync_binlog improves durability but does not force log rotation. ANALYZE TABLE is unrelated.
Unattempted
Running FLUSH LOGS before a backup creates a new binary log file, ensuring a clear starting point for recovery. RESET MASTER deletes all logs, which is dangerous. sync_binlog improves durability but does not force log rotation. ANALYZE TABLE is unrelated.
Question 46 of 60
46. Question
Which MySQL log file primarily records changes to database tables and is crucial for replication?
Correct
The binary log records changes to tables, ensuring replication and point-in-time recovery. The error log logs startup issues. The general log captures all queries, while the slow query log tracks long-running queries.
Incorrect
The binary log records changes to tables, ensuring replication and point-in-time recovery. The error log logs startup issues. The general log captures all queries, while the slow query log tracks long-running queries.
Unattempted
The binary log records changes to tables, ensuring replication and point-in-time recovery. The error log logs startup issues. The general log captures all queries, while the slow query log tracks long-running queries.
Question 47 of 60
47. Question
Which MySQL tool is used to initialize a separate data directory for a new MySQL instance?
Correct
To create a new MySQL instance, the mysqld –initialize command sets up a fresh data directory with system tables. mysqladmin is used for administrative tasks, mysql_secure_installation configures security settings, and mysqld_safe is a wrapper script for starting MySQL but does not initialize a data directory.
Incorrect
To create a new MySQL instance, the mysqld –initialize command sets up a fresh data directory with system tables. mysqladmin is used for administrative tasks, mysql_secure_installation configures security settings, and mysqld_safe is a wrapper script for starting MySQL but does not initialize a data directory.
Unattempted
To create a new MySQL instance, the mysqld –initialize command sets up a fresh data directory with system tables. mysqladmin is used for administrative tasks, mysql_secure_installation configures security settings, and mysqld_safe is a wrapper script for starting MySQL but does not initialize a data directory.
Question 48 of 60
48. Question
Which MySQL authentication setting enforces password expiration for all users?
Correct
The default_password_lifetime setting enforces automatic password expiration, requiring users to change their passwords periodically. The other options do not exist in MySQL 8.0.
Incorrect
The default_password_lifetime setting enforces automatic password expiration, requiring users to change their passwords periodically. The other options do not exist in MySQL 8.0.
Unattempted
The default_password_lifetime setting enforces automatic password expiration, requiring users to change their passwords periodically. The other options do not exist in MySQL 8.0.
Question 49 of 60
49. Question
Which method should be used to determine if an index is being utilized in a query?
Correct
The EXPLAIN ANALYZE command provides detailed execution plans, revealing if an index is used in a query. SHOW DATABASES lists databases, not execution plans. OPTIMIZE TABLE is used for table maintenance, not query performance. FLUSH PRIVILEGES reloads user privileges but does not relate to index usage.
Incorrect
The EXPLAIN ANALYZE command provides detailed execution plans, revealing if an index is used in a query. SHOW DATABASES lists databases, not execution plans. OPTIMIZE TABLE is used for table maintenance, not query performance. FLUSH PRIVILEGES reloads user privileges but does not relate to index usage.
Unattempted
The EXPLAIN ANALYZE command provides detailed execution plans, revealing if an index is used in a query. SHOW DATABASES lists databases, not execution plans. OPTIMIZE TABLE is used for table maintenance, not query performance. FLUSH PRIVILEGES reloads user privileges but does not relate to index usage.
Question 50 of 60
50. Question
Which MySQL system variable controls how long a user account can remain locked due to failed login attempts?
Correct
The password_lock_time system variable defines the lockout duration after multiple failed login attempts. password_expire_interval controls password expiration, account_locked_duration is incorrect syntax, and failed_login_attempts_limit does not exist in MySQL 8.0.
Incorrect
The password_lock_time system variable defines the lockout duration after multiple failed login attempts. password_expire_interval controls password expiration, account_locked_duration is incorrect syntax, and failed_login_attempts_limit does not exist in MySQL 8.0.
Unattempted
The password_lock_time system variable defines the lockout duration after multiple failed login attempts. password_expire_interval controls password expiration, account_locked_duration is incorrect syntax, and failed_login_attempts_limit does not exist in MySQL 8.0.
Question 51 of 60
51. Question
Which statement correctly describes the role of the SQL thread in MySQL replication?
Correct
The SQL thread in MySQL reads the relay log and executes transactions in the same order as recorded in the binary log. It does not coordinate replication sources, monitor network traffic, or fetch binary logs (which is the job of the I/O thread).
Incorrect
The SQL thread in MySQL reads the relay log and executes transactions in the same order as recorded in the binary log. It does not coordinate replication sources, monitor network traffic, or fetch binary logs (which is the job of the I/O thread).
Unattempted
The SQL thread in MySQL reads the relay log and executes transactions in the same order as recorded in the binary log. It does not coordinate replication sources, monitor network traffic, or fetch binary logs (which is the job of the I/O thread).
Question 52 of 60
52. Question
Which monitoring feature allows historical analysis of MySQL server activity?
Correct
The Time-Series Graphs in MySQL Enterprise Monitor provide historical insights into query execution times, CPU usage, memory utilization, and connection trends. Other options do not provide a historical view.
Incorrect
The Time-Series Graphs in MySQL Enterprise Monitor provide historical insights into query execution times, CPU usage, memory utilization, and connection trends. Other options do not provide a historical view.
Unattempted
The Time-Series Graphs in MySQL Enterprise Monitor provide historical insights into query execution times, CPU usage, memory utilization, and connection trends. Other options do not provide a historical view.
Question 53 of 60
53. Question
Which MySQL option file provides default configurations during server startup?
Correct
The my.cnf file is the primary configuration file used by MySQL on Linux systems. The other files either provide defaults or are platform-specific but are not used for startup configurations.
Incorrect
The my.cnf file is the primary configuration file used by MySQL on Linux systems. The other files either provide defaults or are platform-specific but are not used for startup configurations.
Unattempted
The my.cnf file is the primary configuration file used by MySQL on Linux systems. The other files either provide defaults or are platform-specific but are not used for startup configurations.
Question 54 of 60
54. Question
What is a primary benefit of using multi-threaded replication?
Correct
Multi-threaded replication allows replicas to apply transactions in parallel, reducing replication lag and improving performance for high-throughput workloads.
Incorrect
Multi-threaded replication allows replicas to apply transactions in parallel, reducing replication lag and improving performance for high-throughput workloads.
Unattempted
Multi-threaded replication allows replicas to apply transactions in parallel, reducing replication lag and improving performance for high-throughput workloads.
Question 55 of 60
55. Question
Which MySQL variable controls the maximum number of connection errors before a host is temporarily blocked?
Correct
The max_connect_errors variable defines the number of failed connection attempts allowed before MySQL temporarily blocks the offending IP address. This prevents brute-force attacks. To reset blocked hosts, administrators can run FLUSH HOSTS. The other options are either nonexistent or related to different security mechanisms.
Incorrect
The max_connect_errors variable defines the number of failed connection attempts allowed before MySQL temporarily blocks the offending IP address. This prevents brute-force attacks. To reset blocked hosts, administrators can run FLUSH HOSTS. The other options are either nonexistent or related to different security mechanisms.
Unattempted
The max_connect_errors variable defines the number of failed connection attempts allowed before MySQL temporarily blocks the offending IP address. This prevents brute-force attacks. To reset blocked hosts, administrators can run FLUSH HOSTS. The other options are either nonexistent or related to different security mechanisms.
Question 56 of 60
56. Question
Which factor is most important when optimizing a query with JOINs in MySQL?
Correct
Indexes on foreign key columns can significantly speed up JOINs by allowing MySQL to quickly locate matching rows. Other factors, like primary keys or disabling query cache, are less impactful.
Incorrect
Indexes on foreign key columns can significantly speed up JOINs by allowing MySQL to quickly locate matching rows. Other factors, like primary keys or disabling query cache, are less impactful.
Unattempted
Indexes on foreign key columns can significantly speed up JOINs by allowing MySQL to quickly locate matching rows. Other factors, like primary keys or disabling query cache, are less impactful.
Question 57 of 60
57. Question
Which MySQL feature allows a new instance to be quickly deployed using an existing one as a base?
Correct
The Clone Plugin enables fast and efficient cloning of an existing MySQL instance to create a new one, making it ideal for deploying multiple instances with similar configurations. Binary Logging supports replication but does not create new instances. Replication Filters control data flow in replication, and Delayed Transactions allow postponed commits but are unrelated to instance deployment.
Incorrect
The Clone Plugin enables fast and efficient cloning of an existing MySQL instance to create a new one, making it ideal for deploying multiple instances with similar configurations. Binary Logging supports replication but does not create new instances. Replication Filters control data flow in replication, and Delayed Transactions allow postponed commits but are unrelated to instance deployment.
Unattempted
The Clone Plugin enables fast and efficient cloning of an existing MySQL instance to create a new one, making it ideal for deploying multiple instances with similar configurations. Binary Logging supports replication but does not create new instances. Replication Filters control data flow in replication, and Delayed Transactions allow postponed commits but are unrelated to instance deployment.
Question 58 of 60
58. Question
Which MySQL feature ensures transactional consistency across replicas in Group Replication?
Correct
Group Replication uses certification-based conflict detection, which verifies transactions before committing to ensure consistency across all nodes. Redo logs are used for crash recovery, table-level locking is inefficient for replication, and statement-based logging can cause non-deterministic execution issues.
Incorrect
Group Replication uses certification-based conflict detection, which verifies transactions before committing to ensure consistency across all nodes. Redo logs are used for crash recovery, table-level locking is inefficient for replication, and statement-based logging can cause non-deterministic execution issues.
Unattempted
Group Replication uses certification-based conflict detection, which verifies transactions before committing to ensure consistency across all nodes. Redo logs are used for crash recovery, table-level locking is inefficient for replication, and statement-based logging can cause non-deterministic execution issues.
Question 59 of 60
59. Question
Which scenario suggests an index is not being used efficiently?
Correct
A high Handler_read_rnd_next count indicates many sequential row reads, suggesting full table scans instead of index usage. Low Innodb_buffer_pool_size affects caching but does not directly show index inefficiency. Query_cache_hits relates to caching, and Threads_running refers to concurrent queries.
Incorrect
A high Handler_read_rnd_next count indicates many sequential row reads, suggesting full table scans instead of index usage. Low Innodb_buffer_pool_size affects caching but does not directly show index inefficiency. Query_cache_hits relates to caching, and Threads_running refers to concurrent queries.
Unattempted
A high Handler_read_rnd_next count indicates many sequential row reads, suggesting full table scans instead of index usage. Low Innodb_buffer_pool_size affects caching but does not directly show index inefficiency. Query_cache_hits relates to caching, and Threads_running refers to concurrent queries.
Question 60 of 60
60. Question
What is a key disadvantage of having too many indexes on a table in MySQL 8.0?
Correct
Each additional index increases storage requirements and maintenance overhead. While indexes improve SELECT performance, they slow down INSERT, UPDATE, and DELETE operations because MySQL must update multiple index structures. Indexes do not reduce transaction isolation, nor do they inherently decrease SELECT speed unless over-indexing leads to inefficient execution plans.
Incorrect
Each additional index increases storage requirements and maintenance overhead. While indexes improve SELECT performance, they slow down INSERT, UPDATE, and DELETE operations because MySQL must update multiple index structures. Indexes do not reduce transaction isolation, nor do they inherently decrease SELECT speed unless over-indexing leads to inefficient execution plans.
Unattempted
Each additional index increases storage requirements and maintenance overhead. While indexes improve SELECT performance, they slow down INSERT, UPDATE, and DELETE operations because MySQL must update multiple index structures. Indexes do not reduce transaction isolation, nor do they inherently decrease SELECT speed unless over-indexing leads to inefficient execution plans.
X
Use Page numbers below to navigate to other practice tests