MySQL 8.0 Database Administrator — Question 53
You issue this command:
SHOW SLAVE STATUS -
In the output, there is a value for Seconds_behind_master.
How is this time calculated?
Answer options
- A. It is the time between the I/O thread receiving details of the master's last transaction and the time it was applied by the SQL thread.
- B. It is the time between the most recent transaction written to the relay logs and the time it was committed on the master.
- C. It is the time between the I/O thread receiving details of the master’s last transaction and the time it was written to the relay log on the slave.
- D. It is the time between the most recent transaction applied by a SQL thread and the time it was committed on the master.
Correct answer: D
Explanation
The correct answer is D because Seconds_behind_master reflects the interval from when the SQL thread applies the last transaction to the time it was committed on the master. Options A and C focus on the I/O thread's operations rather than the SQL thread's application of transactions, while option B pertains to relay log transactions rather than the SQL thread's processing time.