AWS CloudFormation: Coordinate Creation of Stack Resources | DOP-C01 Exam Answer

CloudFormation Stack Resource Coordination | AWS Exam Answer

Prev Question Next Question

Question

Which of the following can be used in Cloudformation to coordinate the creation of stack resources.

Choose 2 answers from the options given below.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - B and D.

The AWS Documentation mentions the following.

Using the AWS::CloudFormation::WaitCondition resource and CreationPolicy attribute, you can do the following:

Coordinate stack resource creation with other configuration actions that are external to the stack creation.

Track the status of a configuration process.

For more information on wait conditions, please refer to the below link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-waitcondition.html

The two CloudFormation resources that can be used to coordinate the creation of stack resources are:

B. AWS::CloudFormation::WaitCondition: It's a CloudFormation resource that can be used to wait for some user-specified conditions to be met before proceeding with the creation of a stack. This resource is particularly useful when a stack depends on another stack or when the creation of a resource takes a long time. You can specify a wait condition in your stack template, along with the conditions that must be met, and CloudFormation will wait until the conditions are met before proceeding with the stack creation.

D. CreationPolicy attribute: It's an optional attribute that can be added to a resource to specify a set of conditions that must be met before the resource is considered created. This policy can be used to wait for a resource to become available or to perform some validation after the resource is created. CloudFormation will wait for the creation policy to be satisfied before marking the resource as successfully created.

A. AWS::CloudFormation::HoldCondition and C. HoldPolicy attribute are not valid CloudFormation resources or attributes.

In summary, AWS::CloudFormation::WaitCondition and CreationPolicy attribute can be used in CloudFormation to coordinate the creation of stack resources by waiting for specific conditions to be met before proceeding with the creation of resources.