SOA-C03 practice question: Systems Manager for fleet operations (3 of 3)
Deployment, Provisioning, and Automation 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.
A logistics broker needs to run a one-time script that rotates a local log configuration on 500 EC2 instances tagged Role=Tracking. All instances are managed by AWS Systems Manager.
To limit the impact of a mistake, the script should run on no more than 10 percent of the instances at a time, and the job should stop if it fails on more than five instances.
Which approach should a CloudOps engineer use?
Choose one answer.
AA. A State Manager association with the AWS-RunShellScript document that applies the script to the tagged instances every day.
BB. Session Manager sessions opened by engineers to each instance in turn, running the script by hand in each shell.
CC. Run Command with the AWS-RunShellScript document, targeting the tag, with a concurrency of 10 percent and an error threshold of 5.
DD. A user data script added to the instances' launch template, followed by an instance refresh of every Auto Scaling group.
C. Right: Correct. Run Command can target instances by tag and has built-in rate controls. Concurrency limits how many instances run at once, and the error threshold stops the command after too many failures. Learn more: Run commands at scale (opens in a new tab)
Run Command is the Systems Manager tool for running ad hoc commands across many managed instances. It targets by tag and offers rate controls, a concurrency limit and an error threshold, so a bad script affects only a small part of the fleet before it stops.
Want more on Systems Manager for fleet operations? The 5 full-length practice sets have 10 more Systems Manager for fleet operations questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →