Course menuSOA-C03

Exams / SOA-C03 / Automated remediation with Systems Manager / Question 1

SOA-C03 practice question: Automated remediation with Systems Manager (1 of 2)

Monitoring, Logging, Analysis, Remediation, and Performance Optimization A free question from our original SOA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A dental chain's appointment API runs on EC2 instances.

About once a week the API process hangs, and a custom CloudWatch alarm on its health-check metric goes into ALARM. The fix is always to restart the service with a custom Systems Manager Automation runbook the team already wrote.

Rebooting the instance is not acceptable, because the cache takes 10 minutes to warm. The team wants the fix to run automatically within a minute of the alarm.

What should a CloudOps engineer do?

Choose one answer.

  1. A. Add an EC2 reboot action to the alarm so that the instance restarts automatically whenever the health-check alarm enters ALARM.
  2. B. Create a State Manager association that runs the runbook on all instances every 30 minutes, whether or not the alarm has fired.
  3. C. Create an EventBridge rule that matches the alarm's state change to ALARM and starts the Automation runbook through an IAM role allowed to start it.
  4. D. Write a Lambda function that runs every minute, checks the alarm state with the CloudWatch API, and calls Run Command to restart the service.
Show the answer and explanation

Answer: C

Explanation

Automatic remediation in AWS usually chains an alarm to an action through EventBridge. The alarm's state change event matches a rule, and the rule starts a Systems Manager Automation runbook that performs the precise fix. EC2 alarm actions are coarser, scheduled associations are slower, and polling code adds overhead.

Automatic remediation from a CloudWatch alarm through EventBridge A CloudWatch alarm goes into ALARM. An EventBridge rule matches the state change and starts a Systems Manager Automation runbook through an IAM role. The runbook applies a targeted fix to the EC2 instance without a reboot. CloudWatch alarm on a metric goes into ALARM EventBridge rule matches the change fires within seconds Automation runbook custom or AWS-owned started through an IAM role EC2 instance targeted fix only the fix runs, no reboot needed
The alarm's state change is the trigger, and the runbook does only the precise fix, so the cache stays warm.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Automated remediation with Systems Manager? The 5 full-length practice sets have 8 more Automated remediation with Systems Manager questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets