nerdexam
Amazon

SOA-C02 · Question #176

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…

The correct answer is B. CreationPolicy with a timeout set to 4 hours. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/deploying.applications.html

Submitted by fatema_kw· Mar 30, 2026Deployment, Provisioning, and Automation

Question

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?

Options

  • AConditions with a timeout set to 4 hours.
  • BCreationPolicy with a timeout set to 4 hours.
  • CDependsOn with a timeout set to 4 hours.
  • DMetadata with a timeout set to 4 hours.

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    74% (14)
  • C
    16% (3)
  • D
    5% (1)

Explanation

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/deploying.applications.html

Topics

#CloudFormation#CreationPolicy#stack rollback#timeout

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice