0% found this document useful (0 votes)
57 views75 pages

Merged Questions Feedback v3

The document consists of a series of questions and answers related to MySQL database management, covering topics such as user permissions, performance optimization, security measures, and backup strategies. Each question is followed by an independent answer and a comparison with document answers. The content is structured in a quiz format, aimed at assessing knowledge of MySQL functionalities and best practices.

Uploaded by

William Martey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views75 pages

Merged Questions Feedback v3

The document consists of a series of questions and answers related to MySQL database management, covering topics such as user permissions, performance optimization, security measures, and backup strategies. Each question is followed by an independent answer and a comparison with document answers. The content is structured in a quiz format, aimed at assessing knowledge of MySQL functionalities and best practices.

Uploaded by

William Martey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 75

Question 1

Choose the best answer. Examine these statements and output: mysql> GRANT PROXY ON
accounting@localhost TO ' '@'%' ; mysql> SELECT USER(), CURRENT_USER(),
@@proxy_user; Which statement is true?
A) The user failed to define a username and the connecting username defaulted to ' '@'%'.
B) The user is authorized as the rsmith@localhost user.
C) The user is authenticated as the anonymous proxy user ' '@'%'.
D) The user is logged in with --user=accounting as an option.
E) The user is authorized as the accounting@localhost user.
Independent Answer:E
Document Answers:file1:E
Comparison:Match

Question 2
Choose two. Which two actions can obtain information about deadlocks?
A) Run the SHOW ENGINE INNODB MUTEX command from the mysql client.
B) Enable the innodb_status_output_locks global parameter.
C) Enable the innodb_print_all_deadlocks global parameter.
D) Run the SHOW ENGINE INNODB STATUS command from the mysql client.
E) Use the sys.innodb_lock_waits view.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 3
Choose the best answer. Examine this statement, which executes successfully: You want to
improve the performance of this query: SELECT Name FROM world.city WHERE Population
BETWEEN 1000000 AND 2000000; Which change enables the query to succeed while
accessing fewer rows?
A) ALTER TABLE world.city ADD INDEX (Name) ;
B) ALTER TABLE world.city ADD SPATIAL INDEX (Name) ;
C) ALTER TABLE world.city ADD FULLTEXT INDEX (Name) ;
D) ALTER TABLE world.city ADD FULLTEXT INDEX (Population) ;
E) ALTER TABLE world.city ADD SPATIAL INDEX (Population) ;
F) ALTER TABLE world.city ADD INDEX (Population) ;
Independent Answer:F
Document Answers:file1:F
Comparison:Match

Question 4
Choose two. User `fwuser`@`localhost` is registered with the MySQL Enterprise Firewall and
has been granted privileges for the SAKILA database. Examine these commands that you
executed and the results: mysql> SELECT MODE FROM
INFORMATION_SCHEMA.MYSQL_FIREWALL_USERS WHERE USERHOST =
'fwuser@localhost' ; mysql> SELECT RULE FROM
INFORMATION_SCHEMA.MYSQL_FIREWALL_WHITELIST WHERE USERHOST =
'fwuser@localhost'; You then execute this command: mysql> CALL
mysql.sp_set_firewall_mode('fwuser@localhost' , 'RESET') ; Which two are true?
A) The fwuser@localhost account is removed from the mysql.user table.
B) The information_schema.MYSQL_FIREWALL_WHITELIST table is truncated.
C) The whitelist of the fwuser@localhost account is truncated.
D) The mysql.firewall_users table is truncated.
E) The firewall resets all options to default values.
F) The fwuser@localhost account mode is set to DETECTING.
G) The fwuser@localhost account mode is set to OFF. æ©å¢¨å¦é™¢
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 5
Choose four. A newly deployed replication master database has a 10/90 read to write ratio. The
complete dataset is currently 28G but will never fluctuate beyond +-10%. The database storage
system consists of two locally attached PCI- E Enterprise grade disks (mounted as /data1 and
/data2) The server is dedicated to this MySQL Instance. System memory capacity is 64G. The
my.cnf file contents are displayed here: [mysqld] datadir=/data1/ innodb_buffer_pool_size=28G
innodb_log_file_size=150M Which four changes provide the most performance improvement,
without sacrificing data integrity?
A) innodb-doublewrite=off
B) innodb_log_group_home_dir=/data2/
C) innodb_log_file_size=1G
D) innodb_undo_directory=/dev/shm
E) log-bin=/data2/
F) innodb_flush_log_at_trx_commit=0
G) sync_binlog=0
H) innodb_buffer_pool_size=32G
I) disable-log-bin
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 6
Choose the best answer. You are having performance issues with MySQL instances. Those
servers are monitored with MySQL Enterprise Monitor. Using Query Analyzer, where do you
begin to look for problem queries?
A) Sort the "Exec" column and check for SQL queries with low Query Response Time index
(QRTi) values.
B) Look for queries with low total latency times in the Latency section in the times series graph.
C) Sort the "Exec" column and check for SQL queries with high Query Response Time index
(QRTi) values.
D) Look for queries with big prolonged spikes in row activity/access graph in the times series
graph. Answser:A https://dev.mysql.com/doc/mysql-monitor/8.0/en/mem-features-qrti.html
æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 7
Choose the best answer. You want to log only the changes made to the database objects and data
on the MySQL system. Which log will do this by default?
A) slow query log
B) binary log
C) error log
D) general query log
E) audit log Answser:B æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 8
Choose two. Identify two ways to significantly improve data security.
A) Configure mysqld to run as the system admin account, such as root.
B) Use a private network behind a firewall.
C) Configure mysqld to use only networked disks.
D) Configure MySQL to have only one administrative account.
E) Configure mysqld to use only local disks or attached disks and to have its own account in the
host system.
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 9
Choose two. Which two statements are true about MySQL Enterprise Backup?
A) It creates logical backups.
B) It supports backing up only table structures.
C) It can perform hot or warm backups.
D) It supports backup of a remote MySQL system.
E) It supports restoring to a remote MySQL system.
F) It supports the creation of incremental backups.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 10
Choose the best answer. Examine these commands, which execute successfully on the ic1 host:
mysqlsh> dba.createCluster( 'cluster1' , {memberWeight:35}) mysqlsh> var mycluster =
dba.getCluster () mysqlsh> mycluster.addInstance ( 'ic@ic2' , {memberWeight:25}) mysqlsh>
mycluster.addInstance( 'ic@ic3' , {memberWeight:50}) Now examine this configuration setting,
which is the same on all nodes:
group_replication_consistency=BEFORE_ON_PRIMARY_FAILOVER Which statement is true
if primary node ic1 fails?
A) Node ic2 becomes the new primary and existing transactions are considered stale and rolled
back.
B) Node ic3 becomes the new primary and existing transactions are considered stale and rolled
back.
C) Node ic3 becomes the new primary and is ignored until any backlog of transactions is
completed.
D) Only two nodes remain so the election process is uncertain and must be done manually.
E) Node ic2 becomes the new primary and is ignored until any backlog of transactions is
completed.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 11
Choose the best answer. You have upgraded the MySQL binaries from 5.7.28 to 8.0.18 by using
an in-place upgrade. Examine the message sequence generated during the first start of MySQL
8.0.18: Which step or set of steps will resolve the errors?
A) Start mysqld again using the --upgrade=FORCE option.
B) Go to the <datadir>/mysql directory and execute: myisamchk --update-state columns_priv
event proc proxies_priv tables_priv.
C) Execute: mysqlcheck --repair mysql columns_priv event proc proxies_priv tables_priv.
D) Remove the redo logs. Replace the MySQL binaries with the 5.7.28 binaries. Prepare the
tables for upgrade. Upgrade to 8.0.18 again.
E) Execute: mysqlcheck --check-upgrade mysql columns_priv event proc proxies_priv
tables_priv.
Independent Answer:C
Document Answers:file1:C; file2:C
Comparison:Match

Question 12
Choose the best answer. You plan to upgrade your MySQL 5.7 instance to version 8. You have
installed the 8 build of MySQL Shell. Examine this command executed from the operating
system shell prompt: mysqlsh --uri root@localhost:3306 -- util check-for-server-upgrade Which
statement is true?
A) It documents any problems with your 5.7 tables to make them ready to upgrade to 8.
B) It fails because the operation name must be in camelCase.
C) It fixes any problems with your 5.7 tables to make them ready to upgrade to 8.
D) It is mandatory to clear the history of prior results before executing this process a second time
or later.
E) It fails because checkForServerUpgrade must be executed only within an active shell session
as a method of the util object.
F) It is mandatory to run this command so that MySQL 8.0 software ' s auto-upgrade process has
the details it needs to operate properly.
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 13
Choose the best answer. Database test contains a table named city that has the InnoDB storage
engine. What is the content of the test folder in the data directory?
A) city.MYD, city.MYI, and city.sdi
B) city.ibd
C) city.ibd and city.sdi
D) city.ibd and city.frm
E) city.ibd, city.frm, and city.sdi
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 14
Choose two. Which two MySQL Shell commands are excluded from the InnoDB Cluster
creation procedure?
A) cluster.addInstance () #æ·»åŠ èŠ‚ç‚¹
B) dba.configureLocalInstance () ##æŒ久化é…置信æ¯
C) dba.checkInstanceConfiguration() ##检查节点
D) cluster.setPrimaryInstance() ##设置主节点
E) dba.configureInstance() ##检查é…ç½®
F) dba.createCluster () #创建集群
G) cluster.forceQuorumUsingPartitionOf () #将集群从 quorum 丢失场景æ
¢å¤到å¯æ“作状æ€。 如果一个组被分区或å‘生的崩溃超
过了å¯å®¹å¿的范围,则å¯èƒ½ä¼šå‡ºçŽ°è¿™ç§情况。 Anwer:D G
https://dev.mysql.com/doc/mysql-shell/8.0/en/deploying-new-production-cluster.html
第一个节点就是主节点,ä¸用设置。 æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 15
Choose four. Which four connection methods can MySQL clients specify with the --protocol
option when connecting to a MySQL server?
A) IPv4
B) SOCKET
C) MEMORY
D) PIPE
E) IPv6
F) FILE
G) TCP
H) DIRECT
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 16
Choose two. Which two authentication plugins require the plaintext client plugin for
authentication to work?
A) LDAP authentication
B) SHA256 authentication
C) Windows Native authentication
D) PAM authentication
E) MySQL Native Password
F) LDAP SASL authentication
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 17
Choose the best answer. Where is the default data directory located after installing MySQL using
RPM on Oracle Linux 7?
A) /usr
B) /usr/mysql
C) /etc/my.cnf
D) /var/1ib/mysql
E) /usr/bin
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 18
Choose two. You are using mysqlcheck for server maintenance. Which two statements are true?
A) The mysqlcheck --check --all-databases command takes table write locks while performing a
series of checks.
B) The mysqlcheck --repair --all-databases command can repair an InnoDB corrupted table.
C) The mysqlcheck --analyze --all-databases command performs a series of checks to spot
eventual table corruptions.
D) The mysqlcheck command can be renamed mysqlrepair so that it repairs tables by default.
E) The mysqlcheck --optimize --all-databases command reclaims free space from table files.
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 19
Choose two. User account baduser@hostname on your MySQL instance has been compromised.
Which two commands stop any new connections using the compromised account?
A) ALTER USER baduser@hostname PASSWORD DISABLED;
B) ALTER USER baduser@hostname DEFAULT ROLE NONE;
C) ALTER USER baduser@hostname MAX_USER_CONNECTIONS 0;
D) ALTER USER baduser@hostname IDENTIFIED WITH mysql_no_login;
E) ALTER USER baduser@hostname ACCOUNT LOCK; æ©å¢¨å¦é™¢
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 20
Choose two. You plan to install MySQL Server by using the RPM download. Which two
statements are true?
A) You must manually initialize the data directory.
B) You can provide the root password interactively.
C) The MySQL RPM package installation supports deploying multiple MySQL versions on the
same host.
D) MySQL uses the RPM relocatable installation target feature.
E) You can find the root password in the error log after the first start.
F) The functionality is split among several RPM package files.
Independent Answer:E
Document Answers:file1:E
Comparison:Match

Question 21
Choose two. There are five MySQL instances configured with a working group replication.
Examine the output of the group members: mysql> SELECT MEMBER_ID, MEMBER_STATE
FROM performance_schema.replication_group_members; Which two statements are true about
network partitioning in the cluster?
A) The group replication will buffer the transactions on the online nodes until the unreachable
nodes return online.
B) A manual intervention to force group members to be only the working two instances is
required.
C) The cluster will shut down to preserve data consistency.
D) There could be both a 2 node and 3 node group replication still running, so shutting down
group replication and diagnosing the issue is recommended.
E) The cluster has built-in high availability and updates group_replication_ip_whitelist to
remove the unreachable nodes.
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 22
Choose three. You must run multiple instances of MySQL Server on a single host. Which three
methods are supported?
A) Use system tools to lock each instance to its own CPU.
B) Use resource groups to lock different instances on separate CPUs.
C) Run mysqld with --datadir defined for each instance.
D) Run MySQL Server docker containers.
E) Start mysqld or mysqld_safe using different option files for each instance.
F) Use systemd with different settings for each instance.
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 23
Choose the best answer. An attempt to recover an InnoDB Cluster fails. Examine this set of
messages and responses: host3: 3377 ssl JS > dba.rebootClusterFromCompleteOutage ()
Reconfiguring the default cluster from complete outage. . . The instance ' host1:3377' was part of
the cluster configuration. Would you like to rejoin it to the cluster? [y/N] : y The instance '
host2:3377' was part of the cluster configuration. Would you like to rejoin it to the cluster?
[y/N] : y Dba.rebootClusterFromCompleteOutage: The active session instance isn't the most
updated in comparison with the ONLINE instances of the Cluster's metadata. Please use the most
up to date instance: ' host1:3377'. (RuntimeError) Which statement is true?
A) The cluster is running and there is at least one ONLINE instance.
B) The instance deployed on host3 must be synchronized from a donor deployed on host1 by
using the command cluster.addInstance('host1:3377').
C) It is possible to determine the most up-to-date instance by comparing different global
transaction identifier (GTID) sets with GTID_SUBSET (set1, set2).
D) The active session instanceis invalid and must be re-created by using the command
shell.connect ('host3:3377').
E) The instance deployed on host3 must be rebuilt with a backup from the primary instance.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 24
Choose the best answer. Examine this partial report: mysql> SHOW FULL PROCESSLIST;
Examine this query: SELECT SUM(m.CURRENT_NUMBER_OF_BYTES_USED) AS TOTAL
FROM performance_schema.memory_summary_by_thread_by_event_name m INNER JOIN
performance_schema.threads t ON m.THREAD_ID = t.THREAD_ID WHERE
t.PROCESSLIST_ID = 10; What information does this query provide?
A) total memory used by connection number 10
B) total memory used across all connections associated with the user on connection number 10
C) total memory used by the first 10 threads
D) total memory used by thread number 10
E) total memory used across all connections associated with the user on thread number 10
F) total memory used by the first 10 connections
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 25
Choose three. Which three settings control global buffers shared by all threads on a MySQL
server?
A) tmp_table_size
B) innodb_buffer_pool_size
C) table_open_cache
D) sort_buffer_size
E) key_buffer_size
F) read_buffer_size
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 26
Choose the best answer. You plan to take daily full backups, which include the ndbinfo and sys
(internal) databases. Which command will back up the databases in parallel?
A) mysqldump --all-databases > full-backup-$(date + %Y%m%d).sql
B) mysqlpump --include-databases=% > full-backup-$(date + %Y%m%d).sql
C) mysqlpump --all-databases > full-backup-$(date + %Y%m%d).sql
D) mysqldump --single-transaction > full-backup-$(date + %Y%m%d).sql
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 27
Choose two. Which two statements are true about the mysql_config_editor program?
A) It provides an interface to change my.cnf files.
B) It can move datadir to a new location.
C) It will use [client] options by default unless you provide --login-path.
D) It can be used to create and edit SSL certificates and log locations.
E) It manages the configuration of user privileges for accessing the server.
F) It manages the configuration of the MySQL Firewall feature.
G) It manages the configuration of client programs.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 28
Choose three. Your MySQL server is running on the Microsoft Windows platform. Which three
local connection protocols are available to you?
A) UDP
B) shared memory
C) SOCKET
D) named pipes
E) X Protocol
F) TCP/IP
Independent Answer:B
Document Answers:file1:B
Comparison:Match
Question 29
Choose the best answer. You must configure the MySQL command-line client to provide the
highest level of trust and security when connecting to a remote MySQL Server. Which value of --
ssl-mode will do this?
A) VERIFY_CA
B) PREFERRED
C) VERIFY_IDENTITY
D) REQUIRED
Independent Answer:C
Document Answers:file1:C; file2:D
Comparison:Mismatch

