Question 660
An AWS network engineer must address this specific condition: An EC2 application cannot initiate TCP 5432 to its database because the database security group does not allow that client flow; an operator proposes adding arbitrary ephemeral return-port rules instead. Which implementation or operational change BEST meets the requirement?
Explanation
Correct Answer
Missing permission for the initiating connection is not repaired by adding inbound return-port rules; tracked replies to allowed flows are already permitted. Confirm the correction by checking that the app establishes its authorized database connection and receives responses without unrelated ephemeral return-port rules.
Incorrect Answers
Layer-seven WAF scope cannot act as a stateful inter-VPC TCP firewall for non-HTTP traffic. It does not directly achieve the required result: the app establishes its authorized database connection and receives responses without unrelated ephemeral return-port rules. The constraint is that missing permission for the initiating connection is not repaired by adding inbound return-port rules; tracked replies to allowed flows are already permitted.
A broad earlier deny can supersede a later allow despite permissive security groups. That adjustment does not address the controlling condition: missing permission for the initiating connection is not repaired by adding inbound return-port rules; tracked replies to allowed flows are already permitted. Verify the app establishes its authorized database connection and receives responses without unrelated ephemeral return-port rules.
Endpoint private addressing does not automatically enforce least-privilege client access. It does not directly achieve the required result: the app establishes its authorized database connection and receives responses without unrelated ephemeral return-port rules. The constraint is that missing permission for the initiating connection is not repaired by adding inbound return-port rules; tracked replies to allowed flows are already permitted.






AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests