A SysOps administrator is configuring an automated CI/CD pipeline in Account A () to register a new Amazon ECS task definition and deploy a service on AWS Fargate. The task definition specifies an ECS Task Execution Role (`ECSTaskExecutionRole`) and an ECS Task Role (`ECSTaskRole`). The pipeline runs using the credentials of an IAM user named `PipelineDeployer`. During deployment, the pipeline fails with an error indicating that `PipelineDeployer` is not authorized to perform `iam:PassRole` on the role resources. Additionally, the application inside the ECS container must read configuration files from an Amazon S3 bucket located in Account B (). Which of the following configuration changes are required to resolve the deployment failure and grant the application the necessary runtime permissions? (Select TWO.)
- Attach an IAM policy to the PipelineDeployer user in Account A that grants the iam:PassRole permission on the ECSTaskRole and ECSTaskExecutionRole ARNs.Answer
- Attach an IAM policy to the ECSTaskRole in Account A that grants s3:GetObject permission on the S3 bucket in Account B, and configure the S3 bucket policy in Account B to allow access from the ECSTaskRole ARN.Answer
- CAttach an IAM policy to the PipelineDeployer user in Account A that grants the sts:AssumeRole permission on the ECSTaskRole and ECSTaskExecutionRole ARNs.
- DAttach an IAM policy to the ECSTaskExecutionRole in Account A that grants s3:GetObject permission on the S3 bucket in Account B, and configure the S3 bucket policy in Account B to allow access from the ECSTaskExecutionRole ARN.
- EConfigure a trust policy on the PipelineDeployer user in Account A to trust the ecs-tasks.amazonaws.com service principal.