AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question

A SysOps team created a Bash script that clears application cache and restarts a service. When CPU utilization on an Amazon EC2 instance stays above 90% for 5 minutes, the team wants Amazon CloudWatch to invoke Systems Manager Automation to run this script on the affected instance. Which solution meets the requirement with the least operational overhead?

  • Add the Bash script to the EC2 user-data field and schedule a cron job inside the instance; set the CloudWatch alarm to reboot the instance to force the script to run.

  • Create a custom SSM Automation document of type Automation that includes a single aws:runCommand step referencing the AWS-RunShellScript command document with the Bash script inline, and configure the CloudWatch alarm to start this runbook against the instance.

  • Develop an AWS Lambda function that executes the script by using the SSM send-command API, and have the CloudWatch alarm invoke the function.

  • Configure a State Manager association that runs the Bash script with the AWS-RunShellScript document and set the CloudWatch alarm to publish an SNS notification that triggers the association.

AWS Certified CloudOps Engineer Associate SOA-C03
Monitoring, Logging, Analysis, Remediation, and Performance Optimization
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot