1z0-883 Actual Exam Questions

Last updated on Nov. 25, 2024.
Vendor:Oracle
Exam Code:1z0-883
Exam Name:MySQL 5.6 Database Administrator
Exam Questions:100
 

Topic 1 - Single Topic

Question #1 Topic 1

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";
Reveal Solution Hide Solution   Discussion   2

Correct Answer: A 🗳️

Question #2 Topic 1

Consider the following statement on a RANGE partitioned table:
ALTER TABLE orders DROP PARTITION p1, p3;
What is the outcome of executing the above statement?

  • A. Only the first partition (p1) will be dropped as only one can be dropped at any time.
  • B. All data in p1 and p3 partitions are removed, but the table definition remains unchanged.
  • C. A syntax error will result as you cannot specify more than one partition in the same statement.
  • D. All data in pi and p3 partitions are removed and the table definition is changed.
Reveal Solution Hide Solution   Discussion  

Correct Answer: D 🗳️
Reference:
https://dev.mysql.com/doc/refman/5.5/en/partitioning-management.html

Question #3 Topic 1

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?

  • 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.
Reveal Solution Hide Solution   Discussion  

Correct Answer: C 🗳️
The processlist table has only the connected session info. The mysql.proc and information_schema.routines has the SP/routines and functions info including the definer and definition code.

Question #4 Topic 1

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

  • 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.
Reveal Solution Hide Solution   Discussion  

Correct Answer: B 🗳️

file Viewing page 1 out of 25 pages.
Viewing questions 1-4 out of 100 questions
Next Questions
Browse atleast 50% to increase passing rate cup
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago