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 9 "
0 of 44 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
Answered
Review
Question 1 of 44
1. Question
In MySQL 8.0 how many GTIDs are assigned to this operation mysql> SET @@SESSION.sql_log_bin = 0; mysql> CREATE TABLE t_copy AS SELECT * FROM t_orig; If binlog_format = ROW
Correct
When an operation is not recorded in the binlog it doesn‘t have gtid assigned. In this example we are disabling the recording of the events before.
Incorrect
When an operation is not recorded in the binlog it doesn‘t have gtid assigned. In this example we are disabling the recording of the events before.
Unattempted
When an operation is not recorded in the binlog it doesn‘t have gtid assigned. In this example we are disabling the recording of the events before.
Question 2 of 44
2. Question
What are valid data dictionary tables?
Correct
Data dictionary tables are stored within mysql schema. INFORMATION_SCHEMA offers views over data dictionary tables for manual access but they are not part of the data dictionary. mysql.users is part of the Grant System tables but not of the data dictionary.
Incorrect
Data dictionary tables are stored within mysql schema. INFORMATION_SCHEMA offers views over data dictionary tables for manual access but they are not part of the data dictionary. mysql.users is part of the Grant System tables but not of the data dictionary.
Unattempted
Data dictionary tables are stored within mysql schema. INFORMATION_SCHEMA offers views over data dictionary tables for manual access but they are not part of the data dictionary. mysql.users is part of the Grant System tables but not of the data dictionary.
Question 3 of 44
3. Question
How can you limit the memory used by the query cache component to 512MB in MySQL 8.0?
Correct
Query Cache was deprecated in MySQL 5.7 and completely removed in 8.0. You cannot use it anymore.
Incorrect
Query Cache was deprecated in MySQL 5.7 and completely removed in 8.0. You cannot use it anymore.
Unattempted
Query Cache was deprecated in MySQL 5.7 and completely removed in 8.0. You cannot use it anymore.
Question 4 of 44
4. Question
Which of the following tables are part of the Grant system tables in MySQL?
Correct
Correct:
A. db
The db table is a core part of the Grant system tables, located in the mysql schema. It stores privileges that are granted to users for specific databases (schemas). A row in the db table grants a set of privileges to a user connecting from a specific host for a specific database.
C. user
The user table is the most fundamental Grant system table. Also located in the mysql schema, it stores the list of all user accounts, their authentication information (like password hashes), global privileges, and the connection-related restrictions applied to them.
D. password_history
The password_history table is a security-related table within the Grant system (in the mysql schema). It is used to implement the password re-use policy enforced by the validate_password component. It stores a history of the hash values of a user‘s previous passwords to prevent them from reusing recent passwords.
Incorrect:
B. host
The host table was a legacy Grant table in older versions of MySQL (prior to 8.0) that stored host-specific privileges for anonymous users. In MySQL 8.0, the functionality of the host table has been integrated into the db table, or replaced by modern, more granular privilege controls using the user table and explicit host matching in grants. The host table is not actively used as part of the core Grant system for defining privileges in modern MySQL 8.0 deployments.
Incorrect
Correct:
A. db
The db table is a core part of the Grant system tables, located in the mysql schema. It stores privileges that are granted to users for specific databases (schemas). A row in the db table grants a set of privileges to a user connecting from a specific host for a specific database.
C. user
The user table is the most fundamental Grant system table. Also located in the mysql schema, it stores the list of all user accounts, their authentication information (like password hashes), global privileges, and the connection-related restrictions applied to them.
D. password_history
The password_history table is a security-related table within the Grant system (in the mysql schema). It is used to implement the password re-use policy enforced by the validate_password component. It stores a history of the hash values of a user‘s previous passwords to prevent them from reusing recent passwords.
Incorrect:
B. host
The host table was a legacy Grant table in older versions of MySQL (prior to 8.0) that stored host-specific privileges for anonymous users. In MySQL 8.0, the functionality of the host table has been integrated into the db table, or replaced by modern, more granular privilege controls using the user table and explicit host matching in grants. The host table is not actively used as part of the core Grant system for defining privileges in modern MySQL 8.0 deployments.
Unattempted
Correct:
A. db
The db table is a core part of the Grant system tables, located in the mysql schema. It stores privileges that are granted to users for specific databases (schemas). A row in the db table grants a set of privileges to a user connecting from a specific host for a specific database.
C. user
The user table is the most fundamental Grant system table. Also located in the mysql schema, it stores the list of all user accounts, their authentication information (like password hashes), global privileges, and the connection-related restrictions applied to them.
D. password_history
The password_history table is a security-related table within the Grant system (in the mysql schema). It is used to implement the password re-use policy enforced by the validate_password component. It stores a history of the hash values of a user‘s previous passwords to prevent them from reusing recent passwords.
Incorrect:
B. host
The host table was a legacy Grant table in older versions of MySQL (prior to 8.0) that stored host-specific privileges for anonymous users. In MySQL 8.0, the functionality of the host table has been integrated into the db table, or replaced by modern, more granular privilege controls using the user table and explicit host matching in grants. The host table is not actively used as part of the core Grant system for defining privileges in modern MySQL 8.0 deployments.
Question 5 of 44
5. Question
How many servers accept writes, at any time, in a 3 nodes MySQL Group Replication setup in single-primary mode.
Correct
In Group Replication Single-Primary mode, only 1 server accepts writes simultaneously.
Incorrect
In Group Replication Single-Primary mode, only 1 server accepts writes simultaneously.
Unattempted
In Group Replication Single-Primary mode, only 1 server accepts writes simultaneously.
Question 6 of 44
6. Question
Mark is a user with multiple roles assigned: app_support, app_manager. How can he enable app_manager when needed?
Correct
Roles can be not enabled by default. Users can enable them individually or all excluding whatever is not needed.
Incorrect
Roles can be not enabled by default. Users can enable them individually or all excluding whatever is not needed.
Unattempted
Roles can be not enabled by default. Users can enable them individually or all excluding whatever is not needed.
Question 7 of 44
7. Question
As part of MySQL 8.0 a new query hint syntax has been introduced. How would you indicate a query that has to use the index IX_BETTER_INDEX on table t1
Correct
/*+ table index1, index2 */ is the correct syntax
Incorrect
/*+ table index1, index2 */ is the correct syntax
Unattempted
/*+ table index1, index2 */ is the correct syntax
Question 8 of 44
8. Question
Where is stored the transactional data dictionary in MySQL 8.0?
Correct
A new InnoDB tablespace stores the data dictionary: mysql.ibd under the datadir
Incorrect
A new InnoDB tablespace stores the data dictionary: mysql.ibd under the datadir
Unattempted
A new InnoDB tablespace stores the data dictionary: mysql.ibd under the datadir
Question 9 of 44
9. Question
You are introducing MySQL Enterprise Firewall 8.0 in your company to protect critical databases against unexpected queries. In which mode will you initially run MySQL Enterprise Firewall 8.0?
Correct
MySQL Enterprise Firewall can run in 3 different modes. Initially you will run in Recording until you have captured most of the normal activity: Recording: the whitelist is populated with the new queries and those are executed Detecting: queries not present in the whitelist are executed but logged in the Firewall log Protecting: queries not present in the whitelist are blocked and logged in the Firewall log
Incorrect
MySQL Enterprise Firewall can run in 3 different modes. Initially you will run in Recording until you have captured most of the normal activity: Recording: the whitelist is populated with the new queries and those are executed Detecting: queries not present in the whitelist are executed but logged in the Firewall log Protecting: queries not present in the whitelist are blocked and logged in the Firewall log
Unattempted
MySQL Enterprise Firewall can run in 3 different modes. Initially you will run in Recording until you have captured most of the normal activity: Recording: the whitelist is populated with the new queries and those are executed Detecting: queries not present in the whitelist are executed but logged in the Firewall log Protecting: queries not present in the whitelist are blocked and logged in the Firewall log
Question 10 of 44
10. Question
Where is inserted a new page in the InnoDB buffer pool?
Correct
A page is inserted at the head of the Old Sublist
Incorrect
A page is inserted at the head of the Old Sublist
Unattempted
A page is inserted at the head of the Old Sublist
Question 11 of 44
11. Question
Your database has enabled MySQL Enterprise Audit 8.0 and your audit record look like this. TIMESTAMP=“2019-10-03T14:25:24 UTC“ RECORD_ID=“2_2019-10-03T14:25:00“ NAME=“Connect“ CONNECTION_ID=“4“ STATUS=“0“ STATUS_CODE=“0“ USER=“root“ OS_LOGIN=““ HOST=“localhost“ IP=“127.0.0.1“ COMMAND_CLASS=“connect“ CONNECTION_TYPE=“SSL/TLS“ PRIV_USER=“root“ PROXY_USER=““ DB=“test“/> Which audit format is enabled in MySQL Enterprise Audit?
Correct
OLD and NEW are XML formats. OLD has the information defined as attributes NEW has the information defined as sub-nodes
Incorrect
OLD and NEW are XML formats. OLD has the information defined as attributes NEW has the information defined as sub-nodes
Unattempted
OLD and NEW are XML formats. OLD has the information defined as attributes NEW has the information defined as sub-nodes
Question 12 of 44
12. Question
Using MySQL Enterprise Audit 8.0 you have defined the following filters: SET @f = ‘{ “filter“: { “class“: { “name“: “connection“ } } }‘; SELECT audit_log_filter_set_filter(‘log_filter‘, @f); SELECT audit_log_filter_set_user(‘%‘, ‘log_filter‘); What will be logged?
Correct
Correct:
C. Connection events for any user
The set of three commands configures MySQL Enterprise Audit to log connection events for every user who attempts to connect to the server.
The first command defines the filter variable @f to include only events belonging to the “connection“ event class: ““class““: { ““name““: ““connection““ }.
The second command registers this filter definition under the name ‘log_filter‘.
The third command applies this ‘log_filter‘ to the user identifier ‘%‘. In MySQL access control, the wildcard character ‘%‘ matches all users (both local and remote) and all hostnames. Therefore, the audit log will capture connection events for any user trying to connect.
Incorrect:
A. Connection events for remote users
While connection events for remote users are included, the ‘%‘ wildcard in the user specification (audit_log_filter_set_user(‘%‘, ‘log_filter‘)) applies the filter to all users, including users connecting locally (e.g., from localhost or via a Unix socket). This option is too restrictive.
B. Everything for any user
The filter definition explicitly restricts logging to only the “connection“ event class: ““class““: { ““name““: ““connection““ }. The connection class does not include other events like query, table, or stored_procedure events, so the log will not contain “Everything.“
D. Everything for remote users
This option is incorrect on two counts:
“Everything“ is wrong because the filter explicitly limits the logging to only the “connection“ class.
“remote users“ is wrong because the wildcard ‘%‘ applies to all users, including local users.
Incorrect
Correct:
C. Connection events for any user
The set of three commands configures MySQL Enterprise Audit to log connection events for every user who attempts to connect to the server.
The first command defines the filter variable @f to include only events belonging to the “connection“ event class: ““class““: { ““name““: ““connection““ }.
The second command registers this filter definition under the name ‘log_filter‘.
The third command applies this ‘log_filter‘ to the user identifier ‘%‘. In MySQL access control, the wildcard character ‘%‘ matches all users (both local and remote) and all hostnames. Therefore, the audit log will capture connection events for any user trying to connect.
Incorrect:
A. Connection events for remote users
While connection events for remote users are included, the ‘%‘ wildcard in the user specification (audit_log_filter_set_user(‘%‘, ‘log_filter‘)) applies the filter to all users, including users connecting locally (e.g., from localhost or via a Unix socket). This option is too restrictive.
B. Everything for any user
The filter definition explicitly restricts logging to only the “connection“ event class: ““class““: { ““name““: ““connection““ }. The connection class does not include other events like query, table, or stored_procedure events, so the log will not contain “Everything.“
D. Everything for remote users
This option is incorrect on two counts:
“Everything“ is wrong because the filter explicitly limits the logging to only the “connection“ class.
“remote users“ is wrong because the wildcard ‘%‘ applies to all users, including local users.
Unattempted
Correct:
C. Connection events for any user
The set of three commands configures MySQL Enterprise Audit to log connection events for every user who attempts to connect to the server.
The first command defines the filter variable @f to include only events belonging to the “connection“ event class: ““class““: { ““name““: ““connection““ }.
The second command registers this filter definition under the name ‘log_filter‘.
The third command applies this ‘log_filter‘ to the user identifier ‘%‘. In MySQL access control, the wildcard character ‘%‘ matches all users (both local and remote) and all hostnames. Therefore, the audit log will capture connection events for any user trying to connect.
Incorrect:
A. Connection events for remote users
While connection events for remote users are included, the ‘%‘ wildcard in the user specification (audit_log_filter_set_user(‘%‘, ‘log_filter‘)) applies the filter to all users, including users connecting locally (e.g., from localhost or via a Unix socket). This option is too restrictive.
B. Everything for any user
The filter definition explicitly restricts logging to only the “connection“ event class: ““class““: { ““name““: ““connection““ }. The connection class does not include other events like query, table, or stored_procedure events, so the log will not contain “Everything.“
D. Everything for remote users
This option is incorrect on two counts:
“Everything“ is wrong because the filter explicitly limits the logging to only the “connection“ class.
“remote users“ is wrong because the wildcard ‘%‘ applies to all users, including local users.
Question 13 of 44
13. Question
What is the maximum size for LONGTEXT columns in MySQL 8.0?
Correct
The maximum size for string columns is always given on bytes as different character sets can require different amount of bytes per character
Incorrect
The maximum size for string columns is always given on bytes as different character sets can require different amount of bytes per character
Unattempted
The maximum size for string columns is always given on bytes as different character sets can require different amount of bytes per character
Question 14 of 44
14. Question
Can you change the value for innodb_page_size once the database has been initialized?
Correct
InnoDB page size cannot be changed without reinitializing the database
Incorrect
InnoDB page size cannot be changed without reinitializing the database
Unattempted
InnoDB page size cannot be changed without reinitializing the database
Question 15 of 44
15. Question
In MySQL 8.0 SUPER privilege is deprecated. Which dynamic privilege allows the user to change global system variables?
Correct
SYSTEM_VARIABLES_ADMIN enables server configuration changes. SESSION_VARIABLES_ADMIN enables setting restricted session system variables. SUPER_ADMIN doesn‘t exist
Incorrect
SYSTEM_VARIABLES_ADMIN enables server configuration changes. SESSION_VARIABLES_ADMIN enables setting restricted session system variables. SUPER_ADMIN doesn‘t exist
Unattempted
SYSTEM_VARIABLES_ADMIN enables server configuration changes. SESSION_VARIABLES_ADMIN enables setting restricted session system variables. SUPER_ADMIN doesn‘t exist
Question 16 of 44
16. Question
ACME & Co is using MySQL Enterprise Backup 8.0 to backup MySQL 8.0 databases. A newly hired DBA wants to speed up the validation process by starting a new MySQL process using the backup dir as the data dir
Correct
The official documentation states that this will crash the server and corrupt the backup.
Incorrect
The official documentation states that this will crash the server and corrupt the backup.
Unattempted
The official documentation states that this will crash the server and corrupt the backup.
Question 17 of 44
17. Question
What happens with a page at the head of the Old sublist when is accessed by a read-ahead operation
Correct
Read-ahead operations don‘t promote pages; only when a page is directly read is promoted in the buffer pool
Incorrect
Read-ahead operations don‘t promote pages; only when a page is directly read is promoted in the buffer pool
Unattempted
Read-ahead operations don‘t promote pages; only when a page is directly read is promoted in the buffer pool
Question 18 of 44
18. Question
MySQL 8.0 introduces column histograms, but after testing them over a column you determine that your queries are performing better without it. How can you remove the histogram over a set of columns?
Correct
You can remove column histograms using ANALYZE TABLE… DROP HISTOGRAM ON… syntax. ANALYZE TABLE will not remove the existing histograms.
Incorrect
You can remove column histograms using ANALYZE TABLE… DROP HISTOGRAM ON… syntax. ANALYZE TABLE will not remove the existing histograms.
Unattempted
You can remove column histograms using ANALYZE TABLE… DROP HISTOGRAM ON… syntax. ANALYZE TABLE will not remove the existing histograms.
Question 19 of 44
19. Question
MySQL 8.0 has a pluggable architecture. Its functionality can be extended with plugins coded in:
Correct
Prior MySQL 8.0 plugins could be written in C or C++. With MySQL 8.0 only C++ is a valid choice.
Incorrect
Prior MySQL 8.0 plugins could be written in C or C++. With MySQL 8.0 only C++ is a valid choice.
Unattempted
Prior MySQL 8.0 plugins could be written in C or C++. With MySQL 8.0 only C++ is a valid choice.
Question 20 of 44
20. Question
What are valid types of InnoDB tablespaces in MySQL 8.0?
Correct
All of the above. General tablespaces is a new feature of MySQL 8.0. They allow to store multiple tables within the same tablespace but outside system tablespaces
Incorrect
All of the above. General tablespaces is a new feature of MySQL 8.0. They allow to store multiple tables within the same tablespace but outside system tablespaces
Unattempted
All of the above. General tablespaces is a new feature of MySQL 8.0. They allow to store multiple tables within the same tablespace but outside system tablespaces
Question 21 of 44
21. Question
You are upgrading your MySQL server from MySQL 8.0.16 to 8.0.17. After restarting the database with the new binaries you:
Correct
MySQL 8.0.17 performs the operations that were previously done by mysql_upgrade automatically
Incorrect
MySQL 8.0.17 performs the operations that were previously done by mysql_upgrade automatically
Unattempted
MySQL 8.0.17 performs the operations that were previously done by mysql_upgrade automatically
Question 22 of 44
22. Question
How can you retrieve the space used by the binary representation of a JSON in MySQL 8.0?
Correct
JSON_STORAGE_SIZE function returns the space used by the binary representation of a JSON. Before MySQL 8.0 it was not possible to obtain this value and you had to approximate it using LENGTH
Incorrect
JSON_STORAGE_SIZE function returns the space used by the binary representation of a JSON. Before MySQL 8.0 it was not possible to obtain this value and you had to approximate it using LENGTH
Unattempted
JSON_STORAGE_SIZE function returns the space used by the binary representation of a JSON. Before MySQL 8.0 it was not possible to obtain this value and you had to approximate it using LENGTH
Question 23 of 44
23. Question
Which privilege do you need to connect through the administrative interface defined with admin_address and admin_port in MySQL 8.0.16?
Correct
Only users with the privilege SERVICE_CONNECTION_ADMIN can connect through the new interface enabled with admin_address and admin_port
Incorrect
Only users with the privilege SERVICE_CONNECTION_ADMIN can connect through the new interface enabled with admin_address and admin_port
Unattempted
Only users with the privilege SERVICE_CONNECTION_ADMIN can connect through the new interface enabled with admin_address and admin_port
Question 24 of 44
24. Question
When are the data dictionary tables upgraded for MySQL 8.0?
Correct
mysql_upgrade has been deprecated. The data dictionary tables are automatically upgraded when the mysqld process starts and detects that the version of the dictionary is older than the current binary.
Incorrect
mysql_upgrade has been deprecated. The data dictionary tables are automatically upgraded when the mysqld process starts and detects that the version of the dictionary is older than the current binary.
Unattempted
mysql_upgrade has been deprecated. The data dictionary tables are automatically upgraded when the mysqld process starts and detects that the version of the dictionary is older than the current binary.
Question 25 of 44
25. Question
How many servers do you need in a MySQL Group Replication setup to support 2 server failures at a point in time?
Correct
Group Replication requires that the majority of the servers are available after a failure. In this case, only with 5 or 6 servers we would have more than half servers available if 2 failed.
Incorrect
Group Replication requires that the majority of the servers are available after a failure. In this case, only with 5 or 6 servers we would have more than half servers available if 2 failed.
Unattempted
Group Replication requires that the majority of the servers are available after a failure. In this case, only with 5 or 6 servers we would have more than half servers available if 2 failed.
Question 26 of 44
26. Question
What is the storage requirements to store a column of type INT(4) knowing that INT(11) requires 4 bytes?
Correct
The attribute WIDTH does not affect the space required to store a numeric value. Be aware that WIDTH has been deprecated as of MySQL 8.0.17 as it doesn‘t affect in any way NUMERIC types
Incorrect
The attribute WIDTH does not affect the space required to store a numeric value. Be aware that WIDTH has been deprecated as of MySQL 8.0.17 as it doesn‘t affect in any way NUMERIC types
Unattempted
The attribute WIDTH does not affect the space required to store a numeric value. Be aware that WIDTH has been deprecated as of MySQL 8.0.17 as it doesn‘t affect in any way NUMERIC types
Question 27 of 44
27. Question
You have defined some roles that all the user must have and you want to avoid them being revoked. You will
Correct
mandatory_roles defines a list of roles that will be assigned to all the users without explicitly granting them. They cannot be revoked or dropped.
Incorrect
mandatory_roles defines a list of roles that will be assigned to all the users without explicitly granting them. They cannot be revoked or dropped.
Unattempted
mandatory_roles defines a list of roles that will be assigned to all the users without explicitly granting them. They cannot be revoked or dropped.
Question 28 of 44
28. Question
What would be the outcome when the test user attempts to connect from host “app01“ if MySQL 8.0 is running with skip_name_resolve enabled, and the DBA has created the following user?
CREATE USER test@‘app01‘ IDENTIFIED BY ‘Password#123‘;
Correct
In MySQL 8.0 after enabling skip_name_resolve only users defined with IP addresses will be considered. The user will fail to connect as it was created using the hostname.
Incorrect
In MySQL 8.0 after enabling skip_name_resolve only users defined with IP addresses will be considered. The user will fail to connect as it was created using the hostname.
Unattempted
In MySQL 8.0 after enabling skip_name_resolve only users defined with IP addresses will be considered. The user will fail to connect as it was created using the hostname.
Question 29 of 44
29. Question
Where is stored the data dictionary information on MySQL 8.0?
Correct
In MySQL 8.0 metadata files are not used and the dictionary has been moved to transactional tables. Different storage engines can also store information in their individual dictionary data.
Incorrect
In MySQL 8.0 metadata files are not used and the dictionary has been moved to transactional tables. Different storage engines can also store information in their individual dictionary data.
Unattempted
In MySQL 8.0 metadata files are not used and the dictionary has been moved to transactional tables. Different storage engines can also store information in their individual dictionary data.
Question 30 of 44
30. Question
In MySQL 8.0 which is the default authentication plugin?
Correct
caching_sha2_password is the new default authentication plugin for clients in MySQL 8.0
Incorrect
caching_sha2_password is the new default authentication plugin for clients in MySQL 8.0
Unattempted
caching_sha2_password is the new default authentication plugin for clients in MySQL 8.0
Question 31 of 44
31. Question
You want to create an account capable of changing the privileges of other user accounts, but not able to modify system accounts. You will grant the following privileges to that account:
Correct
Only accounts with SYSTEM_USER can modify other system accounts. If the user has all privileges with the re-grant option it will able to modify other user accounts.
Incorrect
Only accounts with SYSTEM_USER can modify other system accounts. If the user has all privileges with the re-grant option it will able to modify other user accounts.
Unattempted
Only accounts with SYSTEM_USER can modify other system accounts. If the user has all privileges with the re-grant option it will able to modify other user accounts.
Question 32 of 44
32. Question
What will be the occupation of an index page after a sorted index build with innodb_fill_factor = 100?
Correct
With a fill factor of 100, InnoDB will leave 1/16 of the space in clustered index pages free for future index growth
Incorrect
With a fill factor of 100, InnoDB will leave 1/16 of the space in clustered index pages free for future index growth
Unattempted
With a fill factor of 100, InnoDB will leave 1/16 of the space in clustered index pages free for future index growth
Question 33 of 44
33. Question
Which storage engine is used for the Log System tables in MySQL 8.0? (general_log and slow_log)
Correct
Log tables continue to use the CSV engine
Incorrect
Log tables continue to use the CSV engine
Unattempted
Log tables continue to use the CSV engine
Question 34 of 44
34. Question
You have diagnosed a bad execution plan to the presence of an index and you need to safely check that removing it will solve the issue, without impacting other production load or with the smallest amount of time to revert this change if the index is required for other activity. What would be the most adequate approach if you are using MySQL 8.0?
Correct
MySQL 8.0 introduces INVISIBLE indexes; indexes marked as invisible are maintained but the optimizer won‘t use them. Making an index INVISIBLE/VISIBLE is a fast, in-place operation.
Incorrect
MySQL 8.0 introduces INVISIBLE indexes; indexes marked as invisible are maintained but the optimizer won‘t use them. Making an index INVISIBLE/VISIBLE is a fast, in-place operation.
Unattempted
MySQL 8.0 introduces INVISIBLE indexes; indexes marked as invisible are maintained but the optimizer won‘t use them. Making an index INVISIBLE/VISIBLE is a fast, in-place operation.
Question 35 of 44
35. Question
What would happen if you perform the following operations? CREATE TABLE t1 (c1 INT(2)); INSERT INTO t1 (c1) VALUES (100); SELECT * FROM t1;
Correct
The WIDTH attribute for NUMERIC columns doesn‘t constrain the range of values that can be stored or displayed. It has been deprecated in MySQL 8.0.17 and you should avoid it.
Incorrect
The WIDTH attribute for NUMERIC columns doesn‘t constrain the range of values that can be stored or displayed. It has been deprecated in MySQL 8.0.17 and you should avoid it.
Unattempted
The WIDTH attribute for NUMERIC columns doesn‘t constrain the range of values that can be stored or displayed. It has been deprecated in MySQL 8.0.17 and you should avoid it.
Question 36 of 44
36. Question
You have the following MySQL 8.0 servers:
Server server_id primary_a 2 primary_b 2 replica 3
You want to configure multi-source replication, so that replica receives data from both primary_a and primary_b. What will be the outcome?
Correct
Each server in a multi-source replication must have a unique server_id.
Incorrect
Each server in a multi-source replication must have a unique server_id.
Unattempted
Each server in a multi-source replication must have a unique server_id.
Question 37 of 44
37. Question
Which type of replication is represented by the following diagram?
Correct
The source doesn‘t perform the commit until at least 1 replica has acknowledged that the event is stored in its relay log.
Incorrect
The source doesn‘t perform the commit until at least 1 replica has acknowledged that the event is stored in its relay log.
Unattempted
The source doesn‘t perform the commit until at least 1 replica has acknowledged that the event is stored in its relay log.
Question 38 of 44
38. Question
As a DBA you are tuning a complex statement and determine that a new index is needed. You have created an INVISIBLE index to avoid modifying the current execution plans but want to validate your hypothesis. What would be the best approach?
Correct
Invisible indexes are ignored by the optimizar even if they are indicated in a hint. Modifying the optimizer_switch at session level is the less disruptive method.
Incorrect
Invisible indexes are ignored by the optimizar even if they are indicated in a hint. Modifying the optimizer_switch at session level is the less disruptive method.
Unattempted
Invisible indexes are ignored by the optimizar even if they are indicated in a hint. Modifying the optimizer_switch at session level is the less disruptive method.
Question 39 of 44
39. Question
In a MySQL 8.0 GTID replication setup, the replica has lagged behind. Would replication be able to resume without manual intervention given the following?
The primary has all the required binlogs for the replication to continue. This can be identified because the primary gtid_purged is smaller than the replica gtid_executed. In this scenario if the replication will resume without any additional intervention.
Incorrect
The primary has all the required binlogs for the replication to continue. This can be identified because the primary gtid_purged is smaller than the replica gtid_executed. In this scenario if the replication will resume without any additional intervention.
Unattempted
The primary has all the required binlogs for the replication to continue. This can be identified because the primary gtid_purged is smaller than the replica gtid_executed. In this scenario if the replication will resume without any additional intervention.
Question 40 of 44
40. Question
While using MySQL Enterprise Backup 8.0, what type of backup includes all the changes performed since the last full backup.
Correct
Full backup contains a complete copy of the data. Incremental backup contains the data modified since the last backup. The last backup could be another incremental backup. Differential backup contains the data modified since the last full backup.
Incorrect
Full backup contains a complete copy of the data. Incremental backup contains the data modified since the last backup. The last backup could be another incremental backup. Differential backup contains the data modified since the last full backup.
Unattempted
Full backup contains a complete copy of the data. Incremental backup contains the data modified since the last backup. The last backup could be another incremental backup. Differential backup contains the data modified since the last full backup.
Question 41 of 44
41. Question
You are protecting an important database using MySQL Enterprise Backup 8.0 for backups and because of its size you decided to use full and incremental backups. What would be the commands if you need to restore your database with 1 FULL and 1 INCREMENTAL backup sets?
Correct
1. Restore the full backup, this will be your base 2. Restore the incremental backup, this will be applied over your base
Incorrect
1. Restore the full backup, this will be your base 2. Restore the incremental backup, this will be applied over your base
Unattempted
1. Restore the full backup, this will be your base 2. Restore the incremental backup, this will be applied over your base
Question 42 of 44
42. Question
In MySQL replication which thread is affected by slave_parallel_workers?
Correct
Replication SQL thread applies events to the replica data, slave_parallel_workers modify the number of threads applying those events.
Incorrect
Replication SQL thread applies events to the replica data, slave_parallel_workers modify the number of threads applying those events.
Unattempted
Replication SQL thread applies events to the replica data, slave_parallel_workers modify the number of threads applying those events.
Question 43 of 44
43. Question
How much storage does MySQL 8.0 requires for a TIME(0) column knowing that TIME requires 3 bytes + fractional seconds storage?
Correct
TIME and TIME(0) are equivalents
Incorrect
TIME and TIME(0) are equivalents
Unattempted
TIME and TIME(0) are equivalents
Question 44 of 44
44. Question
What structure uses InnoDB to store spatial indexes?
Correct
Correct:
B. R-TREE
The InnoDB storage engine, which is the default for MySQL 8.0, uses the R-Tree data structure specifically for storing spatial indexes (defined with the SPATIAL INDEX keyword).
R-Trees are specialized, multi-dimensional data structures designed to efficiently index non-point objects (like lines, polygons, and minimum bounding rectanglesMBRs) and perform spatial queries such as range searches (e.g., “find all objects in this area“). This structure is necessary because traditional B-Trees are optimized only for one-dimensional data.
Incorrect:
A. DOUBLE LINKED LIST
A double linked list is a linear data structure used for maintaining ordered sequences (like the records within an index page), but it is not used as the fundamental tree structure for any type of index in InnoDB.
C. GRAPH
A graph is a network model of data relationships. While specialized graph databases exist, InnoDB does not use a general graph structure to store its indexes. The index structures it uses are strictly tree-based (B-Tree and R-Tree). D. B-TREE
The B-Tree (specifically a B+ Tree) is the default and primary data structure used by InnoDB for all non-spatial indexes (primary keys, unique indexes, and secondary indexes). B-Trees are optimized for one-dimensional data ordering and range lookups. However, because spatial data is multi-dimensional (e.g., X and Y coordinates), a standard B-Tree is inefficient for spatial queries, which is why InnoDB switches to the R-Tree structure for SPATIAL INDEX.
Incorrect
Correct:
B. R-TREE
The InnoDB storage engine, which is the default for MySQL 8.0, uses the R-Tree data structure specifically for storing spatial indexes (defined with the SPATIAL INDEX keyword).
R-Trees are specialized, multi-dimensional data structures designed to efficiently index non-point objects (like lines, polygons, and minimum bounding rectanglesMBRs) and perform spatial queries such as range searches (e.g., “find all objects in this area“). This structure is necessary because traditional B-Trees are optimized only for one-dimensional data.
Incorrect:
A. DOUBLE LINKED LIST
A double linked list is a linear data structure used for maintaining ordered sequences (like the records within an index page), but it is not used as the fundamental tree structure for any type of index in InnoDB.
C. GRAPH
A graph is a network model of data relationships. While specialized graph databases exist, InnoDB does not use a general graph structure to store its indexes. The index structures it uses are strictly tree-based (B-Tree and R-Tree). D. B-TREE
The B-Tree (specifically a B+ Tree) is the default and primary data structure used by InnoDB for all non-spatial indexes (primary keys, unique indexes, and secondary indexes). B-Trees are optimized for one-dimensional data ordering and range lookups. However, because spatial data is multi-dimensional (e.g., X and Y coordinates), a standard B-Tree is inefficient for spatial queries, which is why InnoDB switches to the R-Tree structure for SPATIAL INDEX.
Unattempted
Correct:
B. R-TREE
The InnoDB storage engine, which is the default for MySQL 8.0, uses the R-Tree data structure specifically for storing spatial indexes (defined with the SPATIAL INDEX keyword).
R-Trees are specialized, multi-dimensional data structures designed to efficiently index non-point objects (like lines, polygons, and minimum bounding rectanglesMBRs) and perform spatial queries such as range searches (e.g., “find all objects in this area“). This structure is necessary because traditional B-Trees are optimized only for one-dimensional data.
Incorrect:
A. DOUBLE LINKED LIST
A double linked list is a linear data structure used for maintaining ordered sequences (like the records within an index page), but it is not used as the fundamental tree structure for any type of index in InnoDB.
C. GRAPH
A graph is a network model of data relationships. While specialized graph databases exist, InnoDB does not use a general graph structure to store its indexes. The index structures it uses are strictly tree-based (B-Tree and R-Tree). D. B-TREE
The B-Tree (specifically a B+ Tree) is the default and primary data structure used by InnoDB for all non-spatial indexes (primary keys, unique indexes, and secondary indexes). B-Trees are optimized for one-dimensional data ordering and range lookups. However, because spatial data is multi-dimensional (e.g., X and Y coordinates), a standard B-Tree is inefficient for spatial queries, which is why InnoDB switches to the R-Tree structure for SPATIAL INDEX.
X
SkillCertPro Wishes you all the best for your exam.