Question 265:
As a DevOps engineer, you are updating several AWS CloudFormation scripts to make them resilient against unexpected updates and overwritten passwords. What ideas are considered recommended practices when it comes to solve these sorts of automation scenarios?
Answer options:
A.Create a change set with create-change-set, run list-change-sets to get the ID of the change set for a stack, call a describe-change-set operation to get the Changes field containing the list that describes the resources AWS CloudFormation changes if you execute the change set. Set a stack policy for the stack specifying either the StackPolicyBody or the StackPolicyURL parameters to prevent updates to the stack resources. To avoid overwritten passwords, specify the UsePreviousValue input parameter for the change set in the create-change-set operation to true. B.Create a change set with create-change-set, run list-change-sets to get the Changes field containing the list that describes the resources AWS CloudFormation changes if you execute the change set. Set a stack policy for the stack specifying either the StackPolicyBody or the StackPolicyURL parameters to prevent updates to the stack resources. To avoid overwritten passwords, specify the UseCurrentValue input parameter for the change set in the create-change-set operation to false. C.Create a change set with create-change-set, call a describe-change-set to get the ID of the change set for a stack operation, run list-change-sets to get the Changes field containing the list that describes the resources AWS CloudFormation changes if you execute the change set. Set a stack policy for the stack specifying either the StackPolicyBody or the StackPolicyURL parameters to prevent updates to the stack resources. To avoid overwritten passwords, specify the UsePreviousValue input parameter for the change set in the create-change-set operation to true. D.Create a change set with create-change-set, call a describe-change-set operation to get the ID of the change set for a stack operation that describes the resources AWS CloudFormation changes if you execute the change set. Set a stack policy for the stack specifying either the StackPolicyBody or the StackPolicyURL parameters to prevent updates to the stack resources. To avoid overwritten passwords, specify the UseCurrentValue input parameter for the change set in the create-change-set operation to false.