A clean shutdown was performed with innodb_fast_shutdown=0.
While you were manipulating files, all files were accidentally deleted from the top-level data directory.
Which two files must be restored from backup to allow the DB to restart cleanly? (Choose two.)
Which condition is true about the use of the hash join algorithm?
ANo index can be used for the join.
BThe query must access no more than two tables.
CThe smallest of the tables in the join must fit in memory as set by join_buffer_size.
DAt least one of the tables in the join must have a hash index.
Your MySQL environment has asynchronous position based-replication with one master and one slave.
The slave instance had a disk I/O problem, so it was stopped.
You determined that the slave relay log files were corrupted and unusable, but no other files are damaged.
You restart MySQL Server.
How can replication be restored?
AThe slave relay logs should be deleted; then execute START SLAVE;
BThe relay logs from the master should be used to replace the corrupted relay logs.
CThe slave relay logs should be deleted; execute CHANGE MASTER to adjust the replication relay log file name, then issue start SLAVE;
DThe slave needs to be restored from backup.
Examine this query and its output:
Which two statements are true? (Choose two.)
AThe root user had the largest number of modified rows for a SELECT statement.
BUser bob had the largest total time waiting for locks.
CThe root user had the largest single wait time.
DThe app user had the highest total number of rows read from storage engines.
EUser bob had a significantly higher ratio of SELECT + INSERT statements to QUIT than both app and root users.
Your my.cnf file contains these settings:
You want to log queries that looked at a minimum of 5000 records and either took longer than 5 seconds to run or did not use indexes.
Which contains all the settings that you need to add to or modify the slow log configuration?
Become a Supporter and enjoy a completely ad-free experience, plus unlock Learn Mode, Exam Mode, AstroTutor AI, and more.
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Examine this output:
Which change should optimize the number of buffer pool instances for this workload?
AIncrease the number of buffer pool instances to 16.
BIncrease the number of buffer pool instances to 32.
CDecrease the number of buffer pool instances to 1.
DIncrease the number of buffer pool instances to 12.
EDecrease the number of buffer pool instances to 4.
Which two are true about differences between logical and physical upgrades of MySQL databases? (Choose two.)
APost-upgrade table storage requirements after logical upgrades are usually smaller than that after physical upgrades.
BPhysical upgrades are performed for current instances on bare metal deployments, whereas logical upgrades are used for virtual machines or containerized instances.
CLogical upgrades are much faster because they do not require restarting the mysqld process.
DPost-upgrade table storage requirements after physical upgrades are usually smaller than that after logical upgrades.
EPhysical upgrades are much faster because they do not require restarting the mysqld process.
FPhysical upgrades leave data in place, whereas logical upgrades require data to be restored from mysqldump-type backups taken before the upgrades.
You recently upgraded your MySQL installation to MySQL 8.0.
Examine this client error:
Which option will allow this client to connect to MySQL Server?
You have a MySQL client installed on your Linux workstation with a default installation. You have your admin login credentials to connect to a MySQL server running Microsoft Windows on remote host 192.0.2.1:3306. You wish to connect directly to the world database.
Which four options need to be specified to complete this task with a single command? (Choose four.)
A--shared-memory-base-name=world
B--protocol=UDP
C--protocol=pipe
D--password
E--user=admin
F--host=192.0.2.1
Examine this partial output for InnoDB Cluster status:
Which statement explains the state of the instance deployed on host2?
AIt can be recovered from a donor instance on host3 by cloning using the command cluster.rejoinInstance ('<user>@host3:3377')
BIt can rejoin the cluster by using the command cluster.addInstance('<user>@host3:3377')
CIt has been removed from the cluster by using the command STOP GROUP_REPLICATION;
DIt can rejoin the cluster by using the command dba.rebootClusterFromCompleteOutage()
EIt has been expelled from the cluster because of a transaction error.
Which three sets of item information are visible in the mysql system database? (Choose three.)
Ahelp topics
Bperformance monitoring information
Cplugins
Dinformation about table structures
Eaudit log events
Frollback segments
Examine this statement, which executes successfully:
Now examine this query:
You must add an index that can reduce the number of rows processed by the query.
Which two statements can do this? (Choose two.)
AALTER TABLE employees -ADD INDEX (birth_date DESC);
BALTER TABLE employees -ADD INDEX ((MONTH(birth_date)));
CALTER TABLE employees -ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (MONTH(birth_date)) VIRTUAL NOT NULL,ADD INDEX (birth_month);
DALTER TABLE employees -ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (birth_date->>'$.month') VIRTUAL NOT NULL,ADD INDEX (birth_month);
EALTER TABLE employees -ADD INDEX ((CAST(birth_date->>'$.month' AS unsigned)));
FALTER TABLE employees -ADD INDEX (birth_date);
You have configured GTID-based asynchronous replication with one master and one slave.
A user accidentally updated some data on the slave.
To fix this, you stopped replication and successfully reverted the accidental changes.
Examine the current GTID information:
You must fix GTID sets on the slave to avoid replicating unwanted transactions in case of failover.
Which set of actions would allow the slave to continue replicating without erroneous transactions?
ARESET MASTER;SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167;
BSET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-2312,bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb:1-9;SET GLOBAL gtid_executed=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167;
CRESET SLAVE;SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-3820;SET GLOBAL gtid_executed=aaaaaaaa-aaaa-aaaa-aaaa—aaaaaaaaaaaa:1-10300;
DRESET MASTER;SET GLOBAL gtid_purged-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-2312;SET GLOBAL gtid_executed=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167;
ERESET SLAVE;SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167;
Which statement is true about InnoDB persistent index statistics?
AUpdating index statistics is an I/O expensive operation.
BIndex statistics are calculated from pages buffered in the buffer pool for tables with InnoDB storage engine.
CSetting innodb_stats_auto_recalc=ON causes statistics to be updated automatically when a new index is created.
DExecution plans based on transient index statistics improve precision when innodb_stats_persistent_sample_pages is increased.
EIncreasing innodb_stats_persistent_sample_pages determines higher pages scanning speed, at the cost of increased memory usage.
FTables are scanned and index statistics recalculated when an instance is restarted.
Examine this MySQL Shell command:
dba.rebootClusterFromCompleteOutage()
Which two statements are true? (Choose two.)
AIt reconfigures InnoDB Cluster if the cluster was stopped.
BIt performs InnoDB Cluster instances rolling restart.
CIt only starts all InnoDB Cluster instances.
DIt is not mandatory that all instances are running and reachable before running the command.
EIt stops and restarts all InnoDB Cluster instances and initializes the metadata.
FIt only stops and restarts all InnoDB Cluster instances.
Which two statements are true about MySQL server multi-source replication? (Choose two.)
AIt is not compatible with auto-positioning.
BIt needs to be re-instanced after a crash to maintain consistency.
CIt uses only time-based replication conflict resolution.
DIt relies on relay_log_recovery for resilient operations.
EIt does not attempt to detect or resolve replication conflicts.
FIt must use GTID replication.
Which command enables rule-based MySQL Auditing capabilities?
Ashell> mysql < audit_log_filter_linux_install.sql
Bshell> mysqld --initialize --log-raw=audit.log
Cmysql> INSTALL PLUGIN audit_log;
Dmysql> INSTALL COMPONENT audit_log;
Which four are types of information stored in the MySQL data dictionary? (Choose four.)
Aperformance metrics
Btable definitions
Caccess control lists
Dview definitions
Eserver runtime configuration
Fserver configuration rollback
You have an InnoDB Cluster configured with three servers.
Examine this command, which executes successfully:
mysqldump -uroot -p -d mydatabase > mydatabase_backup.sql
Due to data loss, the cluster is initialized and a restore is attempted resulting in this error:
ERROR 13176 (HY000) at line 23: Cannot update GTID_PURGED with the Group Replication plugin running
Which two actions, either one of which, can fix this error and allow a successful restore of the cluster? (Choose two.)
AStop all instances except the primary read/write master instance and run the restore.
BRemove the @@GLOBAL.gtid_purged statement from the dump file.
CCreate the backup by using the --set-gtid-purged=OFF option.
DRemove the group replication plugin from each instance before restoring.
ERemove the @@GLOBAL.gtid_executed statement from the dump file.
FRestore using the --set-gtid-purged=OFF option.
Which statement is true about MySQL Enterprise Transparent Data Encryption (TDE)?
AMySQL TDE uses an appropriate keyring plugin to store the keys in a centralized location.
BBoth MyISAM and InnoDB tables can be encrypted by setting the keyring_engine = ALL variable in the MySQL configuration file.
CLost tablespace encryption keys can be regenerated only if the master database key is known or present in the Key Vault specification.
DTDE can encrypt InnoDB and MyISAM tables only when the tables are stored in the SYSTEM tablespace.
You wish to store the username and password for a client connection to MySQL server in a file on a local file system.
Which is the best way to encrypt the file?
AUse the AES_ENCRYPT() MySQL function on the option file.
BUse mysql_secure_installation to encrypt stored login credentials.
CUse a text editor to create a new defaults file and encrypt it from Linux prompt.
DUse mysql_config_editor to create an encrypted file.
You are backing up raw InnoDB files by using mysqlbackup.
Which two groups of files will be backed up during a full backup? (Choose two.)
Aibbackup files
B*.CSM files
C*.sdi files
D*.ibd files
Eib_logfile* files
You made some table definition changes to a schema in your MySQL Server.
Which two statements reflect how MySQL Server handles the table definition changes? (Choose two.)
AMySQL writes SDI to the binary log for distributed backups.
BMySQL keeps InnoDB metadata changes in .sdi files in datadir.
CThe metadata is serialized in JSON format in Serialized Dictionary Information (SDI).
DMySQL Server stores a copy of the serialized data in the InnoDB user tablespace.
EMySQL implicitly executes FLUSH TABLES and stores a snapshot backup of the metadata.
Which two are characteristics of snapshot-based backups? (Choose two.)
ASnapshot-based backups greatly reduce time during which the database and applications are unavailable.
BThere is no need for InnoDB tables to perform its own recovery when restoring from the snapshot backup.
CThe frozen file system can be cloned to another virtual machine immediately into active service.
DA separate physical copy must be made before releasing the snapshot backup.
ESnapshot backups can be used only in virtual machines.
You must run multiple instances of MySQL Server on a single host.
Which three methods are supported? (Choose three.)
ARun MySQL Server docker containers.
BUse systemd with different settings for each instance.
CUse system tools to lock each instance to its own CPU.
DStart mysqld or mysqld_safe using different option files for each instance.
ERun mysqld with --datadir defined for each instance.
FUse resource groups to lock different instances on separate CPUs.