There are 100 Windows EC2 instances in an environment. The CloudWatch agent is installed on all instances with a baseline config that collects log files. Now 50 instances need to start collecting DHCP logs as well. What is the most operationally efficient way to implement this change?
Choose an answer
Tap an option to check your answer.
Correct answer: Create another CloudWatch agent configuration for the DHCP logs and use AWS Systems Manager Run Command to restart the agent on each instance with the append-config option to apply the new config..
Why this is the answer
The most operationally efficient method is to create a new CloudWatch agent configuration specifically for DHCP logs. You can then use AWS Systems Manager Run Command to apply this new configuration to the 50 target instances. The append-config option allows you to add the new DHCP log collection without overwriting the existing baseline configuration, ensuring both sets of logs are collected. This approach leverages automation and avoids manual intervention on individual instances. RDPing to each instance is manual, time-consuming, and not scalable. Running the CloudWatch agent configuration wizard interactively on each instance is also a manual process and inefficient for 50 instances. The wizard does not automatically capture DHCP logs at an "advanced level"; specific configurations are always required.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed