Drill 13 ยท
AP Cybersecurity Drill 13: Reading a Firewall Rule List is a practice drill. It contains 5 original questions created by Brian Stewart, a Barron's test prep author with over 20 years of tutoring experience.
A security analyst at a credit union reads an ordered firewall rule list to work out which rule decides each connection; this drill uses an invented company and original figures.
Verranome Credit Union uses a firewall that checks each connection against an ordered rule list from top to bottom and acts on the first rule that matches. If no rule matches, a final default rule denies the connection. The analyst prints the current list.
| Order | Direction | Protocol | Source | Destination | Port/Service | Action |
|---|---|---|---|---|---|---|
| 1 | Inbound | TCP | Any | Web server (DMZ) | 443 (HTTPS) | Allow |
| 2 | Inbound | TCP | Any | Web server (DMZ) | 22 (SSH) | Deny |
| 3 | Inbound | TCP | Branch staff subnet | Core banking server | 1521 (database) | Allow |
| 4 | Inbound | Any | Any | Core banking server | Any | Deny |
| 5 | Any | Any | Any | Any | Any | Deny (default) |
Here, treat Inbound as traffic entering the protected credit-union network from outside that server segment.
The analyst checks how the list handles several connection attempts and whether it meets the goal of letting the public use the website and letting only branch staff reach the core banking database.
Question 1. A visitor on the internet tries to open the public website on port 443 (HTTPS). Which rule decides this connection, and what happens?
Explanation: Choice C is correct. The firewall acts on the first matching rule top to bottom; rule 1 matches any source to the DMZ web server on port 443 and allows it, so the connection is permitted before any later rule is reached. Choice A is incorrect. Rule 5 is the default and is only reached when no earlier rule matches, but rule 1 matches first. Choice B is incorrect. Rule 2 matches port 22, not the port 443 web request. Choice D is incorrect. Rule 4 concerns the core banking server, not the web server, so it does not match this connection.
Question 2. Someone on the internet tries to open an SSH session (port 22) to the web server. Which rule applies, and why does the result differ from a normal page visit?
Explanation: Choice D is correct. Reading top to bottom, port 22 to the web server does not match rule 1 (port 443) but does match rule 2, which denies it; a page visit on port 443 matches rule 1 first and is allowed, so the two attempts hit different first-matching rules. Choice A is incorrect. Rule 1 matches only port 443, so it does not apply to the port 22 attempt. Choice B is incorrect. Rule 3 concerns the core banking server on the database port, not SSH to the web server. Choice C is incorrect. The SSH attempt matches rule 2 before ever reaching the default rule 5.
Question 3. A PC on the branch staff subnet connects to the core banking server on port 1521 (the database). A PC on the public guest Wi-Fi tries the same connection. How does the list treat each one?
Explanation: Choice B is correct. The staff PC matches rule 3 (branch staff subnet to the core banking server on 1521) and is allowed; the guest PC does not match rule 3, falls through to rule 4 (any source to the core banking server, any port), and is denied. Choice A is incorrect. Rule 3 matches only the branch staff subnet, so it cannot allow the guest PC. Choice C is incorrect. The staff PC matches rule 3 before reaching the default, so it is not denied by rule 5. Choice D is incorrect. The order is reversed: rule 3 allows the staff PC and rule 4 denies the guest PC.
Question 4. The analyst wants to let the branch staff subnet reach the web server's SSH port (22) for maintenance, without opening SSH to everyone. Which change achieves this while keeping the public denied?
Explanation: Choice A is correct. Because the firewall acts on the first match, inserting a narrower allow for the staff subnet on port 22 above the broad deny in rule 2 lets staff in while rule 2 still denies all other sources. Choice B is incorrect. Deleting rule 2 would open SSH to the entire internet, the opposite of keeping the public denied. Choice C is incorrect. Allowing any source on port 22 again exposes SSH to everyone. Choice D is incorrect. Moving the default deny to the top would block all traffic, including the public website.
Question 5. Reviewing the firewall's logs, the analyst sees repeated denied attempts from an internet address to the core banking server on many different ports. Which rule is generating those denials, and what should the analyst conclude?
Explanation: Choice C is correct. An internet source to the core banking server on many ports does not match rule 3 and is caught by rule 4 (any source to the core banking server, any port, deny); repeated denials across ports look like port-scanning or probing that the list is blocking and the analyst should investigate. Choice A is incorrect. Rule 1 concerns the web server on 443, not the banking server, and denials are not a maintenance signal. Choice B is incorrect. Rule 3 allows the staff subnet; it does not generate these internet denials, and the pattern is not a forgotten password. Choice D is incorrect. Rule 2 concerns SSH to the web server, and many-port attempts on the banking server are not normal website visits.