0
0
Redisquery~10 mins

Port and bind address in Redis - 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 Redis to listen on port 6379.

Redis
port [1]
Drag options to blanks, or click blank then click option'
A5432
B8080
C6379
D3306
Attempts:
3 left
💡 Hint
Common Mistakes
Using MySQL or PostgreSQL default ports instead of Redis port.
Leaving the port number blank.
2fill in blank
medium

Complete the code to bind Redis to localhost only.

Redis
bind [1]
Drag options to blanks, or click blank then click option'
A192.168.1.1
B127.0.0.1
C0.0.0.0
D::1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0.0.0.0 which allows external connections.
Using an external IP address instead of localhost.
3fill in blank
hard

Fix the error in the bind configuration to allow only local connections.

Redis
bind [1]
Drag options to blanks, or click blank then click option'
A127.0.0.1
Blocalhost
C0.0.0.0
D192.168.0.1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'localhost' instead of 127.0.0.1.
Binding to 0.0.0.0 which allows all connections.
4fill in blank
hard

Fill both blanks to configure Redis to listen on port 6380 and bind to all interfaces.

Redis
port [1]
bind [2]
Drag options to blanks, or click blank then click option'
A6380
B6379
C0.0.0.0
D127.0.0.1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing port numbers and bind addresses.
Using 127.0.0.1 when external access is needed.
5fill in blank
hard

Fill all three blanks to configure Redis to bind only to localhost, listen on port 6379, and disable the default port.

Redis
bind [1]
port [2]
port [3]
Drag options to blanks, or click blank then click option'
A127.0.0.1
B6379
C0
D0.0.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0.0.0.0 instead of 127.0.0.1 for binding.
Not disabling the default port correctly.