A university is migrating its legacy student registration database to AWS. The database runs on Amazon EC2 instances within a private subnet of a Virtual Private Cloud (VPC). The security team has established two strict requirements:
1. Automatically deny all network traffic originating from a specific list of blacklisted external IP ranges at the subnet boundary.
2. Allow inbound database connections to the database instances on port 1521, while relying on the firewall's stateful behavior to automatically permit the returning outbound database traffic without requiring any explicit outbound rules.
Which of the following security configurations should the university implement to meet these requirements? (Select TWO.)
- Configure a Network Access Control List (Network ACL) at the subnet level with a rule to deny traffic from the blacklisted external IP ranges.Answer
- Configure a Security Group at the instance level to allow inbound connections on port 1521.Answer
- CConfigure a Security Group at the instance level with a rule to deny traffic from the blacklisted external IP ranges.
- DConfigure a Network Access Control List (Network ACL) at the subnet level to allow inbound connections on port 1521, relying on stateful tracking for the return traffic.
- EDeploy Amazon GuardDuty at the VPC boundary to automatically inspect and drop traffic from the blacklisted IP ranges.
Answer
To meet the requirements, the university should configure a Network Access Control List at the subnet level with a rule to deny traffic from the blacklisted external IP ranges, and configure a Security Group at the instance level to allow inbound connections on port 1521.
The requirement to deny blacklisted IP ranges at the subnet boundary is met by configuring a Network Access Control List with a deny rule, as Network ACLs operate at the subnet level and support explicit deny rules. The requirement to allow database connections statefully is met by configuring a Security Group, which operates at the instance level and automatically permits return traffic once inbound traffic is allowed.
Step-by-Step Solution
Key Concept
Stateful vs. Stateless Network Firewalls in AWS