Which solution will meet this requirement?
Create a stack policy to prevent updates. Include ג€Effectג€ : ג€ProductionDatabaseג€ and ג€Resourceג€ : ג€Denyג€ in the policy.
Create an AWS CloudFormation stack in XML format. Set xAttribute as false.
Create an RDS DB instance without the DeletionPolicy attribute. Disable termination protection.
Create a stack policy to prevent updates. Include ג€Effectג€ : ג€Denyג€ and ג€Resourceג€ : ג€ProductionDatabaseג€ in the policy.
Explanations:
Stack policies prevent updates to resources, but this option is improperly specifying the policy. The correct format involves setting “Deny” for updates, not deletions.
AWS CloudFormation does not use XML format. The question’s premise is flawed, as CloudFormation templates are either JSON or YAML.
The DeletionPolicy attribute and termination protection are not set properly to prevent accidental deletion. Disabling termination protection on its own does not fulfill the requirement.
This is the correct solution. A stack policy with “Deny” for the “ProductionDatabase” resource will prevent any changes, including deletion, for that resource.