Skip to Content

AWS Certified SysOps Administrator – Associate: Effective Process Monitoring on Amazon EC2 Instances: Utilizing CloudWatch and AWS Systems Manager

Discover how to effectively monitor and automatically restart processes on Amazon EC2 instances using Amazon CloudWatch’s procstat plugin and AWS Systems Manager Automation runbooks. Learn to ensure uninterrupted process execution for optimal system performance.

Table of Contents

Question

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.

Answer

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.

Explanation

The Amazon CloudWatch agent’s procstat plugin can be used to continuously monitor specified processes and report their metrics to Amazon CloudWatch. When the process stops or crashes on the instance, the alarm goes into the In alarm state. A CloudWatch alarm can then be set on one of these metrics, with its missing data policy set to Treat missing data as bad (breaching threshold), to trigger an alarm condition.

When the alarm condition is triggered, it can initiate an AWS Systems Manager Automation runbook to restart the process. This ensures that if the process stops, it restarts automatically, meeting the requirements.

Amazon AWS Certified SysOps Administrator – Associate certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified SysOps Administrator – Associate exam and earn Amazon AWS Certified SysOps Administrator – Associate certification.