Question 231:
Your team has used AWS CodePipeline as the continuous integration and deployment tool for a Lambda function. In its deployment stage, the deployment provider is CloudFormation, and the Action Mode is configured as “Create or update a stack”. This pipeline is working fine for several months. However recently, there were cases that the CloudFormation stack was updated inappropriately because of some mistake in the template. You were told to design a way so that the CodePipeline does not directly update the stack. Instead, there is a way to preview the stack changes before the deployment is completed. How should you work on this task?
Answer options:
A.Change the code review process so that any issues on CloudFormation stacks are avoided. B.Modify the deployment provider to CodeDeploy to avoid any issues on CloudFormation stack update. C.Change the Action Mode to “Delete a stack” so that the environment is clean. Then add another stage to deploy the CloudFormation stack using the new template. D.Modify the Action Mode to “Create or replace a change set” for users to review the change. Then add another deployment stage to execute the change set if the change set is approved.