0
0
Redisquery~10 mins

Why configuration matters in Redis - Test Your Understanding

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

Complete the code to set the maximum memory limit in Redis configuration.

Redis
CONFIG SET maxmemory [1]
Drag options to blanks, or click blank then click option'
A100mb
Bmaxmemory
Ctimeout
Dappendonly
Attempts:
3 left
💡 Hint
Common Mistakes
Using a configuration name instead of a value.
Using a command name instead of a memory size.
2fill in blank
medium

Complete the code to enable AOF persistence in Redis.

Redis
CONFIG SET [1] yes
Drag options to blanks, or click blank then click option'
Asave
Bappendonly
Crdbcompression
Dmaxclients
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'save' with enabling appendonly.
Using numeric values instead of 'yes' or 'no'.
3fill in blank
hard

Fix the error in the command to set the eviction policy to 'allkeys-lru'.

Redis
CONFIG SET maxmemory-policy [1]
Drag options to blanks, or click blank then click option'
Aallkeys-lru
Bnoeviction
Cvolatile-random
Drandom
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'noeviction' which disables eviction.
Choosing policies that only evict volatile keys.
4fill in blank
hard

Fill both blanks to configure Redis to save snapshots every 60 seconds if at least 1000 keys changed.

Redis
CONFIG SET save "[1] [2]"
Drag options to blanks, or click blank then click option'
A60
B1000
C900
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the time and keys values.
Using too large or too small numbers.
5fill in blank
hard

Fill all three blanks to configure Redis to disable AOF, set max clients to 500, and set timeout to 300 seconds.

Redis
CONFIG SET appendonly [1]
CONFIG SET maxclients [2]
CONFIG SET timeout [3]
Drag options to blanks, or click blank then click option'
Ayes
B500
C300
Dno
Attempts:
3 left
💡 Hint
Common Mistakes
Setting appendonly to 'yes' instead of 'no'.
Using wrong numbers for maxclients or timeout.