exam questions

Exam 1z0-883 All Questions

View all questions & answers for the 1z0-883 exam

Exam 1z0-883 topic 1 question 1 discussion

Actual exam question from Oracle's 1z0-883
Question #: 1
Topic #: 1
[All 1z0-883 Questions]

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";
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
badguy001djh
3 years, 11 months ago
E is correct.
upvoted 1 times
badguy001djh
3 years, 11 months ago
Ingore this.
upvoted 1 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago