AP Cybersecurity Unit 3 Lesson 3 Quiz
Lesson 3.3 Quiz: Firewalls & Packet Filtering
5 questions — Demonstrate your understanding of firewall concepts
NovaTech Solutions is a 300-employee SaaS company hosting its product on AWS. The security team manages a multi-tier firewall architecture: a perimeter NGFW, internal segmentation firewalls between production and development environments, and a WAF protecting customer-facing APIs.
(B) Incorrect — the scenario describes a multi-tier architecture, not a misconfigured flat policy.
(C) Incorrect — traffic flows through the perimeter NGFW first, then reaches the WAF closer to the application.
(D) Incorrect — NGFWs inspect both inbound and outbound traffic by default.
(A) Incorrect — “ESTABLISHED” specifically refers to state-table matching, not rule-set matching.
(C) Incorrect — firewall state tables track TCP sessions, not DNS-based trust relationships.
(D) Incorrect — stateful firewalls do not default-allow any protocol; all traffic must match rules or state entries.
Rule 1: DENY TCP from ANY to ANY on port 22
Rule 2: ALLOW TCP from 10.20.0.0/16 to 10.30.0.5 on port 22
Rule 3: DENY ALL
What is the MOST likely cause?
(A) Incorrect — the question specifically asks about firewall configuration, and the rule ordering error is evident.
(B) Incorrect — DENY ALL only applies to packets not matched by earlier rules; Rule 1 matches first.
(D) Incorrect — firewall rules match destination port 22 regardless of the source port used by the client.
(B) Incorrect — DNS traffic is subject to firewall rules like any other protocol; it is not exempt.
(C) Incorrect — standard DNS tunneling uses plaintext DNS, not TLS-encrypted DNS (which is a separate protocol).
(D) Incorrect — firewalls inspect both inbound and outbound traffic; the issue is rule granularity, not direction.
(A) Valid reason — WAFs specialize in application-layer threat detection.
(B) Valid reason — NGFWs handle network-layer protection that WAFs are not designed for.
(C) Valid reason — defense in depth ensures no single point of failure in the security architecture.
AP® is a registered trademark of the College Board, which was not involved in the production of this content.
Get in Touch
Whether you're a student, parent, or teacher — I'd love to hear from you.
Just want free AP CS resources?
Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.
Message Sent!
Thanks for reaching out. I'll get back to you within 24 hours.
Prefer email? Reach me directly at [email protected]