
Explanation:
The Amazon CloudWatch agent supports the procstat plugin, which allows you to monitor individual processes and collect metrics such as CPU, memory usage, and the number of running processes (pid_count). By configuring a CloudWatch alarm on the pid_count metric (e.g., triggering when pid_count drops below 1), you can automatically initiate an AWS Systems Manager Automation runbook as an alarm action to restart the stopped process.
Ultimate access to all questions.
Question 33 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?
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.
No comments yet.