An operations team is implementing a continuous integration and continuous delivery (CI/CD) pipeline to deploy infrastructure using AWS CloudFormation. The pipeline runner executes under an IAM role named `PipelineDeploymentRole`. To enforce the principle of least privilege, the team creates a separate IAM role named `CloudFormationServiceRole` that contains only the permissions required to create and manage the specific resources in the stack. When the pipeline runner attempts to initiate the deployment and specifies the service role, the deployment fails with an error indicating that the runner is not authorized to use the specified service role.
Which configuration changes must be made to allow the pipeline runner to successfully deploy the stack using this service role? (Select TWO.)
- Add an IAM policy to the `PipelineDeploymentRole` that allows the `iam:PassRole` action targeting the Amazon Resource Name (ARN) of the `CloudFormationServiceRole`.Answer
- Configure the trust policy of the `CloudFormationServiceRole` to allow the `cloudformation.amazonaws.com` service principal to perform the `sts:AssumeRole` action.Answer
- CAdd an IAM policy to the `PipelineDeploymentRole` that allows the `sts:AssumeRole` action targeting the `CloudFormationServiceRole`.
- DConfigure the trust policy of the `PipelineDeploymentRole` to permit the `cloudformation.amazonaws.com` service principal to perform the `iam:PassRole` action.
- EAdd an IAM policy to the `CloudFormationServiceRole` that allows the `iam:PassRole` action targeting the `PipelineDeploymentRole`.