ApexMedia is migrating its high-throughput video processing orchestration system from an on-premises data center to AWS. The target architecture will use Amazon Elastic Container Service (Amazon ECS) on AWS Fargate. Containers running in the Production and Development accounts must pull images from a centralized Amazon Elastic Container Registry (ECR) repository located in a Shared Services account. To comply with strict security standards, tasks must run in private subnets with no internet access (no NAT Gateways). The container images and secrets are encrypted using a Customer Managed Key (CMK) in AWS KMS in the Shared Services account. A Transit Gateway connects the Production, Development, and Shared Services VPCs. The Solutions Architect must configure cross-account access, networking, and DNS resolution to ensure Fargate tasks can pull images and decrypt required secrets from AWS Secrets Manager (which is also encrypted with the same KMS CMK in the Shared Services account).
Which combination of actions must the Solutions Architect perform to successfully deploy the containers? (Select TWO.)
- In the Shared Services account, update the ECR repository policy and the Secrets Manager resource policy to grant read access to the ECS Task Execution Roles of the Production and Development accounts. Update the key policy of the KMS Customer Managed Key in the Shared Services account to grant kms:Decrypt and kms:DescribeKey permissions to these execution roles.Cevap
- Configure the ECS task definitions to use the awsvpc network mode. In both the Production and Development VPCs, deploy interface VPC endpoints with Private DNS enabled for ECR (ecr.api and ecr.dkr), Secrets Manager, and KMS, and create a gateway VPC endpoint for Amazon S3 associated with the subnet route tables.Cevap
- CConfigure the ECS task definitions to use the bridge network mode to leverage Docker port mapping. In both the Production and Development VPCs, deploy interface VPC endpoints with Private DNS enabled for ECR and Secrets Manager, and route all S3 layer download traffic through a single NAT Gateway located in the Shared Services VPC.
- DConfigure the ECR repository and Secrets Manager to use the default AWS-managed KMS keys (aws/ecr and aws/secretsmanager) for encryption, and update the default key policies to allow cross-account access from the Production and Development ECS Task Execution Roles.
- EIn the Shared Services VPC, deploy a gateway VPC endpoint for Amazon S3. Configure the Transit Gateway route tables to route all S3-bound traffic from the Production and Development VPC subnets to the Shared Services VPC to allow tasks to download image layers.