FinQuery is migrating its high-frequency transaction verification application from an on-premises data center to AWS. The application consists of containerized services that require low-latency communication and raw access to the host network interface. Additionally, the containers must modify specific namespaced kernel parameters, such as `net.core.somaxconn`, using sysctl configurations to handle high volumes of concurrent connections. The container images are stored in a centralized shared services AWS account (account ) in an Amazon Elastic Container Registry (Amazon ECR) repository. This repository is encrypted using a Customer Managed Key (CMK) in AWS Key Management Service (AWS KMS). The containerized application will run in a separate production AWS account (account ) inside a VPC that has no path to or from the internet. All container image download traffic must remain entirely within the AWS private network. Which combination of actions will meet these requirements? (Select TWO.)
- Configure the Amazon ECS task definition to use the host network mode, and specify the required sysctl parameters in the systemControls parameter of the container definition. Launch the tasks on an Amazon ECS cluster using the Amazon EC2 launch type.Answer
- BConfigure the Amazon ECS task definition to use the awsvpc network mode, and specify the required sysctl parameters in the systemControls parameter of the container definition. Launch the tasks on AWS Fargate.
- In the shared services account, update the Amazon ECR repository policy to allow the IAM task execution role from the production account to pull images, and update the KMS key policy to grant decrypt permissions to the same role. In the production account's VPC, create interface VPC endpoints for ECR and a gateway VPC endpoint for Amazon S3.Answer
- DIn the shared services account, encrypt the Amazon ECR repository using the AWS-managed KMS key (aws/ecr). In the production account, configure the ECS task execution role to assume a cross-account IAM role in the shared services account that has permissions to pull from the ECR repository.
- EIn the production account's VPC, deploy a single NAT Gateway in a public subnet to route image pull traffic to the Amazon ECR service over the internet. Configure the route tables in the private subnets to send ECR traffic to the NAT Gateway.