Subdomain 1.1: Config File Modification
1.What action must be taken immediately after modifying the datadog.yaml file for the changes to take effect?
- A.Refresh the Datadog web UI
- B.Restart the Datadog Agent service
- C.Run the datadog-agent update command
- D.Reboot the host machine
Show answer & explanation
Correct answer: B — Restart the Datadog Agent service
- A. Refreshing the Datadog web UI does not affect the Agent's local configuration. The web UI is primarily used for visualization and backend monitoring settings; it does not communicate back to the agent process to trigger a configuration reload.
- B. Restarting the Datadog Agent service is necessary because the Agent process reads its configuration file (datadog.yaml) at startup. For any manual changes in the yaml file to be applied, the process must be restarted using commands like `systemctl restart datadog-agent` or `service datadog-agent restart`.
- C. There is no specific 'datadog-agent update' command designed to apply configuration changes. Update commands are generally used for upgrading the Agent binary rather than reloading settings.
- D. While rebooting the host machine would restart the Datadog Agent and apply the changes, it is an unnecessarily disruptive action. A simple restart of the agent service is sufficient and preferred over a full system reboot.