MySQL 8.0 Database Administrator — Question 113

Examine Joe's account:
CREATE USER 'joe'@'%' IDENTIFIED BY '*secret*'
GRANT ALL PRIVILEGES ON *.* TO 'joe'@'%'
All existing connections for joe are killed.
Which two commands will stop joe establishing access to the MySQL instance? (Choose two.)

Answer options

Correct answer: C, E

Explanation

The correct answers are C and E. Option C removes all privileges from joe, effectively blocking his access to the MySQL instance. Option E forces joe to change his password to an invalid one and expires it, preventing future logins. The other options either lock the account without terminating existing access or do not effectively stop access.