Question 110
A company needs effective stateful and stateless VPC traffic filters. The team confirms that a higher-numbered NACL deny is ineffective because a lower-numbered Allow matches first. Which approach most directly resolves this gap?
Explanation
Correct Answer
The scenario identifies this requirement: A higher-numbered NACL deny is ineffective because a lower-numbered Allow matches first. Select Reorder NACL rules so the desired evaluation occurs first as the specified technical mechanism. Network ACL entries are evaluated in ascending rule number order. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Reference the caller's security group in the destination security-group rule addresses a separate condition: two application servers must communicate without broad CIDR-based ingress. Group references express allowed source identities for supported VPC networking. The actual requirement is a higher-numbered NACL deny is ineffective because a lower-numbered Allow matches first. Recommended corrective action: Reorder NACL rules so the desired evaluation occurs first. Network ACL entries are evaluated in ascending rule number order.
Rely on stateful security-group connection tracking for return packets would help if the application's inbound traffic works despite no explicit security-group egress response rule. Security groups automatically permit responses to allowed connections. That is not the symptom described here: a higher-numbered NACL deny is ineffective because a lower-numbered Allow matches first. The matching response is Reorder NACL rules so the desired evaluation occurs first, because network ACL entries are evaluated in ascending rule number order.
For the alternative failure an EC2 server sends a request but its return packets are blocked by a custom network ACL, the control Add appropriate ephemeral return-port rules to the stateless network ACL is relevant: nACLs must permit both directions of a flow. Here the evidence instead is a higher-numbered NACL deny is ineffective because a lower-numbered Allow matches first. The selected technical mechanism is Reorder NACL rules so the desired evaluation occurs first: network ACL entries are evaluated in ascending rule number order.