ValoLogistics is migrating its on-premises vehicle routing engine to AWS. To comply with strict security standards, the target workload must run on Amazon ECS using AWS Fargate tasks across multiple Availability Zones in a private subnet within the Production account (Account B) with zero direct egress route to the internet. The VPC in Account B has no Internet Gateway or NAT Gateways configured.
Container images are stored in a centralized Amazon ECR repository in a Shared Services account (Account A) and are encrypted using a customer managed AWS KMS key in Account A. The Fargate tasks in Account B must be able to pull these images securely without traversing the public internet, and must also send container logs to Amazon CloudWatch Logs.
Which combination of actions will allow the ECS tasks to pull the images and log successfully? (Select TWO.)
- Configure Interface VPC endpoints in Account B's VPC for com.amazonaws.us-east-1.ecr.api, com.amazonaws.us-east-1.ecr.dkr, and com.amazonaws.us-east-1.logs with Private DNS enabled. Create a Gateway VPC endpoint for Amazon S3 and associate it with the route tables of Account B's private subnets.Answer
- Update the KMS key policy in Account A to allow the ECS task execution role in Account B kms:Decrypt and kms:DescribeKey permissions. Update the ECR repository policy in Account A to grant the ECS task execution role in Account B permissions for ecr:BatchCheckLayerAvailability, ecr:GetDownloadUrlForLayer, and ecr:BatchGetImage.Answer
- CCreate an IAM policy allowing ECR and KMS decrypt access and attach it to the ECS task role in Account B. Configure the ECS tasks to use the host network mode to bypass the default AWS Fargate container network configuration.
- DDeploy a single NAT Gateway in one of the private subnets of Account B's VPC, and update the private subnet route tables to forward all egress internet traffic to this NAT Gateway to reach the public ECR and CloudWatch endpoints.
- ECreate a Route 53 Private Hosted Zone (PHZ) for dkr.ecr.us-east-1.amazonaws.com in Account A and associate it with Account B's VPC. Create a Route 53 Resolver outbound endpoint in Account B to forward ECR DNS queries to Account A's Amazon Provided DNS.