New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Oracle 1z0-883 Dumps Questions Answers

Page: 1 / 4
Total 100 questions

MySQL 5.6 Database Administrator Questions and Answers

Question 1

You want to create a temporary table named OLD_INVENTORY in the OLD_INVENTORY database on the master server. This table is not to be replicated to the slave server.

Which two changes would ensure that the temporary table does not propagate to the slave?

Options:

A.

Use the – replicate-do-db, -- replicate-do-table, or – replicate-wild-do-table option with the value equal to OLD_INVENTORY.

B.

Change the binlog_format option to ROW and restart mysqld before you create the OLD_INVENTORY table.

C.

Stop SQL_THREAD on the slave until you have finished using the OLD_INVENTORY temporary table.

D.

Set binlog_format=MIXED with the – replicate-ignore-temp-table option.

E.

Use the – replicate-ignore-table option with the value equal to OLD_INENTORY.OLD_INVENTORY and restart mysqld before creating the temporary table.

Buy Now
Question 2

You need to replicate a table from a master to a slave. The master and slave copies of the table will have different number of columns.

Which two conditions must be true?

Options:

A.

Each extra column in the copy with more columns must not have a default value.

B.

Columns that are common to both versions of the table must be defined in the same order on the master and the slave.

C.

The slave database cannot have more columns than the master. Only the master database can have more columns.

D.

Columns that are common to both versions of the table must come first in the table definition, before any additional columns are additional columns are defined on either server.

E.

The master database cannot have more columns than the slave. Only the slave deatbase can have more columns.

Question 3

Which two are true regarding MySQL binary and text backups?

Options:

A.

Binary backups are usually faster than text backups.

B.

Binary backups are usually slower than text backups.

C.

Text backups are human-readable while binary backups are not.

D.

Binary backups are not portable across different operating systems.

Question 4

You inherit a legacy database system when the previous DBA, Bob, leaves the company. You are notified that users are getting the following error:

mysql> CALL film_in_stock (40, 2, @count);

ERROR 1449 (HY000): The user specified as a definer (‘bon’@’localhost’) does not exist

How would you identify all stored procedures that pose the same problem?

Options:

A.

Execute SELECT * FROM mysql.routines WHERE DEFINER=’bob@localhost’;.

B.

Execute SHOW ROUTINES WHERE DEFINER=’bob@localhost’.

C.

Execute SELECT * FROM INFORMATION_SCHEMA. ROUTINES WHERE DEFINER=’bob@localhost’;.

D.

Execute SELECT * FROM INFORMATION_SCHEMA. PROCESSLIST WHERE USER=’bob’ and HOST=’ localhost’;.

E.

Examine the Mysql error log for other ERROR 1449 messages.

Question 5

You install a copy of Mysql 5.6.13 on a brand new Linux server by using RPM packages. The server starts successfully as verified by the following commands:

$ pidof mysqld

3132

$tail - n2 /var/lib.mysql/hostname.err

2013-08-18 08:18:38 3132 [Note] /usr/sbin/mysqld: ready for connections.

Version: ‘5.6.13-enterprise-commercial-advaced’ socket: ‘/tmp/mysql.sock’ port;

3306 Mysql Enterprise Server – Advanced Edition (Commercial)

You attempt to log in as the root user with the following command:

$mysql –u root

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)

Which statement is true about this scenario?

Options:

A.

The RPM installation script sets a default password of password for new installations.

B.

The local root user must log in with a blank password initially: mysql –u root –p.

C.

New security measures mean that the mysql_secure_installation script must be run first on all new installations.

D.

The mysql_install_bd post-installation script used – random-password.

Question 6

When designing an InnoDB table, identify an advantage of using the BIT datatype Instead of one of the integer datatypes.

Options:

A.

BIT columns are written by InnoDB at the head of the row, meaning they are always the first to be retrieved.

B.

Multiple BIT columns pack tightly into a row, using less space.

C.

BIT (8) takes less space than eight TINYINT fields.

D.

The BIT columns can be manipulated with the bitwise operators &, |, ~, ^, <<, and >>. The other integer types cannot.

Question 7

Which three statements describe how the strict SQL mode provides added security?

Options:

A.

It rejects statements that try to insert out-of-range values

B.

It rejects invalid dates.

C.

It limits the operations that the server can perform.

D.

It rejects queries that produce out-of-range values.

E.

It rejects dates with zero day or month values.

Question 8

In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data.

You then TRUNCATE this table to empty it.

Mysql> SELECT * INTO OUTFILE ‘/tmp/t1.sql’ from t1;

mysql> TRUNCATE t1;

Which two methods will restore data to the t1 table?

Options:

A.

