Course menuSOA-C03

Exams / SOA-C03 / Study guide / Automated remediation with Systems Manager

Automated remediation with Systems Manager: SOA-C03 study notes and practice questions

What to know about Automated remediation with Systems Manager for the SOA-C03 exam, from the Monitoring, Logging, Analysis, Remediation, and Performance Optimization domain (22% of the exam guide), then 2 free questions to test it. Part of the SOA-C03 study guide.

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

What to know for the exam

Remediation questions ask how to fix a recurring problem without a person, with the least custom code.

Systems Manager Automation

  • Runbooks (Automation documents) are multi-step workflows: stop an instance, create a snapshot, run a script, call an API, wait for approval.
  • AWS provides many: AWS-RestartEC2Instance, AWS-StopEC2Instance, AWS-CreateSnapshot, AWSSupport-ExecuteEC2Rescue (repair an unreachable instance’s OS), AWS-DisablePublicAccessForSecurityGroup, AWSConfigRemediation-* runbooks and more.
  • Runbooks run with an Automation assume role that needs permission for every action.
  • Rate control and targets (by tag or resource group) run a runbook across many resources safely.
  • Approval steps pause for a human when needed.

Wiring it together

Trigger Path to the fix
A CloudWatch alarm Alarm state change → EventBridge rule → Automation runbook (or Lambda). Alarms can also take EC2 actions directly
A non-compliant resource AWS Config rule with automatic remediation → Automation runbook
A security finding Security Hub or GuardDuty finding → EventBridge → runbook or Lambda
An AWS Health event Health event → EventBridge → runbook

Other tools

  • EC2 auto recovery: instances recover onto healthy hardware after a system status check failure (simplified automatic recovery is on by default for supported types), keeping instance ID and IP addresses.
  • Systems Manager OpsCenter collects operational issues (OpsItems) with links to runbooks.
  • AWS Systems Manager Incident Manager has closed to new customers, so don’t plan new designs around it.

Common traps

  • Writing a Lambda function for a job an AWS runbook already does. It fails “least operational overhead”.
  • Forgetting the Automation role’s permissions. The runbook fails at the step it can’t perform.
  • Config detects but doesn’t fix by itself. Add a remediation action.

Try the 2 practice 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

A regional bank's engineer edited the SSH daemon configuration on an EBS-backed Amazon Linux reporting server with an unencrypted root volume and restarted it. The server now refuses all SSH connections, and the SSM Agent on it had been stopped weeks ago to save memory.

The team wants an AWS-provided, repeatable way to diagnose and repair common operating system connectivity problems on the instance, without building a recovery process themselves.

Which approach should the team use?

Choose one answer.

  1. A. Run the AWSSupport-ExecuteEC2Rescue Automation runbook to repair the instance offline.
  2. B. Connect with Session Manager and revert the SSH configuration file from the shell session.
  3. C. Use Run Command with the AWS-RunShellScript document to restore the previous SSH configuration file.
  4. D. Create an AMI from the instance and launch a new instance from it, then delete the original instance.
Show the answer and explanation

Answer: A

Explanation

Systems Manager provides predefined runbooks for common repair jobs. AWSSupport-ExecuteEC2Rescue works on the instance's volume offline from a helper instance, so it does not depend on SSH or on a session with the broken instance. Session Manager and Run Command need that agent, and an AMI reproduces the broken configuration.

Study

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

Study Automated remediation with Systems Manager

More Monitoring, Logging, Analysis, Remediation, and Performance Optimization topics