Q11
The languages table uses InnoDB and the countries table uses the MyISAM storage
engine.
Both tables are empty.
Examine these statements:
BEGIN;
INSERT INTO languages(lang) VALUES("Italian");
INSERT INTO countries(country) VALUES("Italy");
ROLLBACK;
What is the content of both tables after executing these statements?
A. countries has one row, languages has none.
B. Both tables have one row.
C. languages has one row, countries has none.
D. Both tables are empty.
Answer: A
Q12
The my_table table has a primary key.
You want my_id to become the new primary key.
Which statement will replace the old primary key with the new one?
A. ALTER TABLE my_table DROP PRIMARY KEY; CREATE PRIMARY INDEX my_table(my_id);
B. ALTER TABLE my_table DROP PRIMARY KEY, ADD PRIMARY KEY(my_id);
C. ALTER TABLE my_table REPLACE PRIMARY KEY WITH my_id;
D. CREATE PRIMARY INDEX my_table(my_id) REPLACE PRIMARY KEY;
Answer: B
Q13
You have replication configured, with one master and one slave on different hosts
and an asynchronous replication channel between them.
You must decrease the volume of data transferred between these hosts.
The slave instance does not require data from the example database.
Which replication filter meets these requirements?
A. on slave: --binlog-ignore-db=example
B. on master: --binlog-ignore-db=example
C. on slave: --replicate-wild-ignore=example.%
D. on master: --replicate-ignore-db=example
E. on slave: --replicate-ignore-db=example
Answer: E
Q14
An 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. Execute this on the slave to enable GTID:
RESET SLAVE; START SLAVE GTID_NEXT=AUTOMATIC;
C. Execute this on the slave to enable GTID:
START SLAVE IO_THREAD WITH GTID;
D. On the slave, alter the MySQL master connection setting with:
CHANGE MASTER TO MASTER_AUTO_POSITION = 1;
E. Restart MySQL (master and slave) with these options enabled:
--gtid_mode=ON
--log-bin
--log-slave-updates
--enforce-gtid-consistency
Answer: DE
Q15
You plan to install MySQL Server by using the RPM download.
Which two statements are true?
A. You can provide the root password interactively.
B. The MySQL RPM package installation supports deploying multiple MySQL versions on
the same host.
C. You must manually initialize the data directory.
D. MySQL uses the RPM relocatable installation target feature.
E. The functionality is split among several RPM package files.
F. You can find the root password in the error log after the first start.
Answer: EF