A developer is deploying a backend database within an Amazon VPC and needs to restrict access so that only the application tier can communicate with it. The developer wants a security control that operates at the instance level and automatically allows return traffic for any established inbound connection. Which AWS security feature should the developer implement?
- Security groupsCevap
- BNetwork access control lists (network ACLs)
- CAmazon GuardDuty
- DAWS Shield
Cevap
Security groups
The correct answer is security groups. Security groups act as a virtual firewall for your EC2 instances to control incoming and outgoing traffic. They are stateful, which means that if you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules. Similarly, if inbound traffic is allowed, return outbound traffic is automatically allowed.
Adım Adım Çözüm
Anahtar Kavram
Security groups are stateful, instance-level firewalls in Amazon VPC, whereas Network ACLs are stateless, subnet-level firewalls.