Topic 1 Question 135
A company creates custom AMI images by launching new Amazon EC2 instances from an AWS CloudFormation template. It installs and configures necessary software through AWS OpsWorks, and takes images of each EC2 instance. The process of installing and configuring software can take between 2 to 3 hours, but at times, the process stalls due to installation errors.
The SysOps administrator must modify the CloudFormation template so if the process stalls, the entire stack will fail and roll back.
Based on these requirements, what should be added to the template?
Conditions with a timeout set to 4 hours.
CreationPolicy with a timeout set to 4 hours.
DependsOn with a timeout set to 4 hours.
Metadata with a timeout set to 4 hours.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B👍 2Raynor2022/11/19
- 正解だと思う選択肢: B
bbbbbbb
👍 1michaldavid2022/12/11 - 正解だと思う選択肢: B
When you provision an Amazon EC2 instance in an AWS CloudFormation stack, you might specify additional actions to configure the instance, such as install software packages or bootstrap applications. Normally, CloudFormation proceeds with stack creation after the instance has been successfully created. However, you can use a CreationPolicy so that CloudFormation proceeds with stack creation only after your configuration actions are done. That way you’ll know your applications are ready to go after stack creation succeeds.
A CreationPolicy instructs CloudFormation to wait on an instance until CloudFormation receives the specified number of signals. This policy takes effect only when CloudFormation creates the instance.
Ref link: https://aws.amazon.com/blogs/devops/use-a-creationpolicy-to-wait-for-on-instance-configurations/ Ref link: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html
👍 1wooyourdaddy2023/05/01
シャッフルモード