Question 30
Choose the best answer. Which command enables rule-based MySQL Auditing capabilities?
A) shell> mysqld --initialize --log-raw=audit.log
B) mysql> INSTALL COMPONENT audit_log;
C) mysql> INSTALL PLUGIN audit_log;
D) shell> mysql < audit_log_filter_linux_install.sql.
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 31
Choose two. A valid raw backup of the shop.customers MyISAM table was taken. You must
restore the table. You begin with these steps: 1. Confirm that secure_file_priv= '/var/tmp ' 2.
mysql> DROP TABLE shop.customers; 3. shell> cp /backup/customers.MY*
/var/1ib/mysql/shop/ Which two actions are required to complete the restore? /var/tmp
A) shell> cp /backup/customers.sdi
B) mysql> SOURCE '/var/tmp/customers.sdi
C) shell> cp /backup/customers.sdi
D) mysql> ALTER TABLE shop.customers DISCARD TABLESPACE
E) shell> cp /backup/customers.frm /var/1ib/mysql/shop/
F) mysql> IMPORT TABLE FROM /var/1ib/mysql/shop/customers.sdi.
G) mysql> IMPORT TABLE FROM /var/tmp/customers.sdi
H) mysql> ALTER TABLE shop.customers IMPORT TABLESPACE /var/1ib/mysql/shop/
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 32
Choose two. Which two are use cases of MySQL asynchronous replication?
A) You can scale reads by adding multiple slaves.
B) MySQL Enterprise Backup will automatically back up from an available slave.
C) You can scale writes by creating a replicated mesh.
D) It guarantees near real-time replication between a master and a slave.
E) It allows backup to be done on the slave without impacting the master.
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 33
Choose the best answer. You have a MySQL system with 500 GB of data that needs frequent
backups. You use a mix of MyISAM and InnoDB storage engines for your data. Examine your
backup requirements: ·The MySQL system being backed up can never be unavailable or locked
to the client applications. ·The recovery from the backup must work on any system. ·Only 1
hour of data can be lost on recovery of the backup. Which option fulfills all backup
requirements?
A) Take a physical backup of the MySQL system.
B) Take a logical backup of the MySQL system.
C) Use the Clone Plugin to copy the data to another MySQL system.
D) Take your backup from a slave of the MySQL system.
Independent Answer:D
Document Answers:file1:D; file2:D
Comparison:Match

Question 34
Choose four. Which four are types of information stored in the MySQL data dictionary?
A) server runtime configuration
B) server configuration rollback
C) performance metrics
D) stored procedure definitions
E) InnoDB buffer pool LRU management data
F) view definitions
G) table definitions.
H) access control lists
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 35
Choose two. Which two are true about binary logs used in asynchronous replication?
A) They contain events that describe all queries run on the master.
B) They contain events that describe database changes on the master.
C) They are pushed from the master to the slave.
D) They contain events that describe only administrative commands run on the master.
E) They are pulled from the master to the slave.
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 36
Choose the best answer. 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?
A) Use mysql_secure_installation to encrypt stored login credentials.
B) Use a text editor to create a new defaults file and encrypt it from Linux prompt.
C) Use mysql_config_editor to create an encrypted file.
D) Use the AES_ENCRYPT() MySQL function on the option file.
Independent Answer:C
Document Answers:file1:C; file2:D
Comparison:Mismatch

Question 37
Choose two. Which two queries are examples of successful SQL injection attacks?
A) SELECT user, passwd FROM members WHERE user = ' ? ' ; INSERT INTO members
('user' , 'passwd' ) VALUES ('[email protected]' , 'secret' ) ;-- ';
B) SELECT user, phone FROM customers WHERE name = ' \; DROP TABLE users; -- ';
C) SELECT id, name FROM user WHERE user.id= (SELECT members.id FROM members) ;
D) SELECT id, name FROM user WHERE id=23 OR id=32 OR 1=1;
E) SELECT id, name FROM user WHERE id=23 OR id=32 AND 1=1;
F) SELECT email, passwd FROM members WHERE email = 'INSERT INTO members('email' ,
' passwd ' ) VALUES ('[email protected]' , 'secret') ;-- ';
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 38
Choose three. A user wants to connect without entering his or her username and password on the
Linux command prompt. Which three locations can be used to store the user's mysql credentials
to satisfy this requirement?
A) $HOME/.mysqlrc file
B) /etc/my.cnf file
C) DATADIR/mysqld-auto.cnf file
D) $HOME/.my.cnf file
E) $HOME/.mylogin.cnf file
F) $MYSQL_HOME/my.cnf file
G) $HOME/.mysql/auth/login file
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 39
Choose two. Examine this command, which executes successfully: shell> mysqldump --master-
data=2 --single-transaction --result-file=dump.sql mydb Which two statements are true?
A) This option uses the READ COMMITTED transaction isolation mode.
B) It enforces consistent backups for all storage engines.
C) It is a cold backup.
D) The backup created is a consistent data dump.
E) It executes flush tables with read lock.
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 40
Choose the best answer. You have just installed MySQL on Oracle Linux and adjusted your
/etc/my.cnf parameters to suit your installation. Examine the output: # systemctl start mysqld Job
for mysqld.service failed because the control process exited with error code. See "systemctl
status mysqld.service" and "journalctl -xe" for details. # systemctl status mysqld.service
mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service;
enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2019-12-12
07:54:53 ACDT; 33s ago Docs: man:mysqld(8) http://dev.mysql.com/a/doc/refman/en/using-
systend.html Process: 2732 Execstart=/usr/ sbin/mysqld $MYSQLD_OPTS (code=exited,
status=1/ FAILURE) Process: 2705 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited,
status=0/ SUCCESS) Main PID: 2732 (code=exited, status=1/FAILURE) Status: "Server startup
in progress " Dec 12 07:54:49 oel7 systemd[1]: Starting MySQL Server... Dec 12 07:54:53 oel7
systemd[1] : mysqld.service: main process exited, code=exited, status=1/ FAILURE Dec 12
07 :54:53 oel7 systemd[1] : Failed to start MySQL Server Dec 12 07 :54:53 oel7
systemd[1] :Unit mysqld.service entered failed state. Dec 12 07:54:53 oel7 systemd[1]:
mysqld.service failed. What statement is true about the start attempt?
A) systemd attempted to start mysqld, found another systemd mysqld process running, and shut
it down.
B) MySQL server continued to start up even though another process existed.
C) systemd waited for 30 seconds before timing out and start up failed.
D) systemd found the mysqld service disabled and failed to start it.
E) MySQL server was not started due to a problem while executing process 2732. æ©å¢¨å¦é™
¢
Independent Answer:E
Document Answers:file1:E
Comparison:Match

Question 41
Choose two. Examine this MySQL Shell command: dba.rebootClusterFromCompleteOutage ()
Which two statements are true?
A) It stops and restarts all InnoDB Cluster instances and initializes the metadata.
B) It only stops and restarts all InnoDB Cluster instances.
C) It is not mandatory that all instances are running and reachable before running the command.
D) It performs InnoDB Cluster instances rolling restart.
E) It reconfigures InnoDB Cluster if the cluster was stopped.
F) It picks the minimum number of instances necessary to rebuild the quorum and reconfigures
InnoDB Cluster.
G) It only starts all InnoDB Cluster instances.
Independent Answer:
Document Answers:file1:
Comparison:Match
Question 42
Choose two. Examine this statement and output: mysql> SELECT ROW_NUMBER() OVER()
AS QN, query, exec_count, avg_latency, lock_latency FROM sys.statement_analysis ORDER
BY exec_count; You must try to reduce query execution time. Which two queries should you
focus on?
A) QN=2
B) QN=3
C) QN=4
D) QN=1
E) QN=5
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 43
Choose two. Which two are contained in the InnoDB system tablespace (ibdata1) by default?
A) doublewrite buffer
B) change buffer
C) InnoDB Data Dictionary
D) primary indexes
E) table data
F) user privileges
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 44
Choose three. Examine this command, which executes successfully: cluster.addInstance( '
<user>@<host>:<port>' , {recoveryMethod: ' clone '}) Which three statements are true?
A) It is always slower than {recoveryMethod: ' incremental ' }.
B) InnoDB tablespaces outside the datadir are able to be cloned.
C) A target instance must exist, then it will be provisioned with data from an instance already in
the cluster and joined to the cluster.
D) The account used to perform this recovery needs the BACKUP_ADMIN privilege.
E) A new instance is installed, initialized, and provisioned with data from an instance already in
the cluster and joined to the cluster.
F) InnoDB redo logs must not rotate for the duration of the execution; otherwise, the recovery
will fail.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 45
Choose two. Which two statements are true about MySQL server multi-source replication?
A) It must use GTID replication.
B) It is not compatible with auto- positioning.
C) It needs to be re-instanced after a crash to maintain consistency.
D) It uses only time-based replication conflict resolution.
E) It does not attempt to detect or resolve replication conflicts.
F) It relies on relay_log_recovery for resilient operations.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 46
Choose two. Which two statements are true about using MySQL Enterprise Monitor Query
Analyzer?
A) It is possible to retrieve a normalized statement, but never the exact statement that was
executed.
B) The single query QRTi pie chart in the Query Analyzer view is based on the average
execution of all statements.
C) It is possible to import data into the Query Analyzer from heterogeneous sources, such as
CSV.
D) It is possible to list and analyze statements in an arbitrary graph range selection from
timeseries graphs.
E) It is possible to configure the Query Analysis built-in advisor to get notified about slow query
execution.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 47
Choose two. An existing asynchronous replication setup is running MySQL 8. Which two steps
are a part of implementing GTID replication?
A) Enable GTID by executing this on the master and the slave: SET GLOBAL
GTID_ENABLED=on;
B) On the slave, alter the MySQL master connection setting with: ALTER channel CHANGE
MASTER TO MASTER_AUTO_POSITION = 1;
C) Execute this on the slave to enable GTID: RESET SLAVE; START SLAVE
GTID_NEXT=AUTOMATIC;
D) Execute this on the slave to enable GTID: START SLAVE IO_THREAD WITH GTID;
E) Restart MySQL (master and slave) with these options enabled: --gtid_mode=ON --log-bin --
log-slave-updates --enforce-gtid-consistency
F) On the slave, alter the MySQL master connection setting with: CHANGE MASTER TO
MASTER_AUTO_POSITION = 1;
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 48
Choose the best answer. You want to check the values of the sort_buffer_size session variables of
all existing connections Which performance_schema table can you query?
A) user_variables_by_thread
B) global_variables
C) variables_by_thread
D) session_variables
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 49
Examine these commands and output: mysql> SHOW FULL PROCESSLIST; mysql> SELECT
object_type, object_schema, object_name, lock_type, lock_status, owner_thread_id,
owner_event_id -> FROM performance_schema.metadata_locks WHERE object_schema !=
'performance_schema' ; mysql> SELECT thread_id, processlist_id, processlist_user,
parent_thread_id -> FROM per formance_schema.threads WHERE processlist_user=' root';
Which connection ID is holding the metadata lock?
A) 21
B) 25
C) 6
D) 22
E) 20
F) 24
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 50
Choose the best answer. t is a non-empty InnoDB table. Examine these statements, which are
executed in one session: BEGIN SELECT * FROM t FOR UPDATE; Which is true?
A) mysqlcheck --analyze --all-databases will execute normally on all tables and return a report.
B) If ANALYZE TABLE; is invoked from the same session, it hangs until the transaction is
committed or rolled back.
C) If OPTIMIZE LOCAL TABLE t; is invoked from another session, it executes normally and
returns the status.
D) If OPTIMIZE TABLE; is invoked, it will create a table lock on t and force a transaction
rollback.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 51
Choose two. Your MySQL installation is running low on space due to binary logs. You need to
reduce your log space usage urgently. Which two sets of actions when completed will
accomplish this?
A) Use SET PERSIST binlog_expire_logs_seconds=<value>.
B) Use SET GLOBAL binlog_expire_logs_seconds=<value> and restart the server.
C) Use PURGE BINARY LOGS to <binlog_name>.
D) Set binlog_expire_logs_seconds in my.cnf.
E) Use SET GLOBAL binlog_expire_logs_seconds=<value> and run the FLUSH BINARY
LOGS command.
F) Set binlog_expire_logs_seconds = 0 in my.cnf and restart the server.
Independent Answer:AB
Document Answers:file1:AB
Comparison:Match

Question 52
Choose two. 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?
A) Remove the group replication plugin from each instance before restoring.
B) Remove the @@GLOBAL.gtid_executed statement from the dump file.
C) Stop all instances except the primary read/write master instance and run the restore.
D) Restore using the --set-gtid-purged=OFF option.
E) Remove the @@GLOBAL.gtid_purged statement from the dump file.
F) Create the backup by using the --set-gtid-purged=OFF option.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 53
Choose two. Which two statements are true about InnoDB data-at-rest encryption?
A) It supports all indexes transparently.
B) It decrypts data for use in memory:
C) It supports only non-blob datatypes.
D) It does not support the transportable tablespaces feature.
E) It enforces encryption from disk to memory and over network transmission.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 54
Choose three. Which three actions are effective in capacity planning?
A) adding circular replication nodes for increased DML capability
B) buying more RAM
C) buying more disk
D) buying more CPU
E) basing expected growth on an average of the last 3 years
F) upgrading to the latest application version
G) monitoring OS resources for patterns
H) consulting the application team about any future projects and use
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 55
Choose the best answer. Which statement is true about MySQL Enterprise Transparent Data
Encryption (TDE)?
A) MySQL TDE uses an appropriate keyring plugin to store the keys in a centralized location.
B) TDE can encrypt InnoDB and MyISAM tables only when the tables are stored in the
SYSTEM tablespace.
C) Lost tablespace encryption keys can be regenerated only if the master database key is known
or present in the Key Vault specification.
D) Both MyISAM and InnoDB tables can be encrypted by setting the keyring_engine = All
variable in the MySQL configuration file.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 56
Choose two. Your MySQL server was upgraded from an earlier major version. The sales
database contains three tables, one of which is the transactions table, which has 4 million rows.
You are running low on disk space on the datadir partition and begin to investigate. Examine
these commands and output: Which two statements are true?
A) The transactions table was created with innodb_file_per_table=OFF.
B) Truncating the sales and leads table will free up disk space.
C) Executing SET GLOBAL innodb_row_format=COMPRESSED and then ALTER TABLE
transactions will free up disk space.
D) Executing ALTER TABLE transactions will enable you to free up disk space.
E) Truncating the transactions table will free up the most disk space. æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 57
Choose two. Examine this command, which executes successfully: mysqlpump --user=root --
password > full_backup.sql Which two databases will be excluded from this dump?
A) mysql
B) information_schema
C) world
D) employee
E) sys
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 58
Choose three. Examine these statements, which execute successfully: TRUNCATE test; BEGIN;
INSERT INTO test (id, name) VALUES(1, "Hello") ; ROLLBACK; SELECT id FROM test;
Which three storage engines would return a nonempty recordset for the test table when executing
the statements?
A) MEMORY
B) BLACKHOLE
C) ARCHIVE
D) NDB
E) MyISAM
F) InnoDB
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 59
Choose the best answer. A colleague complains about slow response time on your website.
Examine this query and output: What is the most likely cause for the high number of lock waits?
A) You use the InnoDB storage engine and statements wait while data is inserted.
B) The Innodb Buffer pool is full.
C) You use the MyISAM storage engine for most common tables.
D) Your table accesses wait for the operating system level flush.
Independent Answer:A
Document Answers:file1:; file2:A
Comparison:Mismatch

