SAA-C03 practice question: Security groups and network ACLs (2 of 3)
Design Secure Architectures A free question from our original SAA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
A news website runs on Amazon EC2 instances in one public subnet, and the instances use several different security groups.
Monitoring shows a flood of malicious requests from the address range 203.0.113.0/24 to every instance in the subnet. The subnet's network ACL has inbound rule 100, which allows HTTPS from 0.0.0.0/0.
The team wants one change that blocks the range for the whole subnet while legitimate readers keep access.
What should a solutions architect do?
Choose one answer.
AA. Add inbound rule 50 to the subnet's network ACL that denies all traffic from 203.0.113.0/24.
BB. Add inbound rule 200 to the subnet's network ACL that denies all traffic from 203.0.113.0/24.
CC. Add an inbound rule that denies traffic from 203.0.113.0/24 to each of the security groups used by the instances.
DD. Remove the 0.0.0.0/0 HTTPS rules from the security groups, and allow only the address ranges of known readers.
B. Wrong: This is the right place but the wrong order. HTTPS from the bad range matches rule 100 first and is allowed, so rule 200 is never reached for that traffic. The deny must have a lower number than the allow rule. Learn more: Network ACL rules (opens in a new tab)
C. Wrong: Security groups support allow rules only, so a deny rule cannot be added. Changing several security groups would also not be the single change the team asked for. Use a network ACL deny rule for the subnet. Learn more: Security group rules (opens in a new tab)
Network ACLs are stateless, subnet-level filters that support both allow and deny rules, evaluated in order from the lowest rule number. A deny for 203.0.113.0/24 numbered below the existing allow rule blocks the range for every instance in the subnet with one change. Security groups are allow-only and apply per instance.
Want more on Security groups and network ACLs? The 5 full-length practice sets have 10 more Security groups and network ACLs questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →