0
0
Redisquery~10 mins

Redis configuration file - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the Redis server port to 6379.

Redis
port [1]
Drag options to blanks, or click blank then click option'
A6379
B6380
C7000
D8080
Attempts:
3 left
💡 Hint
Common Mistakes
Using a port number that is not standard for Redis.
Leaving the port number blank or commented out.
2fill in blank
medium

Complete the code to enable Redis persistence with RDB snapshots every 900 seconds if at least 1 key changed.

Redis
save [1] 1
Drag options to blanks, or click blank then click option'
A300
B1800
C60
D900
Attempts:
3 left
💡 Hint
Common Mistakes
Using too short or too long intervals that do not match the requirement.
Confusing the order of parameters in the save directive.
3fill in blank
hard

Fix the error in the line to disable protected mode in Redis configuration.

Redis
protected-mode [1]
Drag options to blanks, or click blank then click option'
Atrue
Byes
Cno
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'true' or 'false' instead of 'yes' or 'no'.
Leaving protected mode enabled when it should be disabled.
4fill in blank
hard

Fill both blanks to configure Redis to require a password and set it to 'mypassword'.

Redis
requirepass [1]
# Uncomment to enable password
# requirepass [2]
Drag options to blanks, or click blank then click option'
Amypassword
Bpassword123
Credispass
Dsecret
Attempts:
3 left
💡 Hint
Common Mistakes
Using different passwords in the two places.
Leaving the password commented out.
5fill in blank
hard

Fill all three blanks to configure Redis to bind only to localhost, disable protected mode, and set maxmemory to 256mb.

Redis
bind [1]
protected-mode [2]
maxmemory [3]
Drag options to blanks, or click blank then click option'
A127.0.0.1
Bno
C256mb
D0.0.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Binding to 0.0.0.0 exposes Redis to all interfaces.
Using 'yes' instead of 'no' for protected mode.
Setting maxmemory without units.