AWS DevOps Engineer Professional DOP-C01 – Question424

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 <code>ListStacks</code> / <code>list-stacks</code>
D. Poll using <code>GetStackStatus</code> / <code>get-stack-status</code>

Correct Answer: C

Explanation:

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 / get-stack-status is not.
Reference:
http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list…