
Explanation:
Using AWS Systems Manager Run Command with the append-config option is the most operationally efficient method to update the CloudWatch agent configuration across multiple instances (50 in this case). This allows you to add new log locations to the existing configuration without manually logging into each instance or starting from scratch. Options B and C are manually intensive and not efficient for large fleets. Option D does not specifically target the DHCP log files required.
Ultimate access to all questions.
A company has a requirement to capture the DHCP log files that exist on 50 of the instances. What is the MOST operationally efficient way to meet this new requirement?
A
Create an additional CloudWatch agent configuration file to capture the DHCP logs. Use the AWS Systems Manager Run Command to restart the CloudWatch agent on each EC2 instance with the append-config option to apply the additional configuration file.
B
Log in to each EC2 instance with administrator rights. Create a PowerShell script to push the needed baseline log files and DHCP log files to CloudWatch.
C
Run the CloudWatch agent configuration file wizard on each EC2 instance. Verify that the baseline log files are included and add the DHCP log files during the wizard creation process.
D
Run the CloudWatch agent configuration file wizard on each EC2 instance and select the advanced detail level. This will capture the operating system log files.
E
None
F
None
No comments yet.