An administrator wants to monitor disk I/O performance in real-time, focusing on metrics like wait time and I/O queue size. Which tool is best suited for this?
The -x flag extends iostat output to include per-device metrics such as average wait time (await) and queue size (aqu-sz), while the interval argument 1 refreshes these statistics every second, satisfying the real-time monitoring requirement in the stem.
Why this answer
iostat -x 1 provides extended disk statistics refreshed every second, including await (average wait time), svctm, %util, and avgqu-sz (average queue size), which directly match the requested metrics. The -x flag enables the extended report that exposes per-device wait and queue depth, making it the correct real-time tool.
Exam trap
XK0-006 often tests the distinction between real-time per-device tools (iostat -x) and aggregate or historical tools (vmstat, sar), so candidates who pick vmstat for 'wait time and queue size' fall into the trap of confusing summary I/O counters with extended device metrics.
How to eliminate wrong answers
Option A is wrong because vmstat reports CPU, memory, paging, and block I/O counts but does not expose per-device wait time or I/O queue size. Option B is wrong because sar -b reports historical block I/O activity rates (tps, rtps, wtps, bread/s, bwrtn/s) from collected data, not real-time per-device queue metrics. Option C is wrong because free -h only displays memory and swap usage and has nothing to do with disk I/O.