A company hosts a payroll processing portal on Amazon EC2 instances inside a virtual private cloud (VPC). The security administrator needs to permit inbound HTTPS traffic on port 443 from a specific corporate office IP address range. The administrator wants the return traffic from the EC2 instances back to the corporate office to be permitted automatically without needing to define any outbound rules. Which AWS resource or feature should the administrator configure to meet these requirements?
- Security groups associated with the EC2 instancesAnswer
- BNetwork Access Control Lists (Network ACLs) applied to the subnet
- CAmazon GuardDuty enabled for the AWS account
- DThe AWS Shared Responsibility Model infrastructure layer
Answer
Security groups associated with the EC2 instances
The correct answer is the option focusing on security groups associated with the EC2 instances. Security groups are stateful firewalls that operate at the instance level. Because they are stateful, any permitted inbound traffic automatically allows the return response traffic to flow back, eliminating the need to write a corresponding outbound rule.
Step-by-Step Solution
Key Concept
Security groups are stateful firewalls that control inbound and outbound traffic for Amazon EC2 instances, automatically allowing return traffic for any permitted inbound connection.