A developer has configured a CI/CD pipeline using AWS CodePipeline. The pipeline has a deploy stage that uses AWS CloudFormation to update a production stack. During a recent deployment, the stack update failed due to an error in a custom resource, and the subsequent rollback attempt also failed, leaving the stack in the UPDATE_ROLLBACK_FAILED state. The developer has resolved the root cause of the custom resource failure in the CloudFormation template and committed the changes to the source repository. However, the pipeline is now failing at the CloudFormation deploy stage with an error stating that the stack cannot be updated in its current state. Which two actions should the developer take to resolve the deployment failure and successfully apply the changes? (Select TWO.)
- Execute the continue-update-rollback command via the AWS CLI or CloudFormation console to resume the rollback process and bring the stack to the UPDATE_ROLLBACK_COMPLETE state.Answer
- After the stack reaches a stable state, trigger the pipeline again to apply the updated template containing the fix.Answer
- CRun the update-stack CLI command directly with the --force flag while the stack is in the UPDATE_ROLLBACK_FAILED state to override the state validation.
- DDelete the stack using the delete-stack CLI command, then trigger the pipeline to perform a fresh stack creation.
- EModify the CloudFormation service role's trust policy to allow the CodePipeline service role to assume it with the sts:AssumeRole action.