An organization runs a batch-processing application on Amazon EC2 instances in a private subnet (Subnet A). The application needs to write processed data to an Amazon Redshift cluster located in a separate private database subnet (Subnet B) within the same VPC. The network security team requires that all network access be restricted to the minimum necessary ports and that return traffic must be securely allowed while maintaining strict boundaries.
Which combination of configuration steps will satisfy these requirements? (Select TWO.)
- In the Amazon Redshift cluster's security group, add an inbound rule allowing TCP port from the batch-processing instances' security group.Cevap
- BIn the batch-processing instances' security group, add an inbound rule allowing TCP ports from the Amazon Redshift cluster's security group to allow the return traffic.
- In the Network ACL associated with Subnet B, add an inbound rule allowing TCP port from Subnet A's CIDR block and an outbound rule allowing TCP ports to Subnet A's CIDR block.Cevap
- DIn the Network ACL associated with Subnet A, add an outbound rule allowing TCP port to Subnet B's CIDR block and remove all inbound rules since Network ACLs are stateful and track connection states.
- ECreate an AWS WAF web ACL and associate it with the Amazon Redshift subnet to inspect and filter SQL connection requests on TCP port .
Cevap
In the Amazon Redshift cluster's security group, add an inbound rule allowing TCP port from the batch-processing instances' security group; and in the Network ACL associated with Subnet B, add an inbound rule allowing TCP port from Subnet A's CIDR block and an outbound rule allowing TCP ports to Subnet A's CIDR block.
To secure the flow from Subnet A to Subnet B, Security Groups and Network ACLs must work together. The option allowing TCP port inbound from the EC2 security group to the Redshift security group is correct because Security Groups are stateful. The option configuring both inbound traffic (port ) and outbound traffic (ephemeral ports for the response) in Subnet B's Network ACL is correct because Network ACLs are stateless.
Adım Adım Çözüm
Anahtar Kavram
Stateful vs. Stateless network filtering in AWS VPC using Security Groups and Network ACLs.