1z0-908 Practice Test practice questions, page 7 of 9, with answer review and explanations.
Question 31
Examine this statement and output: You must try to reduce query execution time. Which two queries should you focus on? (Choose two.)
QN = 3
QN = 5
QN = 1
QN = 4
QN = 2
Question 32
Examine this query: What information does this query provide?
total memory used across all connections associated with the user on connection number 10
total memory used by the first 10 connections
total memory used by thread number 10
total memory used across all connections associated with the user on thread number 10
total memory used by connection number 10
total memory used by the first 10 threads
Question 33
On examination, your MySQL installation datadir has become recursively world read/write/executable. What are two major concerns of running an installation with incorrect file privileges? (Choose two.)
Users could overwrite configuration files.
Data files could be deleted.
SQL injections could be used to insert bad data into the database.
MySQL binaries could be damaged, deleted, or altered.
Extra startup time would be required for the MySQL server to reset the privileges.
Question 34
User account baduser@hostname on your MySQL instance has been compromised. Which two commands stop any new connections using the compromised account? (Choose two.)
ALTER USER baduser@hostname PASSWORD DISABLED;
ALTER USER baduser@hostname MAX_USER_CONNECTIONS 0;
ALTER USER baduser@hostname ACCOUNT LOCK;
ALTER USER baduser@hostname IDENTIFIED WITH mysql_no_login;
ALTER USER baduser@hostname DEFAULT ROLE NONE;
Question 35
An existing asynchronous replication setup is running MySQL 8. Which two steps are a part of implementing GTID replication? (Choose two.)
Enable GTID by executing this on the master and the slave: SET GLOBAL GTID_ENABLED=on;
Execute this on the slave to enable GTID: START SLAVE IO_THREAD WITH GTID;
Restart MySQL (master and slave) with these options enabled: --gtid_mode=ON --log-bin --log-slave-updates --enforce-gtid-consistency
Execute this on the slave to enable GTID: RESET SLAVE; START SLAVE GTID_NEXT=AUTOMATIC;
On the slave, alter the MySQL master connection setting with: ALTER channel CHANGE MASTER TO MASTER_AUTO_POSITION = 1;
On the slave, alter the MySQL master connection setting with: CHANGE MASTER TO MASTER_AUTO_POSITION = 1;