AWS Certified SysOps Administrator – Associate (legacy) — Question 306

A user is using Cloudformation to launch an EC2 instance and then configure an application after the instance is launched. The user wants the stack creation of
ELB and AutoScaling to wait until the EC2 instance is launched and configured properly. How can the user configure this?

Answer options

Correct answer: D

Explanation

In AWS CloudFormation, the AWS::CloudFormation::WaitCondition resource is used to pause the creation of dependent resources (like ELB and AutoScaling) until a success signal is received from an external source, such as a script running on an EC2 instance. This allows the stack to wait until the instance is fully configured before proceeding. Other options like HoldCondition and DependentCondition are not valid AWS CloudFormation resources.