MySQL 8.0 Database Administrator — Question 5

You execute this command:
shell> mysqlpump --exclude-databases=% --users
Which statement is true?

Answer options

Correct answer: A

Explanation

The correct answer is A because the mysqlpump command with the --users option is specifically designed to create a backup of all MySQL user accounts. Option B is incorrect because it refers to metadata only and does not acknowledge the focus on user accounts. Option C is wrong as mysqlpump is a valid command for this purpose, and option D is incorrect since the command does not limit the backup to just the users database.