Exam Code: 1Z0-883 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: MySQL 5.6 Database Administrator
Certification Provider: Oracle
Free Today! Guaranteed Training- Pass 1Z0-883 Exam.

Q21. 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? 

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. 

Answer:


Q22. Consider the MySQL Enterprise Audit plugin. 

On attempting to start the MySQL service after a crash, notice the following error: 

[ERROR] Plugin ‘audit_log’ init function returned error. 

In the audit log file, you notice the final entry: 

… 

<AUDIT_RECORD 

TIMESTAMP=”2013-07-09T02:12:35” 

NAME=”Connect” 

CONNECTION_ID=”98” 

STATUS=”0” 

USER=”Kate” 

PRIV_USER=”kate” 

OS_LOGIN=”” 

HOST=”localhost” 

DB=””/> 

What action should you take to fix the error and allow the service to start? 

A. Re-install the audit plugin. 

B. Execute the command FLUSH LOGS. 

C. Execute the command SET GLOBAL audit_log_fiush= ON. 

D. Move or rename the existing audit.log file. 

Answer:


Q23. Which two are correct steps in taking a binary backup of MyISAM tables? 

A. Always stop the server prior to the backup. 

B. Stop the server or lock the tables prior to the backup. 

C. Stop the server or lock the databases prior to the backup. 

D. Make a copy of the .frm, .myd, and the .myi files. 

E. Make a copy of the binary log and tablespace files. 

Answer: B,D 

Reference: http://dev.mysql.com/doc/refman/5.6/en/backup-methods.html 


Q24. Assume that you want to know which Mysql Server options were set to custom values. Which two methods would you use to find out? 

A. Check the configuration files in the order in which they are read by the Mysql Server and compare them with default values. 

B. Check the command-line options provided for the Mysql Server and compare them with default values. 

C. Check the output of SHOW GLOBAL VARIABLES and compare it with default values. 

D. Query the INFORMATION_SCHEMA.GLOBAL_VARIABLES table and compare the result with default values. 

Answer:


Q25. ROW-based replication has stopped working. You investigate the error log file and find the following entries: 

2013-08-27 14:15:47 9056 [ERROR] Slave SQL: Could not execute Delete_rows event on table test.t1; Can’t find record in ‘t1’, Error_code: 1032; handler error 

HA_ERR_KEY_NOT_FOUND; the event’s master log 56_master-bin. 000003, end_log_pos 851, Error_code: 1032 

2013-08-27 14:15:47 9056 [warning] Slave: Can’t find record in ‘t1’ Error_code: 1032 

2013-08-27 14:15:47 9056 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with “SLAVE START”. We stopped at log ‘56_master-bin. 000003’ position 684 

Why did you receive this error? 

A. The slave SQL thread does not have DELETE privileges to execute on test.t1 table.s 

B. The table definition on the slave -litters from the master. 

C. Multi-threaded replication slaves can have temporary errors occurring for cross database updates. 

D. The slave SQL thread attempted to remove a row from the test.t1 table, but the row did not exist. 

Answer:


Q26. User A issues the command: 

LOCK TABLES pets READ; 

Which command can User B execute against the pets table? 

A. UPDATE pets… 

B. SELECT….FROM pets 

C. INSERT INTO pets… 

D. ALTER TABLE pets… 

Answer:


Q27. A simple master-to-slave replication is currently being used. The following information is extracted from the SHOW SLAVE STATUS output: 

Last_SQL_Error: Error 'Duplicate entry '8' for key 'PRIMARY' ' on query. Default database: 

'mydb'. Query: 'insert into mytable VALUES ('8' , 'George') ' 

Skip_Counter: 0 

Retrieved _Gtid_Set: 38f32e23480a7-32a1-c323f78067fd37821: 1-8 

Auto _Position: 1 

You execute a “SHOW CREATE TABLE mytable” on the slave: 

CREATE TABLE ‘mytable’ ( 

‘ID’ int(11) NOT NULL DEFAULT ‘0’, 

‘name’ char(10) DEFAULT NULL, 

PRIMARY KEY (‘ID’) 

The table mytable on the slave contains the following: 

You have issued a STOP SLAVE command. One or more statements are required before you can issue a START SLAVE command to resolve the duplicate key error. 

Which statement should be used? 

A. SET GLOBAL SQL_SKIP_SLAVE_COUNTER=1 

B. SET GTID_NEXT=”CONSISTENCY”; 

BEGIN; COMMIT; 

SET GTID_NEXT=” AUTOMATIC’; 

C. SET GLOBAL enforce_gtid_consistency=ON 

D. SET GTID_EXECUTED=”38f32e23480a7-32a1-c323f78067fd37821 : 9”; 

E. SET GTID_NEXT=”38f32e23480a7-32a1-c323f78067fd37821 : 9”; 

BEGIN; COMMIT; 

SET GTID_NEXT=”AUTOMATIC”; 

Answer:


Q28. Compare a typical Distributed Replicated Block Device (DRBD) with MySQL Standard Replication using master-slave replication. 

Which two statements are correct? 

A. Both technologies use the TCP/IP stack as their primary transmission medium. 

B. DRBD uses shared-disk technology. 

C. Both technologies guarantee an identical copy of data on the secondary node. 

D. Only MySQL can maintain a time-delayed copy of data on the secondary node. 

Answer:


Q29. Which MySQL utility program should you to process and sort the slow Query log based on query time or average query time? 

A. Mysqlslow 

B. Mysqldumpslow 

C. Mysqlshow 

D. Mysqldump 

E. Mysqlaccess 

Answer:

Reference: http://dev.mysql.com/doc/refman/5.0/en/mysqldumpslow.html 


Q30. 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? 

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. 

Answer: A,E