A company is deploying an in-memory caching tier in a private subnet within an Amazon VPC. The caching nodes run on Amazon EC2 instances and use port . Only the application servers running in the web subnet should be allowed to read from and write to the cache nodes. A solutions architect needs to restrict network access to the caching tier.
Which two configuration steps should the solutions architect perform to secure the caching tier? (Select TWO.)
- Create a security group for the caching instances that allows inbound TCP traffic on port from the security group associated with the application instances.Cevap
- Rely on the stateful behavior of the caching instances' security group to automatically allow the outbound return traffic back to the application instances.Cevap
- CConfigure an outbound rule in the caching instances' security group that explicitly allows TCP traffic on ephemeral ports to the application instances, since security groups are stateless.
- DDeploy AWS WAF at the caching subnet level to inspect and block unauthorized layer commands sent to the caching instances.
- ECreate a network ACL for the caching subnet that allows inbound TCP traffic on port but blocks outbound traffic on all ephemeral ports to keep the subnet private.
Cevap
The solutions architect should create a security group for the caching instances allowing inbound traffic on port from the application security group, and rely on the stateful nature of security groups to permit return traffic.
To secure the caching tier, the caching instances must have a security group that explicitly allows inbound traffic on port from the application instances' security group. Because security groups are stateful, outbound response traffic from the caching instances to the application instances is permitted automatically, without requiring explicit outbound rules.
Adım Adım Çözüm
Anahtar Kavram
Security groups are stateful, resource-level firewalls that can reference other security groups as sources, whereas network ACLs are stateless, subnet-level firewalls.