Scenario: You are storing configuration settings for your application in Consul’s K/V store, and each setting is critical to the successful implementation of the application. A developer recently updated the value for app1, causing the deployment to fail.
What Consul feature can be used to monitor the K/V store for updates and automatically take action to remediate the issue?
A . set up health checks to monitor for changes to the K/V store
B. set up an ACL to automatically restart the Consul service when a value is changed
C. configure a watch and execute a script to update the application
D. use the raft consensus protocol to replicate the changes from the other nodes when a value is
changed
Answer: C
Explanation:
Watches are a way of specifying a view of data (e.g. list of nodes, KV pairs, health checks) which is monitored for updates. When an update is detected, an external handler is invoked. A handler can be any executable or HTTP endpoint.
As an example, you could set up a key watch type that executes a python script when the value of a key
changes.
https://www.consul.io/docs/agent/watches.html
Latest Consul Associate Dumps Valid Version with 171 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund