What is the default port Redis listens on, and what is the default bind address if none is specified?
Redis uses a common port number for its service and by default listens only on localhost.
Redis by default listens on port 6379 and binds to the loopback address 127.0.0.1, meaning it only accepts connections from the local machine.
Given the Redis configuration line bind 0.0.0.0, what is the effect on Redis server accessibility?
0.0.0.0 means all IPv4 addresses.
Binding to 0.0.0.0 means Redis listens on all network interfaces, allowing connections from any IP address.
Which configuration snippet correctly sets Redis to listen on port 6380 and bind only to localhost?
Check both port number and bind address carefully.
Option A correctly sets the port to 6380 and binds to localhost (127.0.0.1). Other options either have wrong port or bind address.
You want Redis to be accessible only from two specific IP addresses: 192.168.1.10 and 10.0.0.5. Which bind configuration is correct?
Redis supports multiple IP addresses in bind directive separated by spaces.
Option C binds Redis to only the two specified IP addresses, restricting access to those machines. Other options are either too open or too restrictive.
After changing Redis config to port 70000 and bind 256.256.256.256, Redis fails to start. What is the cause?
Check valid ranges for port numbers and IP addresses.
Port numbers must be between 0 and 65535. IP addresses must have each octet between 0 and 255. Both values are invalid here causing Redis startup failure.