Topic 1 Question #3
An environment consists of 100 Amazon EC2 Windows instances. The Amazon CloudWatch agent is deployed and running on all EC2 instances with a baseline configuration file to capture log files. There is a new 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 filo 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.
Answer: A
This scenario falls under the SOA-C03 core domains of monitoring and logging management, and operational efficiency at scale for cloud resources. The requirement is to add DHCP log collection to 50 existing EC2 Windows instances that already run a CloudWatch agent with a working baseline configuration. The most operationally efficient solution eliminates manual per-instance administration, avoids risk of breaking existing baseline log collection, and uses AWS native managed tools to automate changes across the fleet. The suggested approach leverages Systems Manager Run Command for scalable, no-touch execution of configuration updates, and the CloudWatch agent's append-config functionality to add the new DHCP log settings without modifying the existing baseline configuration, meeting the requirement with minimal overhead and low error risk.
Option Analysis:
A. Correct. The CloudWatch agent's append-config parameter allows administrators to add supplementary configuration snippets for additional logs or metrics without overwriting the existing deployed baseline configuration, preventing disruption to pre-existing log collection. AWS Systems Manager Run Command enables secure, automated execution of the CloudWatch agent restart with the new appended configuration across all 50 target instances simultaneously, eliminating the need for manual access to each instance, which is fully aligned with CloudOps best practices for operational efficiency at scale.
B. Incorrect. Manually logging in to each of 50 instances to create and run a custom PowerShell script is extremely labor intensive, not scalable, and introduces high risk of human error. This approach also duplicates functionality natively supported by the CloudWatch agent, making it both inefficient and unnecessary for this use case.
C. Incorrect. Running the CloudWatch agent configuration wizard on each individual instance is a manual, time-consuming process that is not suitable for managing fleets of instances. Rebuilding the full configuration from scratch on each instance also introduces significant risk of misconfiguring the existing baseline log collection, leading to gaps in monitoring.
D. Incorrect. First, running the configuration wizard on each instance is manual and operationally inefficient for fleet management. Second, the CloudWatch agent configuration wizard's advanced detail level does not automatically include DHCP log collection, as DHCP logs are stored in a custom path that requires explicit configuration, so this approach fails to meet the stated requirement even if the manual work is performed.
Key Concepts:
1. CloudWatch Agent Modular Configuration: The CloudWatch agent supports appending supplementary configuration snippets to an existing base configuration via the append-config flag, allowing teams to manage monitoring settings in modular, reusable components without overwriting pre-deployed working configurations. This is a core skill for SOA-C03 candidates managing consistent monitoring across large fleets.
2. AWS Systems Manager Run Command: Run Command is a managed automation service that enables secure, remote execution of commands and scripts across tens, hundreds, or thousands of EC2 instances without requiring RDP/SSH access to individual instances. This is a foundational tool for CloudOps engineers to reduce operational overhead and enforce consistent configuration across fleets, a key domain for the SOA-C03 exam.
3. Operational Efficiency for Fleet Management: SOA-C03 exam objectives prioritize low-touch, automated, repeatable processes for managing cloud resources at scale, as manual per-resource administration introduces cost, error risk, and scalability limits for large environments.
References:
Create or edit the CloudWatch agent configuration file,
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html
AWS Systems Manager Run Command,
https://docs.aws.amazon.com/systems-manager/latest/userguide/execute-remote-commands.html