Hashicorp Certified Consul Associate 002 · Free Practice Question Medium
Question 2
Scenario: You have a Consul cluster running in production, with multiple production workloads using Consul for service discovery. Currently, there is an issue with registering a new service to Consul, so you want to modify the Consul log level to help troubleshoot the problem. After adjusting the configuration file and changing the LOG_LEVEL parameter, the change hasn't taken place, and you can't restart the Consul service due to fear of causing an outage.
How can you instruct Consul to update the configuration without restarting the service, so the new log level is applied?
-
A
place the Consul node in maintenance mode
-
B
using the service manager such as systemctl, issue an update command
-
C
disable and reenable logging for Consul, thus forcing Consul to read the logging configuration
-
D
issue a
consul reloadcommand so Consul reads the configuration file again and applies the changes
Reveal correct answer
Correct answer: D
Explanation
The consul reload command triggers a reload of configuration files for the agent. Not all configuration options are reloadable. To see what configuration options are reloaded when a reload command is issued, check out this link here.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
