AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
An operations team collects JVM heap usage as a custom CloudWatch metric from two Amazon EC2 instances that run a critical application. They must automatically restart the application service on the affected instance whenever average heap usage exceeds 80 % for 5 consecutive minutes. The solution must require the least operational overhead and allow administrators to view execution output in AWS. Which approach meets these requirements?
Configure the alarm to initiate the EC2 recover action when the threshold is breached and review activity through CloudTrail logs.
Publish the alarm to an SNS topic that invokes a Lambda function. The function connects to the instance over SSH to restart the service and writes logs to CloudWatch Logs.
Attach a step scaling policy to the Auto Scaling group to launch an additional instance when the metric exceeds the threshold, relying on load balancer health checks to remove the busy instance.
Create a CloudWatch alarm on the custom metric. Add an EventBridge rule that matches the alarm when it enters the ALARM state and targets a Systems Manager Automation runbook that restarts the service on the indicated EC2 instance.
A CloudWatch metric alarm can be configured to publish a state-change event automatically to Amazon EventBridge. An EventBridge rule that matches the alarm's ARN when the state transitions to ALARM can invoke an AWS Systems Manager Automation runbook. The runbook uses the Systems Manager agent already running on the instance to restart the application service and reports detailed execution output in the Automation console. This approach is completely managed, needs no custom code or manual SSH access, and keeps all operational data within AWS.
Using an SNS topic with a Lambda function introduces extra components to build and maintain. Auto Scaling policies or EC2 recovery actions do not restart the application process itself and therefore do not address the requirement. CloudTrail cannot trigger Automation directly; it only logs API calls.
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 the purpose of an Amazon CloudWatch alarm?
Open an interactive chat with Bash
What is an AWS Systems Manager Automation runbook?
Open an interactive chat with Bash
How does Amazon EventBridge integrate with CloudWatch alarms?
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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .