Topic 1 Question 424
A company uses AWS CloudFormation to deploy its application infrastructure. Recently, a user accidentally changed a property of a database in a CloudFormation template and performed a stack update that caused an interruption to the application. A SysOps administrator must determine how to modify the deployment process to allow the DevOps team to continue to deploy the infrastructure, but prevent against accidental modifications to specific resources.
Which solution will meet these requirements?
Set up an AWS Config rule to alert based on changes to any CloudFormation stack. An AWS Lambda function can then describe the stack to determine if any protected resources were modified and cancel the operation.
Set up an Amazon EventBridge event with a rule to initiate based on any CloudFormation API call. An AWS Lambda function can then describe the stack to determine if any protected resources were modified and cancel the operation.
Launch the CloudFormation templates using a stack policy with an explicit allow for all resources and an explicit deny of the protected resources with an action of Update:*.
Attach an IAM policy to the DevOps team role that prevents a CloudFormation stack from updating, with a condition based on the specific Amazon Resource Names (ARNs) of the protected resources.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: C👍 5mpl2032024/09/20
- 正解だと思う選択肢: C
Stack Policy:
Define a stack policy for the CloudFormation stack containing your application infrastructure. In the policy, use an explicit Deny statement for any update actions (Update*) on the specific resources you want to protect (e.g., critical databases, security groups).
👍 5klayytech2024/09/22
シャッフルモード