Question 60
Choose two. Examine this statement: mysql>DROP ROLE r_role1, r_role2 ; Which two are
true?
A) You must revoke r_role1 and r_role2 from all users and other roles before dropping the roles.
B) You must revoke all privileges from r_role1 and r_role2 before dropping the roles.
C) It fails if at least one of the roles does not exist.
D) Existing connections can continue to use the roles' privileges until they reconnect.
E) It fails if you do not have the ADMIN OPTION of the roles r_role1 and r_role2.
F) It fails if any of the roles is specified in the mandatory_roles variable.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 61
Choose the best answer. Examine this command, which executes successfully: mysqlbackup --
defaults-file=/backups/server-my.cnf --backup-dir=/backups/full copy-back. Which statement is
true about the copy-back process?
A) It restores files from the data directory to their original MySQL server locations.
B) It restores files from the backup directory to their original MySQL server locations.
C) The copy-back process is used to overwrite a new backup over an existing backup.
D) The copy-back process makes inconsistent backups.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 62
Choose the best answer. You are upgrading a MySQL instance to the latest 8.0 version. Examine
this output:. You plan to add this parameter to the configuration: innodb_directories= '
/innodb_extras ' Which statement is true?
A) It allows scanning of other locations to discover more innodb tablespaces.
B) It defines all innodb tablespace options relative to a starting parent directory.
C) It adds more temporary workspace in addition to the innodb_tmpdir location.
D) It is not necessary because innodb_data_home_dir is already defined.
E) It moves all innodb tablespaces to the /innodb_extras directory to enable a new
innodb_data_home_dir to be defined.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 63
Choose two. Which two storage engines provide a view of the data consistent with the storage
system at any moment?
A) InnoDB
B) ARCHIVE
C) MyISAM
D) MEMORY
E) NDB
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 64
Choose two. Which two commands will display indexes on the parts table in the manufacturing
schema?
A) EXPLAIN SELECT INDEXES FROM manufacturing.parts;
B) SELECT * FROM information_schema.statistics WHERE table_schema= 'manufacturing'
AND TABLE_NAME= 'parts' ;
C) DESCRIBE manufacturing.parts;
D) SHOW INDEXES FROM manufacturing.parts;
E) SELECT * FROM information_schema.COLUMN_STATISTICS;
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 65
Choose two. Examine this query and output: mysql> EXPLAIN ANALYZE SELECT
city.CountryCode, country.Name AS Country_Name , city.Name, city.District, city.Population
FROM world.city INNER JOIN world.country ON country.Code = city.CountryCode WHERE
country.Continent = ' Asia ' AND city.Population > 1000000 ORDER BY city.Population DESC\
G Which two statements are true?
A) The country table is accessed as the first table, and then joined to the city table.
B) 35 rows from the city table are included in the result.
C) The optimizer estimates that 51 rows in the country table have Continent = ' Asia '.
D) It takes more than 8 milliseconds to sort the rows.
E) The query returns exactly 125 rows.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 66
Choose three. Which three statements are true about MySQL replication?
A) Each slave must have its own MySQL user for replication.
B) A replication user must have the SELECT privilege for all tables that need to be replicated.
C) Each instance in a replication topology must have a unique server ID.
D) Any instance can have multiple slaves, but it can have only one master.
E) Binary logs contain only transactions originating from a single MySQL instance.
F) Replication can use only TCP/IP connections.
G) Binary logging must be enabled on the master in order to replicate to other instances.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 67
Choose two. Which two are features of MySQL Enterprise Firewall?
A) blocking of potential threats by configuring pre- approved whitelists
B) modifying SQL statement dynamically with substitutions
C) recording incoming SQL statement to facilitate the creation of a whitelist of permitted
commands
D) automatic locking of user accounts who break your firewall
E) provides stateless firewall access to TCP/3306
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 68
Choose three. Which three are characteristics of a newly created role?
A) It is stored in the mysql.role table.
B) It can be dropped using the DROP ROLE statement.
C) It can be protected with a password.
D) It can be granted to user accounts.
E) It can be renamed using the RENAME ROLE statement.
F) It is created as a locked account.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 69
Choose two. Examine this SQL statement: mysql> GRANT r_read@localhost TO mark WITH
ADMIN OPTION; Which two are true?
A) Mark can grant the privileges assigned to the r_read@localhost role to another user.
B) Mark can grant the r_read@localhost role to another user.
C) ADMIN OPTION causes the role to be activated by default.
D) Mark must connect from localhost to activate the r_read@localhost role.
E) Mark can revoke the r_read@localhost role from another role.
F) ADMIN OPTION allows Mark to drop the role.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 70
Choose two. Which two MySQL Server accounts are locked by default?
A) any new ROLE accounts
B) any internal system accounts
C) any user created with a username, but missing the host name
D) any user set as DEFINER for stored programs
E) any user created without a password
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 71
Choose the best answer. Examine this SQL statement: UPDATE world.city SET Population =
Population * 1.1 WHERE CountryCode IN (SELECT Code FROM world.country WHERE
Continent = ' Asia ' ) Which set of privileges will allow Tom to execute this SQL statement?
A) GRANT UPDATE ON `world`.* TO `tom`@`%`; GRANT ALL PRIVILEGES ON
`world`.`country` TO `tom`@`%`;
B) GRANT UPDATE ON `world`.`city` TO `tom`@`%` GRANT SELECT ON `world`.* TO
`tom`@`%`
C) GRANT UPDATE ON `world`.`city` TO `tom`@`%` GRANT SELECT ON
`world`.`country` TO `tom`@`%`
D) GRANT ALL PRIVILEGES ON `world`.`city` TO `tom`@`%` GRANT SELECT (`code`)
ON `world`.`country` TO `tom`@`%`
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 72
Choose the best answer. You reconfigure and start a slave that was not replicating for several
days. The configuration file and CHANGE MASTER command are correct. Examine the GTID
information from both master and slave: Which statement is true?
A) Replication will fail because the master has already purged transactions with ccccc-cccc-cccc-
ccc-cccccccccc GTIDs.
B) Replication will work.
C) Replication will fail because the master does not have the required transaction with bbbbbbb-
bbbb-bbbb-bbbb-bbbbbbbbbb GTIDs in its binary logs.
D) Replication will fail because the slave has purged more aaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa
transactions than the master.
E) Replication will fail because of inconsistent numbers in ccccccc-cccc-cccc-ccccccccccccc
GTIDs.
Independent Answer:B
Document Answers:file1:; file2:B
Comparison:Mismatch

Question 73
Choose the best answer. Which step or set of steps can be used to rotate the error log?
A) Execute SET GLOBAL max_error_count = <number of messages at point to rotate>.
B) Rename the error log file on disk, and then execute FLUSH ERROR LOGS.
C) Execute SET GLOBAL log_error = ' <new error log file> '.
D) Execute SET GLOBAL expire_logs_days=0 to enforce a log rotation.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 74
Choose three. A MySQL server is monitored using MySQL Enterprise Monitor 's agentless
installation. Which three features are available with this installation method?
A) MySQL Replication monitoring
B) security-related advisor warnings
C) CPU utilization
D) disk usage and disk characteristics including disk advisors warnings
E) MySQL Query Analysis data
F) operating system memory utilization
G) network-related information and network characteristics
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 75
Choose two. You are backing up raw InnoDB files by using mysqlbackup. Which two groups of
files will be backed up during a full backup?
A) *.ibd files
B) ibbackup files
C) *.CSM files
D) ib_logfile* files
E) *.sdi files
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 76
Choose two. Examine this command and output: Which two statements are true?
A) The lock is an exclusive lock.
B) The lock is a shared lock.
C) The lock is a row-level lock.
D) The lock is an intentional lock.
E) The lock is at the metadata object level.
F) The lock is at the table object level.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 77
Choose two. Which two are characteristics of snapshot-based backups?
A) The frozen file system can be cloned to another virtual machine immediately into active
service.
B) There is no need for InnoDB tables to perform its own recovery when restoring from the
snapshot backup.
C) Snapshot-based backups greatly reduce time during which the database and applications are
unavailable.
D) A separate physical copy must be made before releasing the snapshot backup.
E) Snapshot backups can be used only in virtual machines.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 78
Choose two. Examine this MySQL client command to connect to a remote database: mysql -h
remote.example.org -u root -p --protocol=TCP --ssl-mode= Which two --ssl-mode values will
ensure that an X.509-compliant certificate will be used to establish the SSL/TLS connection to
MySQL?
A) DISABLED
B) REQUIRED
C) VERIFY_IDENTITY.
D) PREFERED
E) VERIFY_CA
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 79
Choose two. 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?
A) Extra startup time would be required for the MySQL server to reset the privileges.
B) MySQL binaries could be damaged, deleted, or altered.
C) SQL injections could be used to insert bad data into the database.
D) Data files could be deleted.
E) Users could overwrite configuration files.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 80
Choose two. Examine this list of MySQL data directory binary logs: binlog.000001
binlog.000002 ....... binlog.000289 binlog.000300 binlog.000301 binlog.index Now examine this
command, which executes successfully: mysqldump --delete-master-logs --all-databases >
/backup/db_backup.sql Which two are true?
A) All databases are backed up to the output file.
B) All non-active binary logs are removed from the master.
C) All binary logs are backed up and then deleted.
D) All binary logs are deleted from the master.
E) All databases, excluding master metadata, are backed up to the output file.
F) All details regarding deleted logs and master metadata are captured in the output file.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 81
Choose two. Which two statements are true about using backups of the binary log?
A) Binary logs are relatively small, and therefore, excellent for long-term storage and disaster
recovery.
B) Binary logs can always be used to unapply unwanted schema changes.
C) Multiple binary logs can be used to restore data.
D) They allow for point-in-time recovery of the data.
E) Multiple binary logs can be applied in parallel for faster data restoration.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 82
Choose the best answer. What does the binlog dump thread do?
A) It monitors and schedules the rotation/deletion of the binary logs.
B) It connects to the master and asks it to send updates recorded in its binary logs.
C) It acquires a lock on the binary log for reading each event to be sent to the slave.
D) It reads the relay log and executes the events contained in them.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 83
Choose two. Examine this command and output: Which two options will improve the security of
the MySQL instance?
A) Remove the world read/execute privilege from the accounting directory.
B) Remove world read privileges from the public_key.pem file.
C) Change the group ownership of the mysql directory to the mysql user group.
D) Change the parent directory owner and group to mysql.
E) Remove world read privileges from the server-cert.pem certificate file.
F) Remove group read/write privileges from the private_key.pem file.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 84
Choose two. 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?
A) MySQL Server stores a copy of the serialized data in the InnoDB user tablespace.
B) MySQL writes SDI to the binary log for distributed backups.
C) MySQL implicitly executes FLUSH TABLES and stores a snapshot backup of the metadata.
D) The metadata is serialized in
E) MySQL keeps InnoDB metadata changes in .sdi files in datadir. (SDI).
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 85
Choose the best answer. You execute this command: shell> mysqlpump --exclude-databases=%
--users Which statement is true?
A) It creates a logical backup of all metadata, but contains no table data.
B) It returns an error because the mysqldump command should have been used.
C) It creates a logical backup of only the users database.
D) It creates a logical backup of all MySQL user accounts.
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 86
Choose the best answer. Which feature is provided by multi-source replication?
A) providing a common source for the same data to be replicated to other servers
B) allowing multiple servers to back up to one server
C) managing conflicts between two sets of the same data
D) providing multi-source replication where all servers act as the master Anwer:B You might
choose to implement multi-source replication to achieve goals like these: æ©å¢¨å¦é™¢
1.Backing up multiple servers to a single server. 2.Merging table shards. 3.Consolidating data
from multiple servers to a single server. https://dev.mysql.com/doc/refman/8.0/en/replication-
multi-source.html æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 87
Choose three. Which three commands can report all the current connections running on the
MySQL server?
A) SELECT * FROM performance_schema.events_transactions_current
B) SELECT * FROM performance_schema.threads
C) SHOW FULL PROCESSLIST
D) SELECT * FROM information_schema.processlist
E) SHOW EVENTS
F) SELECT * FROM sys.metrics
G) SELECT * FROM information_schema.events
H) SELECT * FROM sys.statement_analysis
Independent Answer:BCD
Document Answers:file1:BCD
Comparison:Match

Question 88
Choose three. Which three are requirements for a secure MySQL Server environment?
A) Minimize the number of non-MySQL Server-related processes running on the server host.
B) Restrict the number of OS users that have access at the OS level.
C) Ensure appropriate file system privileges for OS users and groups.
D) Keep the entire software stack on one OS host.
E) Encrypt the file system to avoid needing exact file-system permissions.
F) Run MySQL server as the root user to prevent incorrect sudo settings.
Independent Answer:BCD
Document Answers:file1:BCD
Comparison:Match

Question 89
Choose the best answer. You want to dump all databases with names that start with "db". Which
command will achieve this?
A) mysqlpump > all_db_backup.sql
B) mysqlpump --include-databases=db% --result-file=all_db_backup.sql
C) mysqlpump --include-databases=db -- result-file=all_db_backup.sql
D) mysqlpump -- include-tables-db.% --result-file=all_db_backup.sql
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 90
Choose the best answer. You issue this command: SHOW SLAVE STATUS In the output, there is
a value for seconds_behind_master. How is this time calculated?
A) It is the time between the I/O thread receiving details of the master's last transaction and the
time it was applied by the SQL thread.
B) It is the time between the most recent transaction written to the relay logs and the time it was
committed on the master.
C) It is the time between the I/O thread receiving details of the master's last transaction and the
time it was written to the relay log on the slave.
D) It is the time between the most recent transaction applied by a SQL thread and the time it was
committed on the master.
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 91
Choose three. Which three actions will secure a MySQL server from network-based attacks?
A) Construct a perimeter network to allow public traffic
B) Place the MySQL instance behind a firewall.
C) Use network file system (NFS) for storing data.
D) Change the listening port to 3307.
E) Use MySQL Router to proxy connections to the MySQL server.
F) Allow connections from the application server only.
Independent Answer:BEF
Document Answers:file1:BEF
Comparison:Match

Question 92
Choose the best answer. Consider this shell output and executed commands: [root@oel7~] # ps
aux | grep mysqld mysql 2076 3.5 24.6 1386852 372572 2 Ssl 12:01 0:01 /usr/sbin/mysqld
[root@oel7 ~]# kill -15 2076 Which statement is true about MySQL server shutdown?
A) kill -15 and kill -9 are effectively the same forced shutdown that risk committed transactions
not written to disk.
B) mysqld safe prohibits commands that would harm the operation of the server. An error would
be returned by the kill command.
C) kill -15 carries out a normal shutdown process, such as mysqladmin shutdown.
D) kill -15 should be avoided. Use other methods such as mysqladmin shutdowm or systemctl
stop mysqld.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 93
Choose two. Which two statements are true about the data dictionary object cache?
A) The dictionary object caches use a Least Recently Used (LRU) algorithm to manage entries in
each cache.
B) Character set and collation definition objects are not cached.
C) All dictionary object caches have a hard-coded size.
D) If the dictionary object cache becomes full, MySQL server will be unable to create any more
tables/objects.
E) tablespace_definition_cache sets the number of tablespace objects that can be stored in the
dictionary object cache.
Independent Answer:AE
Document Answers:file1:AE
Comparison:Match

