A solutions architect is designing the network security for a new application running on Amazon EC2 instances in private subnets. The application must download configuration objects from Amazon S3 and publish event messages to Amazon Simple Notification Service (Amazon SNS). The company’s security policy strictly prohibits the private subnets from having any routing to the public internet, including through NAT gateways. Which combination of steps should the solutions architect take to securely establish this connectivity? (Select TWO.)
- Create a gateway VPC endpoint for Amazon S3, and associate it with the route tables of the private subnets.Cevap
- Create an interface VPC endpoint for Amazon SNS, and configure the security group of the SNS endpoint to allow inbound HTTPS traffic on TCP port from the EC2 instances' security group.Cevap
- CDeploy a NAT gateway in a public subnet, and configure the route tables of the private subnets to route all Amazon S3 traffic through the NAT gateway.
- DCreate a gateway VPC endpoint for Amazon SNS, and configure the private subnets' network ACL to allow outbound traffic to the endpoint on port .
- ECreate an interface VPC endpoint for Amazon S3, and configure the private subnets' network ACL to allow inbound and outbound traffic to the endpoint on port since network ACLs are stateful.
Cevap
The correct steps are to create a gateway VPC endpoint for Amazon S3 and associate it with the private subnet route tables, and to create an interface VPC endpoint for Amazon SNS with its security group configured to allow inbound HTTPS traffic on TCP port from the EC2 instances.
To satisfy the security requirement of accessing Amazon S3 and Amazon SNS without internet routing (including NAT gateways), VPC endpoints must be used. For Amazon S3, a Gateway VPC endpoint is created and associated with the route tables of the private subnets. For Amazon SNS, an Interface VPC endpoint (AWS PrivateLink) is deployed, which assigns a private IP address within the subnet to the service. The interface endpoint is secured with a security group that must allow inbound HTTPS traffic on port from the EC2 instances.
Adım Adım Çözüm
Anahtar Kavram
VPC Endpoints and Security Group Management
Tahmini Süre:2m 0s