Master AWS DevOps Pro 2025 – Conquer the Cloud with Confidence!

Question: 1 / 400

How can you pause continuation of a CloudFormation stack creation until after some software is installed on EC2 instances?

Use a RollbackPolicy

Use UserData scripts

Use a CreationPolicy and helper scripts

To pause the continuation of a CloudFormation stack creation until certain conditions are met, such as software installation on EC2 instances, utilizing a CreationPolicy along with helper scripts is the most effective solution. The CreationPolicy is specifically designed to wait for instances to reach a stable state before considering the resource as created and allowing the stack operation to proceed.

By applying a CreationPolicy, you can specify wait conditions that block stack creation until the specified condition is satisfied. The helper scripts can be used to report the status back to CloudFormation once the software installation process on the EC2 instances is complete. This ensures that the stack does not continue until the right conditions are met, improving the reliability of your deployments.

The other options do not serve this purpose effectively. While RollbackPolicy and IAM Policies are critical for managing stack operations and permissions respectively, they do not inherently control the timing of resource readiness and continuation of stack operations. UserData scripts, although useful for bootstrapping EC2 instances and executing commands at launch, do not provide a mechanism to pause stack creation while waiting for those commands to complete.

Get further explanation with Examzify DeepDiveBeta

Use an IAM Policy

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy