exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 317 discussion

A company is experiencing issues with legacy software running on Amazon EC2 instances. Errors occur when the total CPU utilization on the EC2 instances exceeds 80%. A short-term solution is required while the software is being rewritten. A SysOps administrator is tasked with creating a solution to restart the instances when the CPU utilization rises above 80%.

Which solution meets these requirements with the LEAST operational overhead?

  • A. Write a script that monitors the CPU utilization of the EC2 instances and reboots the instances when utilization exceeds 80%. Run the script as a cron job.
  • B. Add an Amazon CloudWatch alarm for CPU utilization and configure the alarm action to reboot the EC2 instances.
  • C. Create an Amazon EventBridge rule using the predefined patterns for CPU utilization of the EC2 instances. When utilization exceeds 80%, invoke an AWS Lambda function to restart the instances.
  • D. Add an Amazon CloudWatch alarm for CPU utilization and configure an AWS Systems Manager Automation runbook to reboot the EC2 instances when utilization exceeds 80%.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
eltiodolfo
Highly Voted 10 months, 2 weeks ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html "For Whenever this alarm, choose State is ALARM. For Take this action, choose Reboot this instance."
upvoted 6 times
...
Debugs_Bunny
Most Recent 5 months ago
Selected Answer: B
B. Amazon CloudWatch alarm to reboot EC2 instances: CloudWatch provides integrated monitoring for AWS services. By setting an alarm for high CPU utilization, the reboot action can be automated directly within AWS. This approach eliminates the need for custom scripts and external monitoring, significantly reducing operational overhead.
upvoted 2 times
...
vcloudpmp
10 months, 2 weeks ago
From the AWS console: Alarm --> EC2 action Take the following action... Define what will happen to the EC2 instance with the Instance ID i-015f1589677551837 when this alarm is triggered. Recover this instance You can only recover certain EC2 instance types. See documentation Stop this instance You can only stop an instance if it is backed by an EBS volume. AWS will use the existing Service Linked Role (AWSServiceRoleForCloudWatchEvents) to perform this action. Show IAM policy document Terminate this instance You will not be able to terminate this instance if termination protection is enabled. AWS will use the existing Service Linked Role (AWSServiceRoleForCloudWatchEvents) to perform this action. Show IAM policy document Reboot this instance An instance reboot is equivalent to an operating system reboot. AWS will use the existing Service Linked Role (AWSServiceRoleForCloudWatchEvents) to perform this action. Show IAM policy document
upvoted 1 times
...
Gomer
10 months, 3 weeks ago
Selected Answer: D
I think CloudWatch alarms needs to call AWS-RestartEC2Instance SSM runbook to do this. https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-aws-restartec2instance.html
upvoted 1 times
DanSteven
10 months, 1 week ago
I do not think solution D meets these requirements with the LEAST operational overhead
upvoted 2 times
...
Gomer
10 months, 3 weeks ago
I'm inclined to change my vote to "B" because I found a URLl detailing the process just using CloudWatch alarms (no SSM). I do know AWS Config can reboot EC2 using the SSM RestartEC2Instance runbook. Would seem cleaner if CloudWatch alarm could call a runbook like AWS Config. It's possible CloudWatch actually calling the runbook in the background. see: "Adding reboot actions to Amazon CloudWatch alarms" in... https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago