An inventory management system hosts its database on Amazon EC2 instances within a private subnet. The database instances must only receive inbound database traffic on port 5432 from the application tier EC2 instances. A cloud practitioner configures a Security Group for the database instances with an inbound rule allowing TCP traffic on port 5432 from the application tier's security group. Which of the following outbound configuration options is required on the database security group to allow the database instances to successfully return response traffic back to the application tier?
- No outbound rule is required because Security Groups are stateful, meaning allowed inbound traffic automatically permits the corresponding response traffic.Answer
- BAn outbound rule must be added to allow return traffic because Security Groups are stateless and do not automatically allow response traffic.
- CAn outbound rule is not required because the subnet-level Network Access Control List (NACL) automatically handles stateful return traffic for the EC2 instance.
- DAWS automatically manages all inbound and outbound traffic rules at the hypervisor level as part of the AWS shared responsibility model, making manual rules unnecessary.
Answer
No outbound rule is required because Security Groups are stateful, meaning allowed inbound traffic automatically permits the corresponding response traffic.
The correct option is correct because Security Groups in AWS are stateful firewall devices. When an inbound rule permits traffic to enter an instance (such as database traffic on port 5432), the security group automatically allows the return response traffic to leave the instance, regardless of the outbound rules configured.
Step-by-Step Solution
Key Concept
Stateful behavior of Security Groups versus stateless behavior of Network ACLs
Estimated Time:1m 0s