A compromised EC2 instance continues exfiltrating data over an established TCP connection after responders remove its security group's outbound rules. Other instances in the subnet must retain connectivity; which action will immediately block traffic to the attacker's IP address?
Show the answer
Correct answerA. Add a higher-priority network ACL deny rule for the attacker's IP address.
AWhy this is right: A matching, higher-priority network ACL deny rule blocks the traffic without relying on connection state.
BWhy not this: Tracked connections can survive security group rule changes, so this does not reliably terminate the active connection immediately.
CWhy not this: VPC Flow Logs record traffic metadata but do not block the active connection.
DWhy not this: Removing the subnet's default route would also disrupt internet connectivity for other instances.
Network ACLs are stateless and evaluate traffic even for established connections. Security group connection tracking can allow existing connections to continue after rule changes; removing the default route would also disrupt other instances.