A containerized microservice deployed on AWS Fargate inside a private VPC subnet needs to write transaction logs to an Amazon DynamoDB table and send real-time confirmation callbacks to an external payment processor at . According to company security requirements, all database traffic must remain within the AWS network, and outbound traffic from the Fargate container must be restricted to only the payment processor and the DynamoDB service. Which TWO configurations must the developer implement to meet these requirements?
- Create a Gateway VPC Endpoint for DynamoDB, and associate it with the route table of the private subnet.Cevap
- Configure the Fargate security group with outbound rules allowing HTTPS traffic on port to and to the AWS-managed prefix list representing DynamoDB.Cevap
- CDeploy an AWS Lambda function inside the private subnet to proxy payment requests to the external API, and configure the Fargate tasks to invoke this function.
- DModify the trust policy of the Fargate task execution role to allow the VPC's NAT Gateway to assume the role, enabling secure outbound internet routing.
- EStore the payment API credentials in Systems Manager Parameter Store with automatic rotation enabled, and configure the task definition to retrieve them.
Cevap
Create a Gateway VPC Endpoint for DynamoDB associated with the private subnet's route table, and configure the Fargate security group with outbound rules allowing HTTPS traffic to the payment processor IP address and to the AWS-managed prefix list representing DynamoDB.
To secure DynamoDB traffic, a Gateway VPC Endpoint is created and associated with the private subnet's route table, which routes traffic to the service privately. To satisfy outbound restrictions, the Fargate task's security group is configured with egress rules allowing HTTPS traffic to the specific external payment processor IP address and to the AWS-managed prefix list representing DynamoDB.
Adım Adım Çözüm
Anahtar Kavram
VPC Gateway Endpoints and security group prefix lists are used to route and restrict outbound traffic from private resources to specific AWS services and external targets.
Tahmini Süre:3m 0s