AWS Certified SysOps Administrator SOA-C01 – Question615

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?

A.
Conditionswith a timeout set to 4 hours.
B. CreationPolicy with a timeout set to 4 hours.
C. DependsOnwith a timeout set to 4 hours.
D. Metadata with a timeout set to 4 hours.

Correct Answer: A