AWS Certified SysOps Administrator – Associate — Question 162
An errant process is known to use an entire processor and run at 100%. A SysOps administrator wants to automate restarting an Amazon EC2 instance when the problem occurs for more than 2 minutes.
How can this be accomplished?
Answer options
- A. Create an Amazon CloudWatch alarm for the EC2 instance with basic monitoring. Add an action to restart the instance.
- B. Create an Amazon CloudWatch alarm for the EC2 instance with detailed monitoring. Add an action to restart the instance.
- C. Create an AWS Lambda function to restart the EC2 instance, invoked on a scheduled basis every 2 minutes.
- D. Create an AWS Lambda function to restart the EC2 instance, invoked by EC2 health checks.
Correct answer: B
Explanation
The correct answer is B because detailed monitoring provides the necessary metrics to accurately detect when the CPU utilization exceeds the threshold for more than 2 minutes. Option A, with basic monitoring, does not provide the granularity needed for this situation. Options C and D do not directly address the requirement to monitor CPU utilization over time and take action based on that specific metric.