AWS Certified SysOps Administrator – Associate (legacy) — Question 19
An errant process is known to use an entire processor and run at 100%. A SysOps Administrator wants to automate restarting the instance once 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. Enable an action to restart the instance.
- B. Create a CloudWatch alarm for the EC2 instance with detailed monitoring. Enable an action to restart the instance.
- C. Create an AWS Lambda function to restart the EC2 instance, triggered on a scheduled basis every 2 minutes.
- D. Create a Lambda function to restart the EC2 instance, triggered by EC2 health checks.
Correct answer: B
Explanation
The correct answer is B because using detailed monitoring allows for more precise control and timely detection of the CPU usage exceeding the threshold. Option A uses basic monitoring, which does not provide the necessary granularity for this scenario. Options C and D do not automatically monitor the CPU conditions, making them less effective for immediate intervention.