A digital publishing company, AuraMedia, is modernizing its legacy editorial content management system (CMS) by migrating it from an on-premises virtualized environment to AWS. The new architecture will run as containerized microservices on Amazon ECS. The application consists of a public-facing reader service in a Front-End VPC and a sensitive, restricted content ingestion service in a Back-End VPC under a separate AWS account. The content ingestion service must process raw files, store metadata in Amazon DynamoDB, and encrypt assets using AWS KMS. All data transfer between the VPCs and to AWS services must remain entirely within the AWS private network to meet strict data privacy compliance standards. The reader service needs to resolve the private DNS names of the ingestion service tasks. To minimize server maintenance, the solutions architect must use AWS Fargate. The system must achieve a Recovery Time Objective (RTO) of 15 minutes. Which design satisfies these security and connectivity requirements with the least operational overhead?
- Configure the Amazon ECS tasks for both services to use the awsvpc network mode. Deploy the ingestion service in the Back-End VPC with interface VPC endpoints for AWS KMS, Amazon ECR, and Amazon ECS, and a gateway VPC endpoint for Amazon DynamoDB. Configure AWS Cloud Map for service discovery, which creates a Route 53 private hosted zone. Associate this private hosted zone with the Front-End VPC across accounts. Establish VPC peering between the Front-End and Back-End VPCs, and update route tables to allow direct container-to-container traffic.Answer
- BConfigure the Amazon ECS tasks for the ingestion service using the bridge network mode to optimize container-to-container communication within Fargate. Deploy the tasks in private subnets, configure AWS Cloud Map for service discovery, and set up an AWS Transit Gateway to route traffic between the Front-End VPC and the Back-End VPC. Create interface VPC endpoints for AWS KMS and Amazon DynamoDB.
- CConfigure the Amazon ECS tasks to use the awsvpc network mode. Deploy the ingestion service in the Back-End VPC with a gateway VPC endpoint for Amazon DynamoDB and interface VPC endpoints for AWS KMS. Configure AWS Cloud Map to register tasks under a private hosted zone in the Back-End VPC's account. Set up VPC peering between the VPCs, but do not associate the hosted zone with the Front-End VPC, relying on the VPC peering connection to automatically propagate DNS queries between the accounts.
- DConfigure the Amazon ECS tasks to use the awsvpc network mode. Deploy the ingestion service in the Back-End VPC and configure the tasks to use the default AWS-managed KMS key (aws/kms) for cross-account encryption. Instead of VPC endpoints, deploy a single NAT Gateway in a public subnet of the Back-End VPC to route outbound traffic to AWS KMS and Amazon DynamoDB, and use AWS Cloud Map for service discovery without cross-account private hosted zone associations.