Home » Amazon » AWS DevOps Engineer Professional v.2 » What are the possible causes for this error?
What method should you use to author automation if you want to wait for a CloudFormation stack to finish completing in a script?
A. Event subscription using SQS.
B. Event subscription using SNS.
C. Poll using ListStacks / list-stacks
D. Poll using GetStackStatus / get-stack-status
Correct Answer: C
Explanation/Reference:
Explanation:
Event driven systems are good for IFTTT logic, but only polling will make a script wait to complete. ListStacks / list-stacks is a real method, GetStackStatus / getstack- status is not.
Reference: http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-stacks.html