VoltGrid Solutions is modernizing its on-premises telemetry ingestion engine by migrating it to AWS. The engine processes real-time smart grid data from public utility endpoints and saves temporary states. The company wants to run this engine on Amazon ECS using the AWS Fargate launch type across Availability Zones for high availability. To satisfy strict security compliance standards, Fargate tasks must run in private subnets with no direct route to the internet, and no NAT Gateways may be used. The container images are hosted in a centralized shared services AWS account () in an Amazon ECR repository, which is encrypted using a Customer Managed Key (CMK) in AWS KMS. Additionally, tasks require access to a shared Amazon EFS file system to store and read active session states. All network traffic to AWS services must traverse VPC endpoints to keep traffic within the AWS private network. Which TWO actions should a solutions architect take to configure this environment and meet the security and architectural requirements? (Select TWO.)
- Configure interface VPC endpoints in the application's VPC for Amazon ECS telemetry, ECS agent, ECS service, Amazon ECR API, Amazon ECR Docker Registry, AWS KMS, and Amazon EFS, along with a gateway VPC endpoint for Amazon S3. Update the shared ECR repository policy and the KMS CMK key policy in the shared services account to grant permissions to the ECS task execution role in the application VPC.Answer
- Configure the ECS task definition using the awsvpc network mode and define the EFS volume using an EFS access point. Assign an ECS task execution role with permissions to read from ECR and decrypt with the KMS CMK. Set the security group on the EFS mount targets to allow inbound NFS traffic on TCP port from the security group associated with the ECS Fargate tasks.Answer
- CConfigure the ECS task definition using the host network mode to map container ports directly to the underlying host network interface for optimal throughput. Use the default AWS-managed KMS key (aws/ecr) to encrypt the ECR repository, and delegate decryption permissions to the ECS task execution role via the service-linked role.
- DConfigure a single NAT Gateway in the shared services VPC and route the application's outbound ECS and ECR traffic through an AWS Transit Gateway. Ensure the private subnet route tables point to the Transit Gateway for all outbound destinations.
- EConfigure a Route Private Hosted Zone (PHZ) for the ECR and KMS service endpoints in the shared services account to override public DNS resolution. Do not associate this PHZ with the application's VPC, and rely on standard DNS forwarders in the application VPC to resolve AWS service hostnames.