SOA-C02 Exam QuestionsBrowse all questions from this exam

SOA-C02 Exam - Question 361


A SysOps administrator is creating resources from an AWS. CloudFbrmation template that defines an Auto Scaling group of Amazon EC2 instances. The Auto Scaling group launch template provisions each EC2 instance by using a user data script. The creation of the Auto Scaling group resource is failing because of an error. The wait condition is not receiving the required number of signals.

How should the SysOps administrator resolve this error?

Show Answer
Correct Answer: A

To resolve the error where the wait condition is not receiving the required number of signals during the creation of the Auto Scaling group, the SysOps administrator should ensure that each EC2 instance signals its successful creation and initialization. This can be achieved by running the cfn-signal command at the completion of the user data script. The cfn-signal command is used to notify AWS CloudFormation that an instance was successfully created or updated, making option A the correct answer.

Discussion

4 comments
Sign in to comment
Christina666Option: A
Jul 29, 2023

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-waitcondition.html For Amazon EC2 and Auto Scaling resources, we recommend that you use a CreationPolicy attribute instead of wait conditions. Add a CreationPolicy attribute to those resources, and use the cfn-signal helper script to signal when an instance creation process has completed successfully.

kevino81Option: A
Jun 29, 2023

must be A

jlmadvig
Jul 4, 2023

By running cfn-signal at the completion of the user data script, the EC2 instance will send a signal to the wait condition, indicating that it has finished its initialization

[Removed]
Jul 10, 2023

A. Run cfn-signal at the completion of the user data script.

james2033Option: A
Jul 5, 2024

AWS CloudFormation cfn-signal . Quote 'cfn-signal helper script signals CloudFormation to indicate whether Amazon EC2 instances have been successfully created or updated.' at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-signal.html