Zephyr Retail is modernizing its on-premises containerized inventory microservice by migrating it to AWS. To adhere to strict security and compliance standards, the Production environment must be isolated inside a private subnet of a Production VPC with no route to the internet, and no NAT Gateways are permitted. The modernized containerized application must run on AWS Fargate using Amazon Elastic Container Service (Amazon ECS). Additionally, container images must be pulled from a centralized, Shared Services AWS account using an Amazon Elastic Container Registry (Amazon ECR) repository. The application must achieve high availability across multiple Availability Zones, with the container deployment mechanism configured to authenticate and pull images securely without traversing the public internet. Which of the following configurations will allow the ECS tasks in the Production VPC to successfully pull the container images from the Shared Services account's ECR repository?
- AConfigure the Amazon ECS task definition to use the bridge network mode. In the Production VPC, create interface VPC endpoints for com.amazonaws.region.ecr.api and com.amazonaws.region.ecr.dkr, and a gateway VPC endpoint for Amazon S3. Configure the ECS task execution IAM role in the Production account to allow ECR pull actions, and configure the ECR repository policy in the Shared Services account to grant read permissions.
- BConfigure the Amazon ECS task definition to use the awsvpc network mode. In the Production VPC, create interface VPC endpoints for com.amazonaws.region.ecr.api and com.amazonaws.region.ecr.dkr, and a gateway VPC endpoint for Amazon S3. Configure the Shared Services account to encrypt the ECR repository using the default AWS-managed KMS key (aws/ecr), and update its key policy to allow cross-account decrypt permissions for the Production ECS task execution role.
- Configure the Amazon ECS task definition to use the awsvpc network mode. In the Production VPC, create interface VPC endpoints for com.amazonaws.region.ecr.api and com.amazonaws.region.ecr.dkr, and a gateway VPC endpoint for Amazon S3. Configure the ECS task execution IAM role in the Production account to allow ECR pull actions, and configure the ECR repository policy in the Shared Services account to grant read permissions to the Production account.Cevap
- DConfigure the Amazon ECS task definition to use the awsvpc network mode. Create a Route 53 Private Hosted Zone for dkr.ecr.region.amazonaws.com in the Shared Services account. Create interface VPC endpoints for com.amazonaws.region.ecr.api and com.amazonaws.region.ecr.dkr in the Production VPC, but do not associate the Private Hosted Zone with the Production VPC.