nerdexam
Oracle

1Z0-888 · Question #2

Which MySQL utility program should you use to process and sort the Slow Query Log based on query time or average query time?

The correct answer is A. mysqldumpslow. mysqldumpslow is the correct utility - it was built specifically to parse MySQL's Slow Query Log and summarize/sort entries by metrics like query time, average query time, and execution count, making it easy to identify problematic queries. Why the distractors are wrong: B…

Performance Tuning

Question

Which MySQL utility program should you use to process and sort the Slow Query Log based on query time or average query time?

Options

  • Amysqldumpslow
  • Bmysqldump
  • Cmysqlaccess
  • Dmysqlshow
  • Emysqlslow

How the community answered

(13 responses)
  • A
    85% (11)
  • C
    8% (1)
  • E
    8% (1)

Explanation

mysqldumpslow is the correct utility - it was built specifically to parse MySQL's Slow Query Log and summarize/sort entries by metrics like query time, average query time, and execution count, making it easy to identify problematic queries.

Why the distractors are wrong:

  • B. mysqldump - exports database data/schema for backups; it knows nothing about query logs.
  • C. mysqlaccess - checks and reports user access privileges; unrelated to performance analysis.
  • D. mysqlshow - displays metadata about databases, tables, and columns; not a log analysis tool.
  • E. mysqlslow - this utility does not exist; it's a plausible-sounding fabrication.

Memory tip: Break the name apart - mysqldumpslow = "dump (summarize) the slow queries." The word slow in the name directly maps to the Slow Query Log, making it the only logical choice.

Topics

#Slow Query Log#Performance Diagnostics#MySQL Utilities#Query Analysis

Community Discussion

No community discussion yet for this question.

Full 1Z0-888 Practice