Complete the code to set a password for Redis.
requirepass [1]Setting requirepass with a password protects Redis from unauthorized access.
Complete the command to connect to Redis with authentication.
redis-cli -a [1]The -a option is used to provide the password when connecting to Redis.
Fix the error in the Redis config line to disable external access.
bind [1]Binding Redis to 127.0.0.1 restricts access to the local machine only, improving security.
Fill both blanks to configure Redis to require password and bind only locally.
bind [1] requirepass [2]
Binding to 127.0.0.1 restricts access to local machine and setting requirepass enforces authentication.
Fill all three blanks to create a Redis ACL user with password and limited commands.
ACL SETUSER [1] on >[2] ~* +[3]
This command creates a user named readonly with password readonlypass and allows only the get command.