Challenge - 5 Problems
Password Policy Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate2:00remaining
Check password expiration setting
What is the output of the following query that checks the global password expiration policy in MySQL?
MySQL
SHOW VARIABLES LIKE 'default_password_lifetime';
Attempts:
2 left
💡 Hint
The default value 0 means passwords never expire unless changed.
✗ Incorrect
The default_password_lifetime variable controls how many days a password is valid before expiration. A value of 0 means no expiration.
📝 Syntax
intermediate2:00remaining
Identify the correct syntax to enforce password expiration
Which option correctly sets the password expiration policy to 60 days for all users in MySQL?
Attempts:
2 left
💡 Hint
The setting is a global variable, not a user-level command.
✗ Incorrect
The correct way to set password expiration globally is by setting default_password_lifetime variable.
🧠 Conceptual
advanced2:00remaining
Understanding password validation plugin
Which statement best describes the role of the MySQL
validate_password plugin?Attempts:
2 left
💡 Hint
Think about what controls password complexity requirements.
✗ Incorrect
The validate_password plugin checks password strength requirements such as minimum length, mixed case, digits, and special characters.
🔧 Debug
advanced2:00remaining
Why does this password expiration command fail?
A DBA runs this command to expire a user's password immediately but gets an error:
What is the reason for the failure?
ALTER USER 'alice'@'localhost' PASSWORD EXPIRE INTERVAL 0 DAY;What is the reason for the failure?
Attempts:
2 left
💡 Hint
Check the correct syntax for immediate password expiration.
✗ Incorrect
To expire a password immediately, use ALTER USER 'alice'@'localhost' PASSWORD EXPIRE; without INTERVAL. Using INTERVAL 0 DAY is invalid syntax.
❓ optimization
expert3:00remaining
Optimize password policy enforcement for many users
You want to enforce a strong password policy and expiration for thousands of users efficiently. Which approach is best?
Attempts:
2 left
💡 Hint
Think about scalability and central management.
✗ Incorrect
Setting global variables and enabling the validation plugin applies policies automatically to all users, which is efficient and scalable.