A developer manages a CI/CD pipeline in AWS CodePipeline. The pipeline has an AWS CodeBuild project that packages an application and an AWS CloudFormation deploy stage that performs a stack update. During a execution, the pipeline fails with two errors:
1. The CodeBuild project fails during the pre-build phase with the error: 'An error occurred (AccessDenied) when calling the AssumeRole operation: Role: arn:aws:iam::111122223333:role/CrossAccountDeployRole is not authorized to perform: sts:AssumeRole'.
2. The CloudFormation deployment fails immediately because the target stack is stuck in the UPDATE_ROLLBACK_FAILED state due to a resource that failed to clean up during a previous rollback.
Which of the following actions should the developer take to resolve these deployment pipeline failures? (Select TWO.)
- Update the trust policy of the CrossAccountDeployRole in account 111122223333 to allow the CodeBuild service role in the source account to perform the sts:AssumeRole action.Cevap
- Run the continue-update-rollback command on the CloudFormation stack, optionally specifying the failing resource to be skipped, to return the stack to a stable UPDATE_ROLLBACK_COMPLETE state.Cevap
- CAttach an identity-based permission policy to the CodeBuild service role that grants sts:AssumeRole on the CrossAccountDeployRole, without modifying the destination role's trust policy.
- DPerform a stack update directly on the CloudFormation stack using a modified template that excludes the failing resource to override the UPDATE_ROLLBACK_FAILED state.
- EUpdate the permissions policy of the CrossAccountDeployRole to allow the sts:AssumeRole action on the CodeBuild service role ARN.