0% found this document useful (0 votes)
51 views2 pages

1Z0-908 03

The document consists of a series of questions and answers related to MySQL database management, covering topics such as storage engines, primary key modifications, replication filtering, GTID replication, and RPM installation. Key answers include that after a rollback, both tables remain empty, and the correct method to change a primary key is to drop the old one and add the new. Additionally, it highlights the importance of specific settings for replication and installation procedures for MySQL Server.

Uploaded by

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

1Z0-908 03

The document consists of a series of questions and answers related to MySQL database management, covering topics such as storage engines, primary key modifications, replication filtering, GTID replication, and RPM installation. Key answers include that after a rollback, both tables remain empty, and the correct method to change a primary key is to drop the old one and add the new. Additionally, it highlights the importance of specific settings for replication and installation procedures for MySQL Server.

Uploaded by

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

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

You might also like