SOA-C02 · Question #499
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…
The correct answer is A. Run cfn-signal at the completion of the user data script. 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…
Question
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?
Options
- ARun cfn-signal at the completion of the user data script.
- BModify the EC2 instances' security group to allow outgoing traffic on port 443.
- CReduce the Auto Scaling group's DesiredCapacity value in the CloudFormation template.
- DSet the AssociatePublicIpAddress property to True in the Auto Scaling group launch template.
How the community answered
(49 responses)- A82% (40)
- B10% (5)
- C6% (3)
- D2% (1)
Explanation
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.
Topics
Community Discussion
No community discussion yet for this question.