How can this be accomplished?

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?
A . Create an Amazon CloudWatch alarm for the Amazon 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

Answer: B

Explanation:

To address the issue of an errant process consuming an entire processor and running at 100%, the SysOps administrator can automate the restarting of the instance using Amazon CloudWatch and AWS Systems Manager.

Enable Detailed Monitoring:

Ensure that detailed monitoring is enabled on the EC2 instance. Detailed monitoring provides data in 1-minute periods, which is crucial for detecting the 2-minute threshold accurately.

Reference: Amazon EC2 Detailed Monitoring

Create a CloudWatch Alarm:

Navigate to the CloudWatch console.

Select "Alarms" and click on "Create Alarm".

Choose the EC2 instance metric for CPU utilization.

Set the condition to trigger the alarm when the CPU utilization is greater than or equal to 100% for 2 consecutive periods of 1 minute each.

Reference: Creating Amazon CloudWatch Alarms

Enable an Action to Restart the Instance:

In the actions section of the alarm creation, select "EC2 Action" and then "Reboot this instance". This action will automatically restart the instance when the alarm is triggered.

Reference: Adding Alarms to Amazon EC2 Actions

This setup ensures that if the CPU utilization reaches 100% for more than 2 minutes, the instance will automatically restart, mitigating the impact of the errant process.

Latest SOA-C02 Dumps Valid Version with 54 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments