AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
An e-commerce company runs a stateful payment service on an Auto Scaling group of Amazon EC2 instances. The CloudWatch agent publishes the mem_used_percent metric from each instance. When the mem_used_percent metric exceeds 90% for 2 consecutive minutes, the company wants the affected instance to be gracefully rebooted through the AWS-RestartEC2Instance Systems Manager Automation runbook. Which approach requires the LEAST operational overhead?
Attach a step-scaling policy that uses the mem_used_percent metric to increase desired capacity by one, allowing Auto Scaling to terminate and replace the over-utilized instance.
Create a CloudWatch alarm for the mem_used_percent metric on each instance. Configure an EventBridge rule to be triggered by the alarm state change, invoking the AWS-RestartEC2Instance Systems Manager Automation runbook with the alarmed instance ID as a target.
Install a cron script on every instance that checks the mem_used_percent metric each minute and calls Systems Manager Run Command to reboot the instance when the threshold is reached.
Create an SSM State Manager association that runs the AWS-RunShellScript document every minute to evaluate memory usage and reboot the instance if the threshold is breached.
A CloudWatch alarm can evaluate the per-instance mem_used_percent metric and change to the ALARM state when the threshold is breached. CloudWatch automatically emits an Alarm State Change event to EventBridge, where a rule can be configured to target the AWS-RestartEC2Instance runbook and pass the alarmed instance ID as input. This serverless, event-driven workflow requires no custom code or continuous polling and is the most efficient solution.
The cron-based script and the State Manager association are polling-based solutions that demand agent-side maintenance and custom logic on every instance, resulting in higher operational overhead. A step-scaling policy replaces, rather than reboots, the instance and cannot guarantee the preservation of in-memory state, so it does not meet the reboot requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an EventBridge rule and how does it work with a CloudWatch alarm?
Open an interactive chat with Bash
What is the AWS-RestartEC2Instance Systems Manager Automation runbook?
Open an interactive chat with Bash
Why is a serverless, event-driven approach preferred over polling-based solutions?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Monitoring, Logging, Analysis, Remediation, and Performance Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .