AWS Certified SysOps Administrator – Associate — Question 355
A SysOps administrator needs to monitor a process that runs on Linux Amazon EC2 instances. If the process stops, the process must restart automatically. The Amazon CloudWatch agent is already installed on all the EC2 instances.
Which solution will meet these requirements?
Answer options
- A. Add a procstat monitoring configuration to the CloudWatch agent for the process. Create an Amazon EventBridge event rule that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
- B. Add a StatsD monitoring configuration to the CloudWatch agent for the process. Create a CloudWatch alarm that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
- C. Add a StatsD monitoring configuration to the CloudWatch agent for the process. Create an Amazon EventBridge event rule that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
- D. Add a procstat monitoring configuration to the CloudWatch agent for the process. Create a CloudWatch alarm that initiates an AWS Systems Manager Automation runbook to restart the process after the process stops.
Correct answer: A
Explanation
The procstat plugin in the Amazon CloudWatch agent is specifically designed to monitor system processes and collect metrics such as process count. StatsD is intended for custom application metrics and is not suited for monitoring specific Linux processes, which rules out options B and C. Using procstat to monitor the process and integrating with Amazon EventBridge allows you to detect process termination events and trigger an AWS Systems Manager Automation runbook to automatically restart the service.