Question

Difficulty: EasyVPC Network Security

A systems administrator is configuring a security group for an Amazon EC2 instance hosting a web server. The administrator adds an inbound rule to allow HTTP traffic on port 80 from any source. What additional configuration is required in the security group to allow the web server to send outbound HTTP responses back to the clients?

  1. A
    An outbound rule must be added to allow HTTP traffic on port 80 to the client's destination IP address.
  2. B
    An outbound rule must be added to allow traffic on ephemeral ports (1024-65535) back to the clients.
  3. No additional configuration is required because security groups are stateful, meaning return traffic is automatically allowed.Answer
  4. D
    AWS WAF must be associated with the security group to allow outbound HTTP responses to the clients.

Answer

No additional configuration is required because security groups are stateful, meaning return traffic is automatically allowed.
The correct answer is correct because AWS security groups are stateful. When an inbound rule allows traffic on port 80, the security group tracks the connection and automatically allows the web server to send outbound responses back to the client, requiring no outbound security group rules for this communication.

Step-by-Step Solution

1
Analyze the resource type and rule requirements.
The resource is a security group, which operates at the instance level.
Security groups are stateful firewalls in AWS VPC networking.
2
Determine the behavior of stateful firewalls regarding return traffic.
Since security groups are stateful, any inbound traffic that is allowed will automatically have its return traffic allowed outbound.
Stateful connection tracking permits return packets without checking outbound rules.

Key Concept

VPC Security Group Statefulness
Rate this question