Question 94
choose two Examine Joe's account: CREATE USER 'joe'@'%' IDENTIFIED BY '*secret*'
GRANT ALL PRIVILEGES ON *.* TO 'joe'@'%' All existing connections for joe are killed.
Which two commands will stop joe establishing access to the MySQL instance? A)ALTER
USER 'joe'@'%' ACCOUNT LOCK
B) ALTER USER 'joe'@'%' PASSWORD HISTORY :
C) REVOKE ALL PRIVILEGES ON *.* FROM 'joe'@'%'
D) ALTER USER 'joe'@'%' SET password='*invalid*'
E) ALTER USER 'joe'@'%' IDENTIFIED BY '*invalid*' PASSWORD EXPIRE
F) REVOKE USAGE ON *.* FROM 'joe'@'%'
Independent Answer:AE
Document Answers:file1:AE
Comparison:Match

Question 95
Choose the best answer. You must replay the binary logs on your MySQL server. Which
command do you use?
A) cat binlog.000003 binlog.000004 binlog.000005 | mysql -h 127.0.0.1
B) mysqlpump -h 127.0.0.1 binlog.000003 binlog.000004 binlog.000005
C) mysql -h 127.0.0.1 --local-infile binlog.000003 binlog.000004 binlog.000005
D) mysqlbinlog binlog.000003 binlog.000004 binlog.000005 | mysql -h 127.0.0.1
E) mysqlbinlog -h 127.0.0.1 binlog.000003 binlog.000004 binlog.000005
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 96
choose two. Examine the modified output: mysql> SHOW SLAVE STATUS\G
******************1. row******************** Slave_IO_Running: Yes
Slave_SQL_Running: Yes Seconds_Behind_Master: 1612 Seconds_Behind_Master value is
steadily growing. What are two possible causes?
A) The master is producing a large volume of events in parallel but the slave is processing them
serially.
B) This value shows only I/O latency and is not indicative of the size of the transaction queue.
C) One or more large tables do not have primary keys.
D) The master is most probably too busy to transmit data and the slave needs to wait for more
data.
E) The parallel slave threads are experiencing lock contention.
Independent Answer:AD
Document Answers:file1:AD
Comparison:Match

Question 97
Choose three. Which three sets of item information are visible in the mysql system database?
A) time zone information and definitions
B) help topics
C) plugins
D) audit log events
E) performance monitoring information
F) rollback segments
G) information about table structures
Independent Answer:ABC
Document Answers:file1:ABC
Comparison:Match

Question 98
Choose the best answer. You are using an existing server with a new configuration. MySQL
Server fails to start. Examine this snapshot of the error log: 190925 12:49:05 InnoDB:
Initializing buffer pool, size = 3.0G 190925 12:49:05 InnoDB: Completed initialization of buffer
pool InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes InnoDB: than
specified in the .cnf file 0 26214400 bytes! 190925 12:49:05 [ERROR] Plugin 'InnoDB' init
function returned error . 190925 12:49:05 [ERROR] Plugin 'InnoDB' registration as a
STORAGE ENGINE failed. 190925 12:49:05 [ERROR] Aborting 190925 12:49:05 [Note]
/usr/sbin/mysqld: Shutdown complete Which action would allow the server to start?
A) Execute mysqladmin flush-logs.
B) Create a new ib_logfile0 file of size 26214400.
C) Remove ib_logfile0 and ib_logfile1 files from the file system.
D) First run mysqld --initialize to refresh the size of ib_logfile.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 99
Choose the best answer Users report errors when trying to connect from 192.0.2.5 and is
connecting using the mysql_native password authentication plugin. Examine these commands
and output: Which statement identifies the cause of the errors?
A) max_connections is too small.
B) Network connectivity issues occurring between client and the MySQL instance.
C) Connections are attempted without a valid user account or password.
D) User accounts are defined using the mysql_native_pasword plugin for password
authentication.
E) thread_cache is too small.
F) skip_name_resolve is enabled. æ©å¢¨å¦é™¢
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 100
Choose the best answer You have configured MySQL Enterprise Transparent Data Encryption
(TDE). What command would you use to encrypt a table?
A) UPDATE <table> SET ENCRYPTION= 'Y';
B) ALTER INSTANCE ROTATE INNODB MASTER KEY;
C) UPDATE information_schema.tables SET encryption='Y' WHERE table_name='table';
D) ALTER TABLE <table> ENCRYPTION='Y';
Independent Answer:D
Document Answers:file1:D
Comparison:Match

Question 101
Choose two. Examine this statement and output: mysql> SHOW GRANTS FOR jsmith; Grants
for jsmith@% GRANT USAGE ON *.* TO 'jsmith@'%' GRANT UPDATE (Name) ON
'world.country' TO 'jsmith'@'%'; 2 rows in set (0.00 sec) Which two SQL statements can j smith
execute?
A) UPDATE world.country SET Name=CONCAT ('New ' ,Name) ;
B) UPDATE world.country SET Name='one' LIMIT 1;
C) UPDATE world.country SET Name=' first ' ORDER BY Name LIMIT 1;
D) UPDATE world.country SET Name='all';
E) UPDATE world.country SET Name=' new' WHERE Name='old';
Independent Answer:BD
Document Answers:file1:BD
Comparison:Match

Question 102
Choose the best answer. There has been an accidental deletion of data in one of your MySQL
databases. You determine that all entries in the binary log file after position 1797 must be
replayed. Examine this partial command: mysqlbinlog binlog.000008 --start-position=1798
Which operation will complete the command?
A) --write-to-remote-server must be added to the command line to update the database tables.
B) No changes required. It automatically updates the MySQL Server with the data.
C) It can be piped into the MySQL Server via the command-line client.
D) You must use --stop position=1797 to avoid the DELETE statement that caused the initial
problem.
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 103
Choose three. Which three requirements must be enabled for group replication?
A) replication filters
B) semi-sync replication plugin
C) slave updates logging
D) binary log checksum
E) primary key or primary key equivalent on every table
F) binary log MIXED format
G) binary log ROW format
Independent Answer:CE
Document Answers:file1:CE
Comparison:Match

Question 104
Choose the best answer. Which utility would you use to view the queries in the slow query log
sorted by average query time?
A) mysqlcheck
B) mysqlshow
C) mysqlimport
D) mysqldump
E) mysqldumpslow
Independent Answer:E
Document Answers:file1:E
Comparison:Match

Question 105
Choose four. You must store connection parameters for connecting a Linux-based MySQL client
to a remote Windows-based MySQL server listening on port 3309. Which four methods can be
used to configure user, host, and database parameters?
A) Embed login information into the SSH tunnel definition.
B) Execute mysql_config_editor to configure the user connection.
C) Configure ~/.my.cnf.
D) Execute the mysqladmin command to configure the user connection.
E) Execute the command in a bash script.
F) Configure environment variables.
G) Define a UNIX socket.
H) Use the usermod program to store static user information.
I) Configure ~/.ssh/config for public key authentication.
Independent Answer:BCEF
Document Answers:file1:BCEF
Comparison:Match

Question 106
Choose two. Mary connects to a Linux MySQL Server from a client on a Windows machine.
Examine this statement and output: Which two are true?
A) Mary connected from a client machine whose IP address is 192.0.2.101.
B) Mary connected to the database server whose IP address is 192.0.2.101.
C) Mary has the privileges of account mary@%.
D) Mary connected using a UNIX socket.
E) Mary authenticated to the account [email protected].
Independent Answer:AC
Document Answers:file1:AC
Comparison:Match

Question 107
Choose the best answer. Which statement is true about the my.ini file on a Windows platform
while MySQL server is running?
A) MySQL server does not use the my.ini option file for server configuration options.
B) The option file is read by the MySQL server service only at start up.
C) Editing the file will immediately change the running server configuration.
D) Using SET PERSIST will update the my.ini file.
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 108
Choose two. Examine these InnoDB Cluster parameter settings:
cluster.setInstanceOption('host1:3377', 'memberWeight', 40)
cluster.setInstanceOption('host2:3377', 'memberWeight', 30)
cluster.setInstanceOption('host3:3377', 'memberweight', 40)
cluster.setInstanceOption('host3:3377', 'exitstateAction', "ABORT_SERVER") cluster.setOption
("expelTimeout",1) Now examine the partial status: A permanent network failure isolates host3.
Which two statements are true?
A) The instance deployed on host3 will automatically rejoin the cluster when connectivity is re-
established.
B) Failure of the instance deployed on host1 provokes an outage.
C) The instance deployed on host3 is expelled from the cluster and must be rejoined using
cluster.addInstance('host3:3377').
D) The primary instance can be specified by using the command cluster.setPrimaryInstance
(<host>:<port>).
E) The instance deployed on host2 is elected as the new primary instance.
F) The issuing command cluster.switchToMultiPrimaryMode() will fail to enable multi-primary
mode. æ©å¢¨å¦é™¢
Independent Answer:DF
Document Answers:file1:DF
Comparison:Match

Question 109
Choose two. You administer a three node, single primary InnoDB Cluster. Examine
cluster.status() displayed here: "statusText": "Cluster is ONLINE and can tolerate up to ONE
failure." Which two statements are true?
A) If two instances are unreachable because of network failure, the cluster will reconfigure to
work with a single instance.
B) Reconfiguring the cluster as multi-primary, will increase tolerance to two failures.
C) There is a quorum and transactions can be committed normally.
D) If two instances crash, it will produce an outage.
E) Restarting an arbitrary instance will always provoke primary instance failover.
F) Shutting down two instances with the SHUTDOWN command will produce an outage.
Independent Answer:DF
Document Answers:file1:DF
Comparison:Match

Question 110
Choose three. Which three statements are true about MySQL Enterprise Firewall?
A) On Windows systems, it is controlled and managed using the Windows Internet Connection
Firewall control panel.
B) System tables named firewall_users and firewall_whitelist in the mysql database provide
persistent storage of firewall data.
C) It is available only in MySQL Enterprise versions.
D) It provides INFORMATION_SCHEMA tables that enable views into firewall data.
E) Firewall functionality is dependent on SHA-256 and ANSI-specific functions built in to the
mysql.firewall table.
F) It shows only notifications for blocked connections, which originated outside of your
network's primary domain.
Independent Answer:BCD
Document Answers:file1:BCD
Comparison:Match

Question 111
Choose two. Which two statements are true about general tablespaces?
A) General tablespaces support temporary tables.
B) Dropping a table from a general tablespace releases the space back to the operating system.
C) An existing table can be moved into a general tablespace.
D) A general tablespace can have multiple data files.
E) A new table can be created explicitly in a general tablespace.
Independent Answer:CE
Document Answers:file1:CE
Comparison:Match

Question 112
Choose the best answer. 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?
A) RESET MASTER; SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa:1-
2312; SET GLOBAL gtid_executed=aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa:1-10167;
B) RESET MASTER; SET GLOBAL gtid_purged=aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa:1-10167;
C) RESET SLAVE; SET GLOBAL gtid_purged=aaaaa-aaa-aaaa-aaaa-aaaaaaaa:1-3820; SET
GLOBAL gtid_executed=aaaaaa-aaaa-aaa-aaaa-aaaaaaaaaaa:1-10300;
D) SET GLOBAL gtid_purged=aaaaaa-aaa-aaa-aaaa-aaaaaaaa:1-2312, bbbbbb-bbbb-bbbb-bbbb-
bbbbbbbbbb:1-9; SET GLOBAL gtid_executed=aaaaaaa-aaaa-aaaa-aaaa-aaaaaa:1-10167;
E) RESET SLAVE; SET GLOBAL gtid_purged=aaaaaaa-aaa-aaaa-aaa-aaaaaaaa:1-10167;
Independent Answer:D
Document Answers:file1:D; file2:D
Comparison:Match

Question 113
Choose two. You have semi-synchronous replication configured and working with one slave.
rpl_semi_sync_master_timeout has never been reached. You find that the disk system on the
master has failed and as a result, the data on the master is completely unrecoverable. Which two
statements are true?
A) The slave automatically identifies that the master is unreachable and performs any required
actions so that applications can start using the slave as the new master.
B) Reads from the slave can return outdated data until the value of the
rpl_semi_sync_master_timeout variable is reached.
C) No committed transactions are lost.
D) Reads from the slave can return outdated data for some time, until it applies all transactions
from its relay log.
E) A small amount of committed transactions may be lost in case they were committed just
before the disk failure.
F) As soon as the incident happens, application can read data from the slave and rely on it to
return a full and current set of data.
Independent Answer:CD
Document Answers:file1:CD
Comparison:Match

Question 114
Choose the best answer. You have configured a working MySQL InnoDB Cluster in single-
primary mode. What happens when the primary instance goes down due to a network problem?
A) The cluster will continue to function with read-only members.
B) A new primary is automatically elected.
C) The cluster goes into wait mode until a new member is manually promoted as primary.
D) The cluster detects network partitioning and shuts down to remain consistent.
E) All remaining members in the cluster are automatically set to read-write mode.
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 115
Choose two. Which two statements are true about raw binary backups?
A) They are converted to a highly compressible binary format.
B) They are required to obtain FIPS security compliance.
C) The resulting files are easily human readable.
D) The data format is identical to how MySQL stores the data on disk.
E) They are faster than logical backups because the process is a simple file or file system copy.
Independent Answer:DE
Document Answers:file1:DE
Comparison:Match

Question 116
Choose the best answer. Which characters are most commonly used in a SQL injection attack?
A) ' and "
B) < and >
C) null (\0) and newline (\n)
D) ^ and $
E) + and - Anwser:A Users may attempt SQL injection by any of the following methods: •
Entering single and double quotation marks (' and ") in web forms • Modifying dynamic URLs
by adding %22 ("), %23 (#), and %27 (') to them • Entering characters, spaces, and special
symbols rather than numbers in numeric fields æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 117
Choose the best answer. The mysqld instance has the connection control plugin enabled with
these settings: connection_control_min_connection_delay=1000
connection_control_max_connection_delay=2000 The minimum and maximum delays need to
be increased to 3000 and 5000, respectively. A command is executed: mysql> SET GLOBAL
connection_control_min_connection_delay=3000; What is the result?
A) Only the minimum connection value is increased to 3000.
B) The minimum connection value is changed to 2000.
C) The minimum value increases to 3000 and the maximum value increases to 4000.
D) An error is returned. Anser:D connection_control_min_connection_delay cannot be set
greater than the current value of connection_control_max_connection_delay.
connection_control_max_connection_delay cannot be set less than the current value of
connection_control_min_connection_delay.
https://dev.mysql.com/doc/refman/8.0/en/connection-control-installation.html æ©å¢¨å¦é™¢
Independent Answer:D
Document Answers:file1:; file2:D
Comparison:Mismatch

Question 118
Choose two. You are investigating performance problems in a MySQL database; all data fits in
memory. You determine that SELECT queries to one table is the main cause for poor response
times. Which two have the biggest potential for eliminating the problem?
A) high concurrency
B) operating system resources
C) column definitions
D) innodb mutexes
E) non-transaction storage engine
F) table indexes
Independent Answer:AE
Document Answers:file1:AE
Comparison:Match

