Hashicorp Certified Consul Associate 002 · Free Practice Question Medium
Question 11
There are two methods to bind the Consul service to a specific IP address. What are the two ways? (select two)
-
A
in the command line that is executed when the Consul service is started
-
B
by using an environment variable
-
C
using the configuration file
-
D
setting the preferred static IP address on eth0 rather than eth1
Reveal correct answers
Correct answers: A, C
Explanation
Consul can be bound to a specific IP address by either using the flag in the executable statement when Consul is started, such as the ExecStart command in a service file or the IP address can be defined in the configuration file itself.
For example, in the configuration file, you can set the bind_addr parameter to define the IP address, or you can use the flag -bind in the command line that starts Vault. Either solution will bind the server to one specific address.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
