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.
Explanations:
Conditions are used to control the creation of resources based on boolean expressions, not for timeouts. They cannot trigger a rollback on failure.
CreationPolicy with a timeout is used to specify how long AWS CloudFormation waits for resources to be created. It ensures the stack rolls back if the resource creation exceeds the specified time.
DependsOn is used to control the order of resource creation, but it does not manage timeouts or cause a rollback in case of failure.
Metadata is used for storing additional information in the template, but it doesn’t have any functionality related to timeouts or automatic rollback.