Question 119
Choose the best answer. Examine these commands and results: SHOW GRANTS FOR jane;
GRANT USAGE ON *.* TO ‘’ Jane must create a temporary table named TOTALSALES
in the SALES database. Which statement will provide Jane with the required privileges based on
the principle of least privilege?
A) GRANT CREATE TEMPORARY TABLES, INSERT, UPDATE, DELETE, SELECT ON
sales.totalsales TO jane;
B) GRANT CREATE TEMPORARY TABLES ON sales.* TO jane;
C) GRANT CREATE TEMPORARY TABLES ON sales.totalsales TO jane;
D) GRANT ALL ON sales.* TO jane; Anser:B 必须是 æ•°æ®åº“å.* æ©å¢¨å¦é™¢
Independent Answer:
Document Answers:file1:
Comparison:Match

Question 120
Choose three. Which three methods display the complete table definition of an InnoDB table?
A) hexdump -v -C table.frm
B) REPAIR TABLE table USE_FRM
C) mysqldump --no-data schema table
D) Query the Information Schema.
E) SELECT * FROM table 1\G
F) SHOW CREATE TABLE
Independent Answer:CDF
Document Answers:file1:CDF
Comparison:Match

Question 121
Choose the best answer. Your MySQL Server is running locally on your Linux installation, and
has SSL connections configured but not mandatory. # mysql -u root -h localhost -p Enter
password: welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL
connection id is 9 Server version: 8.0.18-commercial MySQL Enterprise Server - Commercial
mysql> STATUS; Connection id: 9 Current database: Current user: root@localhost SSL: Not in
use Current pager: stdout Using outfile:' ' Using delimiter: ; Server version: 8.0. 18-commercial
MySQL Enterprise Server - Commercial Protocol version: 10 Connection: Localhost via UNIX
socket server characterset: utf8mb4 Db characterset: utf8mb4 Client characterset: utf8mb4 Conn.
characterset: utf8mb4 UNIX socket: /var/lib/mysql/mysql.sock Uptime: 2 min 54 sec Threads: 2
Questions: 10 slow queries: 0 opens: 132 Flush tables: 3 open tables: 52 Queries per second avg:
0.057 | mysql> SHOW GLOBAL VARIABLES WHERE Variable_name LIKE 'ssl%' AND
Value !=''; +---------------+-----------------+ | Variable_name | Value +---------------+-----------------+
| ssl_ca | ssl_cert | ssl_fips_mode | OFF | ssl_key +---------------+-----------------+ | ca.pem | server-
cert.pem | | server-key.pem | | | What is the reason for SSL not being used?
A) It is connected via a UNIX socket.
B) A current database is not selected. There is nothing to encrypt.
C) The root user cannot use encryption.
D) The root user must use ssl_fips_mode = ON. æ©å¢¨å¦é™¢
Independent Answer:A
Document Answers:file1:A
Comparison:Match

Question 122
Choose the best answer. Your my.cnf file contains these settings: [mysqld] log_output=FILE
slow_query_log long_query_time=2.01 log_queries_not_using_indexes 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?
A) log_throttle_queries_not_using_indexes=5
B) long_query_time=5. log_throttle_queries_not_using_indexes=5
C) long_query_time=5 min_examined_row_limit=5000
D) long_query_time=5 log_throttle_queries_not_using_indexes=5
min_examined_row_limit=5000
E) log_throttle_queries_not_using_indexes=5 min_examined_row_limit=5000
F) long_query_time=5
G) min_examined_row_limit=5000
Independent Answer:C
Document Answers:file1:C
Comparison:Match

Question 123
Choose the best answer. Which condition is true about the use of the hash join algorithm?
A) At least one of the tables in the join must have a hash index.
B) No index can be used for the join.
C) The query must access no more than two tables.
D) The smallest of the tables in the join must fit in memory as set by join_buffer_size.
Independent Answer:B
Document Answers:file1:B
Comparison:Match

Question 124
Choose the best answer. You encountered an insufficient privilege error in the middle of a long
transaction. The database administrator is informed and immediately grants the required
privilege: GRANT UPDATE ON world.city TO 'user1' ; How can you proceed with your
transaction with the least interruption?
A) Close the connection, reconnect, and start the transaction again.
B) Re-execute the failed statement in your transaction.
C) Roll back the transaction and start the transaction again in the same session.
D) Change the default database and re- execute the failed statement in your transaction.
Independent Answer:B
Document Answers:file1:B; file2:B
Comparison:Match
Question 125
Choose three. Identify three functions of MySQL Enterprise Monitor.
A) Analyze query performance.
B) Start a logical backup.
C) Determine the availability of monitored MySQL servers.
D) Centrally manage users.
E) Start a MySQL Enterprise backup.
F) Centrally manage server configurations.
G) Start and stop MySQL Server.
H) Create customized alerts and provide notification alerts.
Independent Answer:AC
Document Answers:file1:AC
Comparison:Match

Question 126
Choose two. Which two methods allow a DBA to reset a user's password?
A) SET PASSWORD statement
B) mysql_secure_installation utility
C) ALTER USER statement
D) GRANT statement
E) mysqladmin client program
Independent Answer:AC
Document Answers:file1:AC
Comparison:Match

Question 127
Choose two. A scientific data gathering application uses a MySQL instance back end for data
management. There is a high concurrency of transactions at thousands of transactions per second
of volatile data. A restore from binary logs is planned using the command: mysqlbinlog --start-
datetime='2019-08-01 11:00:00' --stop-datetime='2019-08-10 08:30:25' binlog.000238
binlog.000239 binlog.000240 | mysql Which two characteristics cause the restore to be
inconsistent to the original data?
A) Transaction rate is too high to get a consistent restore.
B) Multiple binary logs cannot be specified on the command line.
C) Temporary tables cannot persist across binary logs.
D) The temporal values do not offer high enough precision.
E) The time span of binary logs is too long to restore.
Independent Answer:AD
Document Answers:file1:AD
Comparison:Match

Question 128
Choose four. 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 to connect to the world database. Which four
options need to be specified to complete this task with a single command?
A) --port=3306
B) --protocol=pipe
C) --host=192.0.2.1
D) --protocol=UDP
E) --user=admin
F) --password
G) --socket=/tmp/mysql.sock
H) --shared-memory-base-name=world
I) --database=world
Independent Answer:BCEF
Document Answers:file1:BCEF
Comparison:Match

Question 129
Examine this statement, which executes successfully: You want to improve the performance of
this query: Which change enables the query to succeed while accessing fewer rows?
A. ALTER TABLE world.city ADD SPATIAL INDEX (Name);
B. ALTER TABLE world.city ADD SPATIAL INDEX (Population);
C. ALTER TABLE world.city ADD INDEX (Population);
D. ALTER TABLE world.city ADD INDEX (Name); E. ALTER TABLE world.city ADD
FULLTEXT INDEX (Name); F. ALTER TABLE world.city ADD FULLTEXT INDEX
(Population);
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 130
You wish to protect your MySQL database against SQL injection attacks. Which method would
fail to do this?
A. installing and configuring the Connection Control plugin
B. avoiding concatenation of SQL statements and user-supplied values in an application
C. using stored procedures for any database access
D. using PREPARED STATEMENTS
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 131
Which three requirements must be enabled for group replication? (Choose three.)
A. slave updates logging
B. semi-sync replication plugin
C. primary key or primary key equivalent on every table
D. binary log checksum E. binary log ROW format F. binary log MIXED format G. replication
filters
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 132
Which three are types of InnoDB tablespaces? (Choose three.)
A. redo tablespaces
B. encryption tablespaces
C. schema tablespaces
D. data tablespaces E. undo tablespaces F. temporary table tablespaces
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 133
You have semi-synchronous replication configured and working with one slave.
rpl_semi_sync_master_timeout has never been reached. You find that the disk system on the
master has failed and as a result, the data on the master is completely unrecoverable. Which two
statements are true? (Choose two.)
A. No committed transactions are lost.
B. The slave automatically identifies that the master is unreachable and performs any required
actions so that applications can start using the slave as the new master.
C. As soon as the incident happens, application can read data from the slave and rely on it to
return a full and current set of data. 3/61
D. Reads from the slave can return outdated data until the value of the
rpi_semi_sync_master_timeout variable is reached. E. Reads from the slave can return outdated
data for some time, until it applies all transactions from its relay log. F. A small amount of
committed transactions may be lost in case they were committed just before the disk failure.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 134
Examine this statement and output: Which two SQL statements can jsmith execute? (Choose
two.)
A. UPDATE world.country SET Name='all';
B. UPDATE world.country SET Name='one' LIMIT 1;
C. UPDATE world.country SET Name='new' WHERE Name='old';
D. UPDATE world.country SET Name=CONCAT('New ',Name); 4/61 E. UPDATE
world.country SET Name='first' ORDER BY Name LIMIT
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 135
Which two statements are true about MySQL Enterprise Backup? (Choose two.)
A. It supports backing up only table structures.
B. It can perform hot or warm backups.
C. It creates logical backups.
D. It supports the creation of incremental backups. E. It supports backup of a remote MySQL
system. F. It supports restoring to a remote MySQL system.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 136
Four nodes are configured to use circular replication. Examine these configuration parameters
for each node: Which statement is true?
A. Each slave thread is responsible for updating a specific database.
B. Cross-database constraints can cause database inconsistency.
C. Increasing slave_parallel_workers will improve high availability.
D. Setting slave_preserve_commit_order to on will improve data consistency. E. Setting
slave_parallel_type=DATABASE won't work for circular replication; it should be set to
LOGICAL_CLOCK. F. Setting transaction_allow_batching to on will improve data consistency.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 137
Examine this command and output: 5/61 Which statement is true?
A. Firewall_cached_entries is the number of statements found in the query cache for users in
DETECTING mode.
B. Firewall_access_denied is the number of connection attempts from prohibited hosts that are
denied.
C. Firewall_access_suspicious is the number of statements logged as suspicious for users in
DETECTING mode.
D. Firewall_access_granted is the number of connections granted from whitelisted hosts.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 138
What is the correct syntax for using transparent data encryption with an existing InnoDB table?
A. ALTER TABLE t1 ADD ENCRYPTED_TABLESPACE = 'Y';
B. ALTER TABLE t1 ENCRYPTION='Y';
C. ALTER TABLE t1 WITH ENCRYPTION USING MASTER KEY;
D. ALTER TABLE t1 SET TDE = 'ON';
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 139
Examine this command, which executes successfully: Which statement is true?
A. Only files for MySQL or Its built-in storage engines are backed
B. Only non-encrypted files are backed up.
C. The backup includes only data files and their metadata.
D. Only InnoDB data and log files are backed up. 6/61 E. Only tables stored in their own
tablespaces are backed up.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 140
You have just installed MySQL on Oracle Linux and adjusted your /etc/my.cnf parameters to suit
your installation. Examine the output: What statement is true about the start attempt?
A. MySQL server was not started due to a problem while executing process 2732.
B. MySQL server continued to start up even though another process existed.
C. systemd found the mysqld service disabled and failed to start it.
D. systemd waited for 30 seconds before timing out and start up failed. E. systemd attempted to
start mysqld, found another systemd mysqld process running, and shut it down.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 141
How can mysql_multi be configured to allow MySQL instances to use the same port number?
A. The instances use different user accounts unique to each instance.
B. The instances listen on different IP addresses.
C. The instances use different socket names.
D. The instances have appropriate net masks set.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 142
What does the slave I/O thread do? 7/61
A. connects to the master and requests it to send updates recorded in its binary logs
B. monitors and schedules I/O calls to the subsystem for the relay logs
C. acquires a lock on the binary log for reading each event to be sent to the slave
D. reads the relay log and executes the events contained in them
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 143
You have an installation of MySQL 8 on Oracle Linux. Consider the outputs: Which statement is
true about disk temporary tables for this installation?
A. Only internal temporary tables from the optimizer will be created in tmpdir.
B. Temporary tables will use the InnoDB temporary tablespace located in datadir.
C. Temporary tables are created in tmpdir only if configured to use MyISAM.
D. Temporary tables are created in tmpdir only after they reach tmp_tabie_size. E. Temporary
tables will use the InnoDB temporary tablespace located in /tmp.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 144
Which three are requirements for a secure MySQL Server environment? (Choose three.)
A. Restrict the number of OS users that have access at the OS level.
B. Ensure appropriate file system privileges for OS users and groups.
C. Minimize the number of non-MySQL Server-related processes running on the server host.
8/61
D. Encrypt the file system to avoid needing exact file-system permissions. E. Keep the entire
software stack on one OS host. F. Run MySQL server as the root user to prevent incorrect sudo
settings.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 145
Examine this parameter setting: audit_log=FORCE_LOG_PERMANENT What effect does this
have on auditing?
A. It will force the load of the audit plugin even in case of errors at server start.
B. It causes the audit log to be created if it does not exist.
C. It prevents the audit plugin from being removed from the running server.
D. It prevents the audit log from being removed or rotated.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 146
Your MySQL instance is capturing a huge amount of financial transactions every day in the
finance database. Company policy is to create a backup every day. The main tables being
updated are prefixed with transactions-. These tables are archived into tables that are prefixed
with archives- each month. mysqlbackup -- optimistic-busy-tables="^finance\.transactions-.*"
backup Which optimization process best describes what happens with the redo logs?
A. The redo logs are backed up first, then the transaction and archive tables.
B. The redo logs are backed up only if there are changes showing for the transactions tables.
C. The redo logs are not backed up at all.
D. The archive tables are backed up first, then the transaction tables and redo logs. E. The
transaction tables are backed up first, then the archive tables and redo logs.
Independent Answer:D
Document Answers:file2:D
Comparison:Match
Question 147
You issue this command: 9/61 SHOW SLAVE STATUS - In the output, there is a value for
Seconds_behind_master. How is this time calculated?
A. It is the time between the I/O thread receiving details of the master's last transaction and the
time it was applied by the SQL thread.
B. It is the time between the most recent transaction written to the relay logs and the time it was
committed on the master.
C. It is the time between the I/O thread receiving details of the master’s last transaction and
the time it was written to the relay log on the slave.
D. It is the time between the most recent transaction applied by a SQL thread and the time it was
committed on the master.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 148
All MySQL Server instances belonging to InnoDB Cluster have SSL configured and enabled.
You must configure InnoDB Cluster to use SSL for group communication. Which two statements
are true? (Choose two.)
A. SSL group communication must be enabled at cluster creation time by specifying
createCluster ({memberSslMode: 'REQUIRED'}). B.Configuring SSL group communication
also configures SSL distributed recovery.
C. An existing InnoDB Cluster must be dissolved and created from scratch to enable SSL for
group communication.
D. SSL group communication can be enabled for an existing cluster, one instance at time, by
setting group_replication_ssl_mode. E. If only some InnoDB Cluster members are enabled for
SSL group communication, and --ssl- mode=PREFERRED, communication will fall back to
unencrypted connection. F. SSL group communication requires the use of an additional set of
parameters group_replication_recovery_*.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 149
You are considering using file-system snapshots to back up MySQL. Which three statements are
true? (Choose three.)
A. They take roughly twice as long as logical backups.
B. They allow direct copying of table rows with operating system copy commands. 10/61
C. They work best for transaction storage engines that can perform their own recovery when
restored.
D. The backup window is almost zero from the perspective of the application. E. They do not
back up views, stored procedures, or configuration files. F. There is a slight performance cost
while the snapshot is active. G. They do not use additional disk space.
Independent Answer:D
Document Answers:file2:D
Comparison:Match
Question 150
Examine this snippet from the binary log file named binlog.000036: The rental table was
accidentally dropped, and you must recover the table. You have restored the last backup, which
corresponds to the start of the binlog.000036 binary log. Which command will complete the
recovery?
A. mysqlbinlog --stop-position=500324 binlog.000036 | mysql
B. mysqlbinlog --stop-datetime='2019-ll-20 14:55:18' binlog.000036 | mysql
C. mysqlbinlog --stop-position=5004S3 binlog.000036 | mysql
D. mysqlbinlog --stop-datetime='2019-ll-20 14:55:16' binlog.000036 | mysql
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 151
Examine these entries from the general query log: All UPDATE statements reference existing
rows. Which describes the outcome of the sequence of statements? 11/61
A. Connection 24 experiences a lock wait timeout.
B. Connection 25 experiences a lock wait timeout.
C. A deadlock occurs immediately.
D. All statements execute without error. E. A deadlock occurs after innodb_lock_wait_timeout
seconds.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 152
You want to dump all databases with names that start with "db". Which command will achieve
this?
A. mysqlpump --include-tables=db.% --result-file=all_db_backup.sql
B. mysqlpump > all_db_backup.sql
C. mysqlpump --include-databases=db --result-file=all_db_backup.sql
D. mysqlpump --include-databases=db% --result-file=all_db_backup.sql
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 153
Which two statements are true about the binary log encryption feature? (Choose two.)
A. It encrypts any connecting slaves connection thread.
B. It can be set at run time.
C. It requires a keyring plugin.
D. When enabled it encrypts existing binary logs. E. It can be activated per session.
Independent Answer:B
Document Answers:file2:B
Comparison:Match
Question 154
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.)
A. ibtmp1
B. undo_001 12/61
C. ib_buffer_pool
D. ibdata1 E. mysql.ibd F. ib_logfile0
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 155
Which two statements are true about the mysqld-auto.cnf file? (Choose two.)
A. This file is for storing MySQL Server configuration options in ISON format.
B. This file is for logging purposes only and is never processed.
C. It is read and processed at the beginning of startup configuration.
D. It is read and processed at the end of startup configuration. E. It is always updated with
changes to system variables. F. This file is for storing MySQL server_uuid values only.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 156
MySQL is installed on a Linux server with this configuration: Which method sets the default
authentication to SHA-256 hashing for authenticating user account passwords?
A. Set validate-user-plugins=caching_sha2_password in the configuration file.
B. Define CREATE USER ''@'%' IDENTIFIED WITH sha256_password in the MySQL
instance.
C. Add default_authentication_plugin=mysql_native_password in the configuration file.
D. Add default_authentication_plugin=sha256_password in the configuration file.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 157
The data in this instance is transient; no backup or replication will be required. It is currently
under performing. The database size is static and including indexes is 19G. Total system memory
is 32G. After profiling the system, you highlight these MySQL status and global variables: 13/61
The OS metrics indicate that disk is a bottleneck. Other variables retain their default values.
Which two changes will provide the most benefit to the instance? (Choose two.)
A. sync_binlog=0
B. max_connections=10000
C. innodb_log_file_size=1G
D. innodb_doublewrite=0 E. innodb_flush_log_at_trx_commit=1 F. buffer_pool_size=24G
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 158
Which condition is true about the use of the hash join algorithm?
A. No index can be used for the join.
B. The query must access no more than two tables.
C. The smallest of the tables in the join must fit in memory as set by join_buffer_size.
D. At least one of the tables in the join must have a hash index.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 159
Examine this query and its output: 14/61 Which two statements are true? (Choose two.)
A. The root user had the largest number of modified rows for a SELECT statement.
B. User bob had the largest total time waiting for locks.
C. The root user had the largest single wait time.
D. The app user had the highest total number of rows read from storage engines. E. User bob had
a significantly higher ratio of SELECT + INSERT statements to QUIT than both app and root
users.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 160
Which three are types of information stored in the MySQL data dictionary? (Choose three.)
A. performance metrics
B. InnoDB buffer pool LRU management data
C. access control lists
D. view definitions E. server runtime configuration F. server configuration rollback G. stored
procedure definitions
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 161
Which two statements are true about MySQL Installer? (Choose two.)
A. It installs most Oracle MySQL products. 15/61
B. It performs product upgrades.
C. It provides only GUI-driven, interactive installations.
D. Manual download of separate product packages is required before installing them through
MySQL Installer. E. It provides a uniform installation wizard across multiple platforms.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 162
Examine this command, which executes successfully: $ mysqlrouter --bootstrap
user@hostname:port --directory=directory_path Which activity is performed?
A. MySQL Router is configured based on the information in files in directory_path.
B. MySQL Router configures itself based on the information retrieved from the InnoDB cluster
metadata server.
C. MySQL Router is restarted.
D. MySQL Router configures all the cluster nodes based on the information retrieved from the
InnoDB cluster metadata server.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 163
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?
A. The slave relay logs should be deleted; then execute START SLAVE;
B. The relay logs from the master should be used to replace the corrupted relay logs.
C. The slave relay logs should be deleted; execute CHANGE MASTER to adjust the replication
relay log file name, then issue start SLAVE;
D. The slave needs to be restored from backup.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 164
Your my.cnf file contains these settings: 16/61 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?
A. min_examined_row_limit=5000
B. long_query_time=5 log_throttle_queries_not_using_indexes=5
C. log_throttle_queries_not_using_indexes=5 min_examined_ row_limit=5000
D. long_query_time=5 E. long_query_time=5 min_examined_row_limit=5000 F.
log_throttle_queries_not_using_indexes=5 G. long_query_time=5
log_throttle_queries_not_using_indexes=5 min_examined_row_limit=5000
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 165
Examine this output: Which change should optimize the number of buffer pool instances for this
workload?
A. Increase the number of buffer pool instances to 16.
B. Increase the number of buffer pool instances to 32. 17/61
C. Decrease the number of buffer pool instances to 1.
D. Increase the number of buffer pool instances to 12. E. Decrease the number of buffer pool
instances to 4.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 166
Examine this command, which executes successfully on InnoDB Cluster:
dba.dropMetadataSchema() Which two statements are true? (Choose two.)
A. Group Replication will be dissolved and all metadata purged.
B. Group Replication is still operational, but InnoDB Cluster must be reimported under MySQL
Shell.
C. The mysql_innodb_cluster_metadata schema is dropped from the instance where the
connection was established.
D. The command drops the mysql_innodb_cluster_metadata schema and re-creates it. E. The
mysql_innodb_cluster_metadata schema is dropped from all reachable members of the cluster. F.
Connections driven by MySQL Router are not affected by the command.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 167
Which two are true about differences between logical and physical upgrades of MySQL
databases? (Choose two.)
A. Post-upgrade table storage requirements after logical upgrades are usually smaller than that
after physical upgrades.
B. Physical upgrades are performed for current instances on bare metal deployments, whereas
logical upgrades are used for virtual machines or containerized instances.
C. Logical upgrades are much faster because they do not require restarting the mysqld process.
D. Post-upgrade table storage requirements after physical upgrades are usually smaller than that
after logical upgrades. E. Physical upgrades are much faster because they do not require
restarting the mysqld process. F. Physical upgrades leave data in place, whereas logical upgrades
require data to be restored from mysqldump-type backups taken before the upgrades.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 168
18/61 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?
A. [mysqld] default_authentication_plugin=sha256_password
B. ALTER USER user - IDENTIFIED WITH mysql_native_password BY 'password';
C. [mysqld] default_authentication_plugin=caching_sha2_password
D. ALTER USER user - IDENTIFIED WITH caching_sha2_password BY 'password'; E. ALTER
USER user - IDENTIFIED WITH sha256_password - BY 'password'; F. [mysqld]
default_authentication_plugin=mysql_native_password
Independent Answer:E
Document Answers:file2:E
Comparison:Match

