Communication and Network Security

An administrator must explicitly deny traffic from one malicious IP range to every instance in a VPC subnet. Which control should be used?

Show the answer

Correct answerA. A network ACL deny rule on the subnet

AWhy this is right: A network ACL is evaluated at the subnet level and supports ordered allow and deny rules, so it can block a source range.

BWhy not this: A NAT gateway translates addresses for outbound traffic and is not a filtering control for inbound sources.

CWhy not this: Route tables choose where traffic is forwarded by destination and do not filter by source address.

DWhy not this: Security groups are allow-only; anything not permitted is implicitly denied, but explicit deny rules cannot be written.

Network ACLs apply at the subnet boundary, are stateless, and support explicit deny rules. Security groups attach to instances and support only allow rules, so they cannot deny a specific range.