You are deploying an Auto Scaling group via a CloudFormation template. The launch template runs a user data script that calls cfn-signal when finished, but CloudFormation fails to create the Auto Scaling Group because the wait condition does not receive the required signals. What should you do to fix this failure?
Choose an answer
Tap an option to check your answer.
Correct answer: Invoke cfn-signal at the end of the user data script when instance initialization is complete..
Why this is the answer
The problem states that CloudFormation fails because the wait condition does not receive the required signals. The cfn-signal command is used to send a signal to a CloudFormation wait condition or cfn-init, indicating that an instance has successfully completed its initialization or a specific task. By invoking cfn-signal at the end of the user data script, you ensure that CloudFormation receives the necessary signal to proceed with the stack creation. Changing the security group to allow outbound traffic on port 443 is incorrect because cfn-signal communicates over HTTPS, which typically uses port 443. If this were the issue, the script would likely fail to execute cfn-signal at all, rather than the signal not being received. Lowering the DesiredCapacity would not resolve a signaling issue. Setting AssociatePublicIpAddress to True is irrelevant to cfn-signal functionality, as private instances can still signal CloudFormation via VPC endpoints or NAT gateways.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed