AWS Certified SysOps Administrator – Associate — Question 193
A SysOps administrator needs to collect the content of log files from a custom application that is deployed across hundreds of Amazon EC2 instances running Ubuntu. The log files need to be stored in Amazon CloudWatch Logs.
How should the SysOps administrator collect the application log files with the LOWEST operational overhead?
Answer options
- A. Configure the syslogd service on each EC2 instance to collect and send the application log files to CloudWatch Logs.
- B. Install the CloudWatch agent by using the Amazon Linux package manager on each EC2 instance. Configure each agent to collect the application log files.
- C. Install the CloudWatch agent on each EC2 instance by using AWS Systems Manager. Create an agent configuration on each instance by using the CloudWatch configuration wizard. Configure each agent to collect the application log files.
- D. Store a CloudWatch agent configuration in the AWS Systems Manager Parameter Store. Install the CloudWatch agent on each EC2 instance by using Systems Manager. Configure each agent to collect the application log files.
Correct answer: D
Explanation
The correct answer is D because it minimizes operational overhead by leveraging AWS Systems Manager to install the CloudWatch agent and using the Parameter Store for configuration management. Options A, B, and C require more manual configuration or installation steps on each instance, leading to higher operational overhead.