Monitoring, Logging, Analysis, Remediation, and Performance Optimization
A Systems Manager Automation runbook starts an EC2 instance and must wait until its state is running before continuing. Which action should the engineer use to check the state repeatedly until it matches or times out?
Show the answer
Correct answerA. aws:waitForAwsResourceProperty
AWhy this is right: This action polls the selected resource property until a desired value is returned or the timeout is reached.
BWhy not this: An API call can retrieve the current state but does not itself poll until the desired state is reached.
CWhy not this: This action checks the property against expected values without waiting for a state transition.
DWhy not this: A fixed delay does not check whether the instance has reached the required state.
aws:waitForAwsResourceProperty polls an AWS resource property until it reaches a desired value or the step times out. aws:assertAwsResourceProperty checks a property but does not wait for it to change.