Mysql> LOAD DATA INFILE ‘/tmp/t1.sql’ INTO TABLE t1;

B.

$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sql

C.

$ mysql – u root – p – h localhost test < /tmp/t1.sql

D.

$ mysqlimport – u root – p – h localhost test /tmp/t1.sql

E.

Mysql> INSERT INTO t1 VALUES FROM ‘/tmp/t1.sql’;

Question 9

You are creating a new server with the same accounts as an existing server. You do this by importing a mysqldump file of the mysql database.

You test whether the import was successful by using the following commands:

Mysql> select user, host, password from mysql.user;

9 rows in set (0.00 sec)

Mysql> show grants for ‘admin’@’%’;

ERROR 1141 (42000): There is no such grant defined for user ‘admin’ on host ‘%’

Which command will fix this issue?

Options:

A.

CREATE USER ‘admin’ @’%’;

B.

GRANT USAGE ON *.* TO ‘admin’@’%’;

C.

FLUSH PRIVILEGES;

D.

FLUSH HOST CACHE;

E.

UPDATE mysql.user SET Create_user_priv = ‘Y’ WHERE user= ‘admin’;

Question 10

What are two methods of taking a binary backup of a Mysql Server using InnoDB storage engine?

Options:

A.

Mysql Enterprise Backup

B.

Mysqldump with – binary-data option

C.

Mysqlhotcopy

D.

File system snapshots

E.

Mysqldumpslow

Question 11

Consider the Mysql Enterprise Audit plugin.

Which statement is true when you identify a connection event that has used external authentication?

Options:

A.

The attribute “STATUS” is set to the string EXTERNAL_AUTH.

B.

The attribute “PRIV_USER” contains the username.

C.

The event type that is given in the attribute “NAME” is EXTERNAL_AUTH.

D.

There is no differentiation between native and external authentication events.

E.

External authentication is managed through external auditing logs.

F.

The “PROXY_PRIV” user shows a username if external authentication is used.

Question 12

You execute the following statement in a Microsoft Windows environment. There are no conflicts in the path name definitions.

C: \> mysqld – install Mysql56 – defaults – file = C : \my –opts.cnf

What is the expected outcome?

Options:

A.

Mysqld acts as an MSI installer and installs the Mysql 5.6 version, with the c: \my-opts.cnf configuration file.

B.

Mysql is installed as the Windows service name Mysql56, and uses c: \my-opts.cnf as the configuration file

C.

An error message is issued because – install is not a valid option for mysqld.

D.

A running Mysql 5.6 installation has its runtime configuration updated with the server variables set in c: \my-opts.cnf.

Question 13

The validate_password plugin is loaded and displays the following settings in global variables:

Mysql> SHOW VARIABLES LIKE ‘validate_password%’;

When attempting to set your password, you get the following error:

Mysql> SET PASSWORD = PASSWORD (‘Hoverl@%’);

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

What is the cause of the error?

Options:

A.

The password is eight characters long, but needs to exceed validate_password_length to be valid.

B.

All of the MEDIUM password policy requirements have not been honored.

C.

The password matches a substring Hover as a dictionary word.

D.

The password does not match the validate_passoword_number_count requirement.

E.

There is no dictionary file defined, so password validation cannot work as expected.

Question 14

Consider the events_% tables in performance Schema.

Which two methods will clear or reset the collected events in the tables?

Options:

A.

Using DELETE statements, for example, DELETE FROM performance_schema.events_watis_current;

B.

Using the statement RESET PERFORMANCE CACHE;

C.

Using the statement FLUSH PERFORMANCE CACHE;

D.

Using TRUNCATE statements, for example, TRUNCATE TABLE performance_schema.events_waits_current;

E.

Disabling and re-enabling all instruments

F.

Restarting Mysql

Question 15

Consider the query:

Mysql> SET @run = 15;

Mysql> EXPLAIN SELECT objective, stage, COUNT (stage)

FROM iteminformation

WHERE run=@run AND objective=’7.1’

GROUP BY objective,stage

ORDER BY stage;

The iteminformation table has the following indexes;

Mysql> SHOW INDEXES FROM iteminformation:

This query is run several times in an application with different values in the WHERE clause in a growing data set.

What is the primary improvement that can be made for this scenario?

Options:

A.

Execute the run_2 index because it has caused a conflict in the choice of key for this query.

B.

Drop the run_2 index because it has caused a conflict in the choice of key for this query.

C.

Do not pass a user variable in the WHERE clause because it limits the ability of the optimizer to use indexes.

D.

Add an index on the objective column so that is can be used in both the WHERE and GROUP BY operations.

E.

Add a composite index on (run,objective,stage) to allow the query to fully utilize an index.

Page: 1 / 4
Total 100 questions