Question 55:
A CloudFormation template is used to deploy an application stack that includes a DynamoDB backend database. The development team would like to prevent accidental replacements or deletions of the production database when a template update is applied. What is the best method for the team to achieve this requirement?
Answer options:
A.Implement IAM policy:
{
"Effect" : "Deny",
"Action" : "Update:*",
"Principal": "*",
"Resource" : "LogicalResourceId/ProductionDatabase"
}
Assign the IAM Policy to the CloudFormation Service Role.
B.Implement CloudFormation Stack Policy:
{
"Effect" : "Deny",
"Action" : "Update:*",
"Principal": "*",
"Resource" : "LogicalResourceId/ProductionDatabase"
}
C.Configure Delete Protection on the database
D.Implement IAM policy:
{
"Effect" : "Deny",
"Action" : "Update:*",
"Principal": "*",
"Resource" : "LogicalResourceId/ProductionDatabase"
}
Assign the IAM Policy to the development team IAM group.