Question 169
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 G. --socket=/tmp/mysql.sock H. --port=3306
I. --database=world
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 170
Examine this partial output for InnoDB Cluster status: 19/61 Which statement explains the state
of the instance deployed on host2?
A. It can be recovered from a donor instance on host3 by cloning using the command
cluster.rejoinInstance ('<user>@host3:3377')
B. It can rejoin the cluster by using the command cluster.addInstance('<user>@host3:3377')
C. It has been removed from the cluster by using the command STOP GROUP_REPLICATION;
D. It can rejoin the cluster by using the command dba.rebootClusterFromCompleteOutage() E. It
has been expelled from the cluster because of a transaction error.
Independent Answer:E
Document Answers:file2:E
Comparison:Match

Question 171
You are using an existing server with a new configuration. MySQL Server fails to start. Examine
this snapshot of the error log: Which action would allow the server to start? 20/61
A. Remove ib_logfile0 and ib_logfile1 files from the file system.
B. Execute mysqladmin flush-logs.
C. First run mysqld --initialize to refresh the Size of ib_logfile.
D. Create a new ib_logfile0 file of size 26214400.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 172
You are asked to review possible options for a new MySQL instance. It will be a large, busy
reporting data warehousing instance. [mysql] innodb_data_file_path= Which two configurations
would satisfy long-term storage demands? (Choose two.)
A. ibdatal:12M;ibdata2:12M;ibdata3:12M
B. ibdatal:12M:autoextend;ibdata2:12M:autoextend
C. ibdatal:12M:autoextend
D. ibdatal:12M;ibdata2:12M:autoextend E. ibdatal:12M F.
ibdatal:12M;/tmp/ibdata2:12M:autoextend
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 173
Examine this statement, which executes successfully: 21/61 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.)
A. ALTER TABLE employees - ADD INDEX (birth_date DESC);
B. ALTER TABLE employees - ADD INDEX ((MONTH(birth_date)));
C. ALTER TABLE employees - ADD COLUMN birth_month tinyint unsigned GENERATED
ALWAYS AS (MONTH(birth_date)) VIRTUAL NOT NULL, ADD INDEX (birth_month);
D. ALTER TABLE employees - ADD COLUMN birth_month tinyint unsigned GENERATED
ALWAYS AS (birth_date->>'$.month') VIRTUAL NOT NULL, ADD INDEX (birth_month); E.
ALTER TABLE employees - ADD INDEX ((CAST(birth_date->>'$.month' AS unsigned))); F.
ALTER TABLE employees - ADD INDEX (birth_date);
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 174
Which three sets of item information are visible in the mysql system database? (Choose three.)
A. help topics
B. performance monitoring information
C. plugins
D. information about table structures E. audit log events F. rollback segments G. time zone
information and definitions
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 175
Which statement is true about InnoDB persistent index statistics?
A. Updating index statistics is an I/O expensive operation.
B. Index statistics are calculated from pages buffered in the buffer pool for tables with InnoDB
storage engine.
C. Setting innodb_stats_auto_recalc=ON causes statistics to be updated automatically when a
new index is created.
D. Execution plans based on transient index statistics improve precision when
innodb_stats_persistent_sample_pages is increased. E. Increasing
innodb_stats_persistent_sample_pages determines higher pages scanning speed, at the cost of
increased memory usage.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 176
Examine these statements, which execute successfully: CREATE ROLE r_world_rd; GRANT
SELECT ON world.* TO r_world_rd; CREATE USER john IDENTIFIED BY
‘P@ssw0rd’; GRANT r_world_rd TO john; Examine these statements issued by user John:
What is the reason for the error?
A. The statement was blocked by MySQL Firewall.
B. John has not activated the role.
C. John needs to reconnect to the database.
D. The DBA needs to execute FLUSH PRIVILEGES.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 177
Examine these statements, which execute successfully: 23/61 Which are two of the storage
engines that would return a nonempty recordset for the test table when executing the statements?
(Choose two.)
A. InnoDB
B. MEMORY
C. NDB
D. BLACKHOLE E. ARCHIVE
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 178
Binary log events for the ‘mydb1’ schema must be copied to a different schema name
‘mydb2’. Which command will do this?
A. mysqlbinlog --rewrite-db=’mydb1->mydb2’ | mysql
B. mysqlbinlog --datebase=mydb1 --database=mydb2 | mysql
C. mysqlbinlog --rewrite-db=’mydb1’ --rewrite-db=’mydb2’ | mysql
D. mysqlbinlog --read-from-remote-server --raw | sed ‘s/mydb1/mydb2/g’ | mysql
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 179
Examine this MySQL Shell command: dba.rebootClusterFromCompleteOutage() Which two
statements are true? (Choose two.)
A. It reconfigures InnoDB Cluster if the cluster was stopped.
B. It performs InnoDB Cluster instances rolling restart.
C. It only starts all InnoDB Cluster instances.
D. It is not mandatory that all instances are running and reachable before running the command.
E. It stops and restarts all InnoDB Cluster instances and initializes the metadata. F. It only stops
and restarts all InnoDB Cluster instances. G. It picks the minimum number of instances
necessary to rebuild the quorum and reconfigures InnoDB Cluster. 24/61
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 180
Which two statements are true about MySQL server multi-source replication? (Choose two.)
A. It is not compatible with auto-positioning.
B. It needs to be re-instanced after a crash to maintain consistency.
C. It uses only time-based replication conflict resolution.
D. It relies on relay_log_recovery for resilient operations. E. It does not attempt to detect or
resolve replication conflicts. F. It must use GTID replication.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 181
Which command enables rule-based MySQL Auditing capabilities?
A. shell> mysql < audit_log_filter_linux_install.sql
B. shell> mysqld --initialize --log-raw=audit.log
C. mysql> INSTALL PLUGIN audit_log;
D. mysql> INSTALL COMPONENT audit_log;
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 182
Which three are characteristics of a newly created role? (Choose three.)
A. It can be dropped using the DROP ROLE statement.
B. It is stored in the mysql.role table.
C. It is created as a locked account.
D. It can be renamed using the RENAME ROLE statement. E. It can be granted to user accounts.
F. It can be protected with a password.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 183
Examine this SQL statement: mysql> GRANT r_read@localhost TO mark WITH ADMIN
OPTION; Which two are true? (Choose two.)
A. Mark can grant the privileges assigned to the r_read@localhost role to another user.
B. ADMIN OPTION causes the role to be activated by default.
C. Mark can grant the r_read@localhost role to another user.
D. Mark can revoke the r_read@localhost role from another role. E. ADMIN OPTION allows
Mark to drop the role. F. Mark must connect from localhost to activate the r_read@localhost
role.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 184
Which four are types of information stored in the MySQL data dictionary? (Choose four.)
A. performance metrics
B. table definitions
C. access control lists
D. view definitions E. server runtime configuration F. server configuration rollback G. stored
procedure definitions H. InnoDB buffer pool LRU management data
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 185
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 26/61 Which two actions, either one of which, can fix this error and allow a successful
restore of the cluster? (Choose two.)
A. Stop all instances except the primary read/write master instance and run the restore.
B. Remove the @@GLOBAL.gtid_purged statement from the dump file.
C. Create the backup by using the --set-gtid-purged=OFF option.
D. Remove the group replication plugin from each instance before restoring. E. Remove the
@@GLOBAL.gtid_executed statement from the dump file. F. Restore using the --set-gtid-
purged=OFF option.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 186
Which statement is true about MySQL Enterprise Transparent Data Encryption (TDE)?
A. MySQL TDE uses an appropriate keyring plugin to store the keys in a centralized location.
B. Both MyISAM and InnoDB tables can be encrypted by setting the keyring_engine = ALL
variable in the MySQL configuration file.
C. Lost tablespace encryption keys can be regenerated only if the master database key is known
or present in the Key Vault specification.
D. TDE can encrypt InnoDB and MyISAM tables only when the tables are stored in the
SYSTEM tablespace.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 187
You are upgrading a MySQL instance to the latest 8.0 version. Examine this output: 27/61 You
plan to add this parameter to the configuration: innodb_directories=’/innodb_extras’
Which statement is true?
A. It defines all innodb tablespace options relative to a starting parent directory.
B. It is not necessary because innodb_data_home_dir is already defined.
C. It allows scanning of other locations to discover more innodb tablespaces.
D. It moves all innodb tablespaces to the /innodb_extras directory to enable a new
innodb_data_home_dir to be defined. E. It adds more temporary workspace in addition to the
innodb_tmpdir location.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 188
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.) 28/61
A. ibbackup files
B. *.CSM files
C. *.sdi files
D. *.ibd files E. ib_logfile* files
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 189
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.)
A. MySQL writes SDI to the binary log for distributed backups.
B. MySQL keeps InnoDB metadata changes in .sdi files in datadir.
C. The metadata is serialized in JSON format in Serialized Dictionary Information (SDI).
D. MySQL Server stores a copy of the serialized data in the InnoDB user tablespace. E. MySQL
implicitly executes FLUSH TABLES and stores a snapshot backup of the metadata.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 190
Which two are characteristics of snapshot-based backups? (Choose two.)
A. Snapshot-based backups greatly reduce time during which the database and applications are
unavailable.
B. There is no need for InnoDB tables to perform its own recovery when restoring from the
snapshot backup.
C. The frozen file system can be cloned to another virtual machine immediately into active
service.
D. A separate physical copy must be made before releasing the snapshot backup. E. Snapshot
backups can be used only in virtual machines.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 191
You must run multiple instances of MySQL Server on a single host. 29/61 Which three methods
are supported? (Choose three.)
A. Run MySQL Server docker containers.
B. Use systemd with different settings for each instance.
C. Use system tools to lock each instance to its own CPU.
D. Start mysqld or mysqld_safe using different option files for each instance. E. Run mysqld
with --datadir defined for each instance. F. Use resource groups to lock different instances on
separate CPUs.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 192
There are five MySQL instances configured with a working group replication. Examine the
output of the group members: 30/61 Which two statements are true about network partitioning in
the cluster? (Choose two.)
A. The cluster will shut down to preserve data consistency.
B. The cluster has built-in high availability and updates group_replication_ip_whitelist to
remove the unreachable nodes.
C. The group replication will buffer the transactions on the online nodes until the unreachable
nodes return online.
D. There could be both a 2 node and 3 node group replication still running, so shutting down
group replication and diagnosing the issue is recommended. E. A manual intervention to force
group members to be only the working two instances is required.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 193
Examine this statement and output: You must try to reduce query execution time. Which two
queries should you focus on? (Choose two.)
A. QN = 3
B. QN = 5
C. QN = 1
D. QN = 4 E. QN = 2
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 194
Examine this query: What information does this query provide?
A. total memory used across all connections associated with the user on connection number 10
B. total memory used by the first 10 connections
C. total memory used by thread number 10
D. total memory used across all connections associated with the user on thread number 10 E.
total memory used by connection number 10 F. total memory used by the first 10 threads
Independent Answer:E
Document Answers:file2:E
Comparison:Match

Question 195
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.)
A. Users could overwrite configuration files.
B. Data files could be deleted.
C. SQL injections could be used to insert bad data into the database.
D. MySQL binaries could be damaged, deleted, or altered. E. Extra startup time would be
required for the MySQL server to reset the privileges.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 196
User account baduser@hostname on your MySQL instance has been compromised. 32/61 Which
two commands stop any new connections using the compromised account? (Choose two.)
A. ALTER USER baduser@hostname PASSWORD DISABLED;
B. ALTER USER baduser@hostname MAX_USER_CONNECTIONS 0;
C. ALTER USER baduser@hostname ACCOUNT LOCK;
D. ALTER USER baduser@hostname IDENTIFIED WITH mysql_no_login; E. ALTER USER
baduser@hostname DEFAULT ROLE NONE;
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 197
An existing asynchronous replication setup is running MySQL 8. Which two steps are a part of
implementing GTID replication? (Choose two.)
A. Enable GTID by executing this on the master and the slave: SET GLOBAL
GTID_ENABLED=on;
B. Execute this on the slave to enable GTID: START SLAVE IO_THREAD WITH GTID;
C. Restart MySQL (master and slave) with these options enabled: --gtid_mode=ON --log-bin --
log- slave-updates --enforce-gtid-consistency
D. Execute this on the slave to enable GTID: RESET SLAVE; START SLAVE
GTID_NEXT=AUTOMATIC; E. On the slave, alter the MySQL master connection setting with:
ALTER channel CHANGE MASTER TO MASTER_AUTO_POSITION = 1; F. On the slave,
alter the MySQL master connection setting with: CHANGE MASTER TO
MASTER_AUTO_POSITION = 1;
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 198
Which four connection methods can MySQL clients specify with the --protocol option when
connecting to a MySQL server? (Choose four.)
A. TCP
B. SOCKET
C. PIPE
D. DIRECT E. IPv6 F. FILE G. IPv4 H. MEMORY
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 199
Examine this command and output: 33/61 Which two statements are true? (Choose two.)
A. The lock is at the metadata object level.
B. The lock is a shared lock.
C. The lock is an intentional lock.
D. The lock is at the table object level. E. The lock is a row-level lock. F. The lock is an
exclusive lock.
Independent Answer:E
Document Answers:file2:E
Comparison:Match

Question 200
Which three statements are true about MySQL replication? (Choose three.)
A. Replication can use only TCP/IP connections.
B. Any instance can have multiple slaves, but it can have only one master.
C. Each instance in a replication topology must have a unique server ID.
D. Binary logs contain only transactions originating from a single MySQL instance. E. Each
slave must have its own MySQL user for replication. F. Binary logging must be enabled on the
master in order to replicate to other instances. G. A replication user must have the SELECT
privilege for all tables that need to be replicated. 34/61
Independent Answer:C
Document Answers:file2:C
Comparison:Match
Question 201
Which two statements are true about the mysql_config_editor program? (Choose two.)
A. It manages the configuration of the MySQL Firewall feature.
B. It manages the configuration of client programs.
C. It can move datadir to a new location.
D. It manages the configuration of user privileges for accessing the server. E. It will use [client]
options by default unless you provide --login-path. F. It can be used to create and edit SSL
certificates and log locations. G. It provides an interface to change my.cnf files.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 202
Examine this command, which executes successfully: shell> mysqldump --master-data=2 --
single-transaction --result-file=dump.sql mydb Which two statements are true? (Choose two.)
A. It executes flush tables with read lock.
B. It enforces consistent backups for all storage engines.
C. The backup created is a consistent data dump.
D. This option uses the READ COMMITTED transaction isolation mode. E. It is a cold backup.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 203
Examine this query and output: Which two statements are true? (Choose two.)
A. The country table is accessed as the first table, and then joined to the city table.
B. It takes more than 8 milliseconds to sort the rows.
C. The optimizer estimates that 51 rows in the country table have Continent = ‘Asia’.
D. 35 rows from the city table are included in the result. E. The query returns exactly 125 rows.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 204
Examine this command, which executes successfully: mysqlpump -–user=root --password >
full_backup.sql Which two databases will be excluded from this dump? (Choose two.)
A. information_schema
B. world
C. employee
D. sys E. mysql
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 205
Examine this MySQL client command to connect to a remote database: mysql -h
remote.example.org -u root -p --protocol=TCP --ssl-mode= Which two --ssl-mode values will
ensure that an X.509-compliant certificate will be used to establish the SSL/TLS connection to
MySQL?
A. REQUIRED
B. VERIFY_CA
C. VERIFY_IDENTITY
D. PREFERRED E. DISABLED
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 206
You want to log only the changes made to the database objects and data on the MySQL system.
Which log will do this by default?
A. general query log
B. audit log
C. slow query log
D. binary log E.error log 37/61
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 207
Which two statements are true about using backups of the binary log? (Choose two.)
A. Multiple binary logs can be used to restore data.
B. Multiple binary logs can be applied in parallel for faster data restoration.
C. Binary logs are relatively small, and therefore, excellent for long-term storage and disaster
recovery.
D. Binary logs can always be used to unapply unwanted schema changes. E. They allow for
point-in-time recovery of the data.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 208
Where is the default data directory located after installing MySQL using RPM on Oracle Linux
7?
A. /usr/mysql
B. /usr/bin
C. /etc/my.cnf
D. /var/lib/mysql E. /usr
Independent Answer:D
Document Answers:file2:D
Comparison:Match
Question 209
A user wants to connect without entering his or her username and password on the Linux
command prompt. Which three locations can be used to store the user’s mysql credentials to
satisfy this requirement? (Choose three.)
A. $HOME/.my.cnf file
B. $MYSQL_HOME/my.cnf file
C. DATADIR/mysqld-auto.cnf file
D. $HOME/.mylogin.cnf file E. $HOME/.mysql/auth/login file F. /etc/my.cnf file G.
$HOME/.mysqlrc file 38/61
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 210
t is a non-empty InnoDB table. Examine these statements, which are executed in one session:
BEGIN; SELECT * FROM t FOR UPDATE; Which is true?
A. If OPTIMIZE TABLE; is invoked, it will create a table lock on t and force a transaction
rollback.
B. If OPTIMIZE LOCAL TABLE t; is invoked from another session, it executes normally and
returns the status.
C. mysqlcheck --analyze --all-databases will execute normally on all tables and return a report.
D. If ANALYZE TABLE; is invoked from the same session, it hangs until the transaction is
committed or rolled back.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 211
Which two MySQL Server accounts are locked by default? (Choose two.)
A. any user set as DEFINER for stored programs
B. any internal system accounts
C. any new ROLE accounts
D. any user created without a password E. any user created with a username, but missing the host
name
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 212
Examine this SQL statement: Which set of privileges will allow Tom to execute this SQL
statement?
A. GRANT ALL PRIVILEGES ON ‘world’.‘city’ TO ‘tom’@’%’;
GRANT SELECT (‘code’) ON ‘world’.‘country’ TO ‘tom’@’
%’;
B. GRANT UPDATE ON ‘world’.* TO ‘tom’@’%’; GRANT ALL
PRIVILEGES ON ‘world’.‘country’ TO ‘tom’@’%’;
C. GRANT UPDATE ON ‘world’.‘city’ TO ‘tom’@’%’; GRANT
SELECT ON ‘world’.* TO ‘tom’@’%’;
D. GRANT UPDATE ON ‘world’.‘city’ TO ‘tom’@’%’; GRANT
SELECT ON ‘world’.‘country’ TO ‘tom’@’%’;
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 213
Examine these commands and output: 40/61 Which connection ID is holding the metadata lock?
A. 20
B. 24
C. 21
D. 25 E. 22 F. 6
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 214
Which two are true about binary logs used in asynchronous replication? (Choose two.)
A. They are pushed from the master to the slave.
B. They contain events that describe database changes on the master.
C. They contain events that describe all queries run on the master.
D. They contain events that describe only administrative commands run on the master. E. They
are pulled from the master to the slave.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 215
Which two queries are examples of successful SQL injection attacks? (Choose two.) 41/61
A. SELECT user,passwd FROM members - WHERE user = ‘?’;INSERT INTO
members(‘user’,’passwd’) VALUES (‘[email protected]’,‘secret’);--
‘;
B. SELECT id, name FROM user WHERE user.id=(SELECT members.id FROM members);
C. SELECT id, name FROM user WHERE id=23 OR id=32 OR 1=1;
D. SELECT id, name FROM user WHERE id=23 OR id=32 AND 1=1; E. SELECT
email,passwd FROM members WHERE email = ‘INSERT INTO
members(‘email’,’passwd’) VALUES (‘[email protected]’,
‘secret’);--‘; F. SELECT user, phone FROM customers WHERE name = ‘\; DROP
TABLE users; --‘;
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 216
You execute this command: shell> mysqlpump --exclude-databases=% --users Which statement
is true?
A. It creates a logical backup of all MySQL user accounts.
B. It creates a logical backup of all metadata, but contains no table data.
C. It returns an error because the mysqldump command should have been used.
D. It creates a logical backup of only the users database.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 217
Which two are contained in the InnoDB system tablespace (ibdata1) by default? (Chose two.)
A. table data
B. primary indexes
C. user privileges
D. InnoDB Data Dictionary E. change buffer F. doublewrite buffer
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 218
Which two MySQL Shell commands are excluded from the InnoDB Cluster creation procedure?
(Choose two.) 42/61
A. dba.configureInstance()
B. cluster.setPrimaryInstance()
C. dba.configureLocalInstance()
D. cluster.forceQuorumUsingPartitionOf() E. cluster.addInstance() F. dba.createCluster() G.
dba.checkInstanceConfiguration()
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 219
Examine this statement: mysql> DROP ROLE r_role1, r_role2; Which two are true? (Choose
two.)
A. It fails if any of the roles is specified in the mandatory_roles variable.
B. You must revoke r_role1 and r_role2 from all users and other roles before dropping the roles.
C. Existing connections can continue to use the roles’ privileges until they reconnect.
D. You must revoke all privileges from r_role1 and r_role2 before dropping the roles. E. It fails if
you do not have the ADMIN OPTION of the roles r_role1 and r_role2. F. It fails if at least one of
the roles does not exist.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 220
Examine these statements and output: Which statement is true?
A. The user is logged in with --user=accounting as an option.
B. The user is authenticated as the anonymous proxy user ‘’@’%’.
C. The user is authorized as the accounting@localhost user.
D. The user is authorized as the rsmith@localhost user. E. The user failed to define a username
and the connecting username defaulted to ‘’@’%’. 43/61
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 221
Which two statements are true about InnoDB data-at-rest encryption? (Choose two.)
A. It supports only non-blob datatypes.
B. It does not support the transportable tablespaces feature.
C. It supports all indexes transparently.
D. It decrypts data for use in memory. E. It enforces encryption from disk to memory and over
network transmission.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 222
Which two are features of MySQL Enterprise Firewall? (Choose two.)
A. recording incoming SQL statement to facilitate the creation of a whitelist of permitted
commands
B. blocking of potential threats by configuring pre-approved whitelists
C. modifying SQL statement dynamically with substitutions
D. automatic locking of user accounts who break your firewall E. provides stateless firewall
access to TCP/3306
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 223
You plan to install MySQL Server by using the RPM download. Which two statements are true?
(Choose two.)
A. You can provide the root password interactively.
B. You must manually initialize the data directory.
C. The MySQL RPM package installation supports deploying multiple MySQL versions on the
same host.
D. MySQL uses the RPM relocatable installation target feature. E. The functionality is split
among several RPM package files. 44/61 F. You can find the root password in the error log after
the first start.
Independent Answer:E
Document Answers:file2:E
Comparison:Match
Question 224
You plan to take daily full backups, which include the ndbinfo and sys (internal) databases.
Which command will back up the databases in parallel?
A. mysqldump --single-transaction > full-backup-$(date +%Y%m%d).sql
B. mysqlpump --include-databases=% > full-backup-$(date +%Y%m$d).sql
C. mysqlpump --all-databases > full-backup-$(date +%Y%m%d).sql
D. mysqldump --all-databases > full_backup-$(date +%Y%m%d).sql
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 225
What does the binlog dump thread do?
A. It monitors and schedules the rotation/deletion of the binary logs.
B. It reads the relay log and executes the events contained in them.
C. It acquires a lock on the binary log for reading each event to be sent to the slave.
D. It connects to the master and asks it to send updates recorded in its binary logs.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 226
Which two commands will display indexes on the parts table in the manufacturing schema?
(Choose two.)
A. DESCRIBE manufacturing.parts;
B. SELECT * FROM information_schema.statistics WHERE
table_schema=’manufacturing’ AND TABLE_NAME=’parts’;
C. SHOW INDEXES FROM manufacturing.parts;
D. SELECT * FROM information_schema.COLUMN_STATISTICS; E. EXPLAIN SELECT
INDEXES FROM manufacturing.parts;
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 227
Your MySQL server is running on the Microsoft Windows platform. Which three local
connection protocols are available to you? (Choose three.) 45/61 A.named pipes
B. shared memory
C. SOCKET
D. X Protocol E. UDP F. TCP/IP
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 228
Which two statements are true about using MySQL Enterprise Monitor Query Analyzer?
(Choose two.)
A. The single query QRTi pie chart in the Query Analyzer view is based on the average
execution of all statements.
B. It is possible to retrieve a normalized statement, but never the exact statement that was
executed.
C. It is possible to configure the Query Analysis built-in advisor to get notified about slow query
execution.
D. It is possible to list and analyze statements in an arbitrary graph range selection from
timeseries graphs. E. It is possible to import data into the Query Analyzer from heterogeneous
sources, such as CSV.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 229
Which two are use cases of MySQL asynchronous replication? (Choose two.)
A. You can scale writes by creating a replicated mesh.
B. It guarantees near real-time replication between a master and a slave.
C. You can scale reads by adding multiple slaves.
D. MySQL Enterprise Backup will automatically back up from an available slave. E. It allows
backup to be done on the slave without impacting the master.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 230
Examine this list of MySQL data directory binary logs: 46/61 binlog.000001 binlog.000002 .....
binlog.000289 binlog.000300 binlog.000301 binlog.index Now examine this command, which
executes successfully: mysqldump --delete-master-logs --all-databases > /backup/db_backup.sql
Which two are true? (Choose two.)
A. All databases are backed up to the output file.
B. All non-active binary logs are removed from the master.
C. All binary logs are deleted from the master.
D. All binary logs are backed up and then deleted. E. All databases, excluding master metadata,
are backed up to the output file. F. All details regarding deleted logs and master metadata are
captured in the output file.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 231
Which step or set of steps can be used to rotate the error log?
A. Execute SET GLOBAL log_error = ‘<new error log file>’.
B. Execute SET GLOBAL max_error_count = <number of messages at point to rotate>.
C. Execute SET GLOBAL expire_logs_days=0 to enforce a log rotation.
D. Rename the error log file on disk, and then execute FLUSH ERROR LOGS.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 232
A valid raw backup of the shop.customers MyISAM table was taken. You must restore the table.
You begin with these steps: 47/61 1. Confirm that secure_file_priv=’/var/tmp’ 2. mysql>
DROP TABLE shop.customers; 3. shell> cp /backup/customers.MY* /var/lib/mysql/shop/ Which
two actions are required to complete the restore? (Choose two.)
A. shell> cp /backup/customers.sdi /var/tmp
B. shell> cp /backup/customers.sdi /var/lib/mysql/shop/
C. mysql> SOURCE ‘/var/tmp/customers.sdi’
D. mysql> IMPORT TABLE FROM /var/tmp/customers.sdi E. shell> cp
/backup/customers.frm /var/lib/mysql/shop/ F. mysql> IMPORT TABLE FROM
/var/lib/mysql/shop/customers.sdi G. mysql> ALTER TABLE shop.customers IMPORT
TABLESPACE H. mysql> ALTER TABLE shop.customers DISCARD TABLESPACE
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 233
Examine the modified output: Seconds_Behind_ Master value is steadily growing. What are two
possible causes? (Choose two.)
A. The master is most probably too busy to transmit data and the slave needs to wait for more
data.
B. One or more large tables do not have primary keys.
C. This value shows only I/O latency and is not indicative of the size of the transaction queue.
D. The master is producing a large volume of events in parallel but the slave is processing them
serially. E. The parallel slave threads are experiencing lock contention.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 234
You want to check the values of the sort_buffer_size session variables of all existing
connections. Which performance_schema table can you query? 48/61
A. user_variables_by_thread
B. global_variables
C. variables_by_thread
D. session_variables
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 235
Examine these statements, which execute successfully: TRUNCATE test; BEGIN; INSERT
INTO test(id, name) VALUES(1, “Helloâ€); ROLLBACK; SELECT id FROM test; Which
three storage engines would return a nonempty recordset for the test table when executing the
statements? (Choose three.)
A. NDB
B. ARCHIVE
C. InnoDB
D. BLACKHOLE E. MEMORY F. MyISAM
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 236
Examine this command, which executes successfull mysqlbackup
--defaults-file=/backups/server-my.cnf --backup-dir=/backups/full copy-back Which statement is
true about the copy-back process?
A. The copy-back process is used to overwrite a new backup over an existing backup.
B. It restores files from the data directory to their original MySQL server locations.
C. It restores files from the backup directory to their original MySQL server locations.
D. The copy-back process makes inconsistent backups.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 237
Which three actions are effective in capacity planning? (Choose three.)
A. buying more RAM
B. monitoring OS resources for patterns
C. adding circular replication nodes for increased DML capability
D. buying more CPU E. buying more disk F. basing expected growth on an average of the last 3
years G. consulting the application team about any future projects and use H. upgrading to the
latest application version
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 238
An attempt to recover an InnoDB Cluster fails. Examine this set of messages and responses:
host3:3377 ssl JS > dba.rebootClusterFromCompleteOutage() Reconfiguring the default cluster
from complete outage… The instance ‘host1:3377'’ was part of the cluster configuration.
Would you like to rejoin it to the cluster? [y/N]: y The instance ‘host2:3377’ was part of
the cluster configuration. Would you like to rejoin it to the cluster? [y/N]: y
Dba.rebootClusterFromCompleteOutage: The active session instance isn’t the most updated
in comparison with the ONLINE instances of the Cluster’s metadata. Please use the most up
to date instance: ‘host1:3377’. (RuntimeError) Which statement is true?
A. The instance deployed on host3 must be rebuilt with a backup from the primary instance.
B. The cluster is running and there is at least one ONLINE instance.
C. The instance deployed on host3 must be synchronized from a donor deployed on host1 by
using the command cluster.addInstance(‘host1:3377’).
D. It is possible to determine the most up-to-date instance by comparing different global
transaction identifier (GTID) sets with GTID_SUBSET(set1,set2). E. The active session instance
is invalid and must be re-created by using the command shell.connect(‘host3:3377’). 50/61
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 239
Your MySQL server was upgraded from an earlier major version. The sales database contains
three tables, one of which is the transactions table, which has 4 million rows. You are running
low on disk space on the datadir partition and begin to investigate. Examine these commands and
output: Which two statements are true? (Choose two.)
A. Executing SET GLOBAL innodb_row_format=COMPRESSED and then ALTER TABLE
transactions will free up disk space.
B. Executing ALTER TABLE transactions will enable you to free up disk space.
C. Truncating the sales and leads table will free up disk space.
D. Truncating the transactions table will free up the most disk space. E. The transactions table
was created with innodb_file_per_table=OFF.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 240
Which three settings control global buffers shared by all threads on a MySQL server? (Choose
three.)
A. sort_buffer_size
B. key_buffer_size
C. table_open_cache
D. read_buffer_size E. innodb_buffer_pool_size F. tmp_table_size
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 241
Examine this command, which executes successfully:
cluster.addInstance(‘<user>@<host>:<port>’, {recoveryMethod: ‘clone’}) Which
three statements are true? (Choose three.)
A. The account used to perform this recovery needs the BACKUP_ADMIN privilege.
B. A target instance must exist, then it will be provisioned with data from an instance already in
the cluster and joined to the cluster.
C. InnoDB tablespaces outside the datadir are able to be cloned.
D. It is always slower than {recoveryMethod: ‘incremental’}. E. A new instance is
installed, initialized, and provisioned with data from an instance already in the cluster and joined
to the cluster. F. InnoDB redo logs must not rotate for the duration of the execution; otherwise,
the recovery will fail.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 242
Examine this command and output: Which two options will improve the security of the MySQL
instance? (Choose two.)
A. Remove group read/write privileges from the private_key.pem file.
B. Remove world read privileges from the server-cert.pem certificate file.
C. Change the group ownership of the mysql directory to the mysql user group. 53/61
D. Remove world read privileges from the public_key.pem file. E. Change the parent directory
owner and group to mysql. F. Remove the world read/execute privilege from the accounting
directory.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 243
You are using mysqlcheck for server maintenance. Which two statements are true? (Choose two.)
A. The mysqlcheck --check --all-databases command takes table write locks while performing a
series of checks.
B. The mysqlcheck --optimize --all-databases command reclaims free space from table files.
C. The mysqlcheck --repair --all-databases command can repair an InnoDB corrupted table.
D. The mysqlcheck command can be renamed mysqlrepair so that it repairs tables by default. E.
The mysqlcheck --analyze --all-databases command performs a series of checks to spot eventual
table corruptions.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 244
A MySQL server is monitored using MySQL Enterprise Monitor’s agentless installation.
Which three features are available with this installation method? (Choose three.)
A. MySQL Replication monitoring
B. network-related information and network characteristics
C. MySQL Query Analysis data 54/61
D. CPU utilization E. security-related advisor warnings F. operating system memory utilization
G. disk usage and disk characteristics including disk advisors warnings
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 245
Your MySQL installation is running low on space due to binary logs. You need to reduce your
log space usage urgently. Which two sets of actions when completed will accomplish this?
(Choose two.)
A. Use SET GLOBAL binlog_expire_logs_seconds=<value> and restart the server.
B. Set binlog_expire_logs_seconds in my.cnf.
C. Set binlog_expire_logs_seconds = 0 in my.cnf and restart the server.
D. Use SET PERSIST binlog_expire_logs_seconds=<value>. E. Use PURGE BINARY LOGS to
<binlog_name>. F. Use SET GLOBAL binlog_expire_logs_seconds=<value> and run the
FLUSH BINARY LOGS command.
Independent Answer:E
Document Answers:file2:E
Comparison:Match

Question 246
Which two storage engines provide a view of the data consistent with the storage system at any
moment? (Choose two.)
A. MyISAM
B. NDB
C. MEMORY
D. ARCHIVE E. InnoDB
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 247
Examine Joe's account: CREATE USER 'joe'@'%' IDENTIFIED BY '*secret*' GRANT ALL
PRIVILEGES ON *.* TO 'joe'@'%' All existing connections for joe are killed. Which two
commands will stop joe establishing access to the MySQL instance? (Choose two.)
A. ALTER USER 'joe'@'%' ACCOUNT LOCK 56/61
B. ALTER USER 'joe'@'%' SET password='*invalid*'
C. REVOKE ALL PRIVILEGES ON *.* FROM 'joe'@'%'
D. ALTER USER 'joe'@'%' PASSWORD HISTORY 0 E. ALTER USER 'joe'@'%' IDENTIFIED
BY '*invalid*' PASSWORD EXPIRE F. REVOKE USAGE ON *.* FROM 'joe'@'%'
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 248
You have configured MySQL Enterprise Monitor to monitor your MySQL server. Which four
features are available? (Choose four.)
A. starting and stopping the MySQL instance
B. tracing import and export with mysqidump
C. deploying the MySQL agent on supported target operating system
D. creating e-mail alerts and SNMP traps for MySQL warnings E. monitoring the availability of
the MySQL instance F. analyzing executed MySQL queries G. monitoring of NDB Cluster API
nodes
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 249
Which two methods allow a DBA to reset a user's password? (Choose two.)
A. ALTER USER statement
B. mysql_secure_installation utility
C. SET PASSWORD statement
D. mysqladmin client program E. GRANT statement
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 250
Examine this command, which executes successfully: 57/61 Which two statements are true?
(Choose two.)
A. A single-file backup is created.
B. The backup operation will finish only when backup-and-apply-log is executed.
C. The --backup-dir option holds temporary output, status, and metadata files.
D. The backup operation will finish only when apply-log is executed. E. A raw backup is created.
Independent Answer:A
Document Answers:file2:A
Comparison:Match

Question 251
Consider this shell output and executed commands: [root@oel7 ~]# ps aux | grep mysqld mysql
2076 3.5 24.6 1386852 372572 ? Ssl 12:01 0:01 /usr/sbin/mysqid [root@oel7 ~]# kill -15 2076
Which statement is true about MySQL server shutdown?
A. kill -15 should be avoided. Use other methods such as mysqladmin shutdown or systemctl
stop mysqld.
B. kill -15 and kill -9 are effectively the same forced shutdown that risk committed transactions
not written to disk.
C. kill -15 carries out a normal shutdown process, such as mysqladmin shutdown.
D. mysqld_safe prohibits commands that would harm the operation of the server. An error would
be returned by the kill command.
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 252
MySQL programs look for option files in standard locations. Which method will show the option
files and the order in which they are read?
A. shell> mysqladmin --debug
B. shell> mysql --print-defaults
C. shell> mysqld --help --verbose
D. mysql> SHOW GLOBAL VARIABLES; 58/61
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 253
Which two statements are true about raw binary backups? (Choose two.)
A. They are converted to a highly compressible binary format.
B. The data format is identical to how MySQL stores the data on disk.
C. They are required to obtain FIPS security compliance.
D. The resulting files are easily human readable. E. They are faster than logical backups because
the process is a simple file or file system copy.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 254
Which statement is true about displaying and retrieving data with MySQL Enterprise Monitor
Query Analyzer?
A. The Query Analyzer graph view range selector can extend to cover the same hour over
multiple days.
B. It is possible to filter a Query Analyzer view graph by database and by table.
C. The Query Analyzer can plot a CPU utilization graph for remote hosts with a MySQL
Enterprise Service Manager's built-in Agent installation.
D. It is possible to export statements included in a graph selection in CSV format.
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 255
Which statement is true about cold backups?
A. They are backups taken from snapshots of a running database.
B. They are backups taken from OS copy commands.
C. They are good to use if only data structures must be backed up but not log files.
D. They are good to use when many users are online accessing the database.
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 256
You have replication configured, which consists of one master and one slave on different hosts
with an asynchronous replication channel between them. Your goal is to decrease the amount of
data that is transferred between these two hosts. It is confirmed that the slave instance does not
need to have data from the example database. 59/61 Which replication filter contributes to your
goal?
A. on slave: --replicate-wild-ignore=example.%
B. on slave: --replicate-ignore-db=example
C. on master: --replicate-ignore-db=example
D. on master: --binlog-ignore-db=example E. on slave: --binlog-ignore-db=example
Independent Answer:B
Document Answers:file2:B
Comparison:Match

Question 257
Which two are valid uses for binary logs on a MySQL instance? (Choose two.)
A. recording the order in which queries are issued
B. audit of all queries
C. point-in-time recovery
D. replication E. logging the duration and locks for all queries
Independent Answer:C
Document Answers:file2:C
Comparison:Match

Question 258
Which two tools are available to monitor the global status of InnoDB locking? (Choose two.)
A. SHOW ENGINE INNODB STATUS;
B. INFORMATION_SCHEMA.INNODB_METRICS
C. SHOW TABLE STATUS;
D. INFORMATION_SCHEMA.STATISTICS E.
INFORMATION_SCHEMA.INNODB_TABLESTATS F. SHOW STATUS;
Independent Answer:D
Document Answers:file2:D
Comparison:Match

Question 259
60/61 Examine these InnoDB Cluster parameter settings: Now examine the partial status: A
permanent network failure isolates host3. Which two statements are true? (Choose two.)
A. The instance deployed on host2 is elected as the new primary instance.
B. The instance deployed on host3 is expelled from the cluster and must be rejoined using
cluster.addInstance ('host3:3377')
C. The instance deployed on host3 will automatically rejoin the cluster when connectivity is re-
established.
D. Failure of the instance deployed on host1 provokes an outage. E. The issuing command
cluster.switchToMuitiPrimaryMode() will fail to enable multi-primary mode. F. The primary
instance can be specified by using the command cluster.setPrimaryInstance(<host>:<port>).
Independent Answer:A
Document Answers:file2:A
Comparison:Match

You might also like