Exam SOA-C02 All QuestionsBrowse all questions from this 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?

    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
Christina666Option: A

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

must be A

jlmadvig

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]

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

james2033Option: A

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