- A
Allow inbound TCP 80 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Why wrong: Allows HTTP, not HTTPS.
- B
Allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Correctly permits HTTPS and related responses.
- C
Deny all inbound; allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10
Why wrong: The deny rule before the allow rule blocks all inbound traffic.
- D
Allow inbound TCP 22 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Why wrong: Allows SSH, not HTTPS.
Quick Answer
The correct rule set is to allow inbound TCP 443 to 10.1.1.10, allow outbound TCP from 10.1.1.10, and deny all inbound. This works because HTTPS exclusively uses TCP port 443 for encrypted web traffic, and the outbound rule permits the server’s stateful responses—either explicitly or via a stateful firewall—while the final deny-all ensures no other inbound protocols or ports reach the server. On the CompTIA SecurityX CAS-004 exam, this scenario tests your understanding of least-privilege access control and the distinction between stateless and stateful rule placement; a common trap is forgetting to allow the return traffic or accidentally blocking it with a broad deny rule. Remember that a firewall rule to allow inbound HTTPS only must specify the destination IP and port, permit the corresponding outbound traffic, and then drop everything else—think of it as “443 in, any out, deny the rest.” A useful mnemonic is “HTTPS: 443 in, server out, block the doubt.”
CAS-004 Security Engineering Practice Question
This CAS-004 practice question tests your understanding of security engineering. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A network administrator is configuring a firewall rule set. The requirement is to allow inbound HTTPS traffic from the internet to a web server at 10.1.1.10, and to allow the web server to respond. All other inbound traffic should be blocked. Which rule set accomplishes this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Option B is correct because HTTPS uses TCP port 443, and the rule set correctly allows inbound TCP 443 to the web server at 10.1.1.10, permits the server's outbound responses (stateful or explicit), and then denies all other inbound traffic. This matches the requirement to allow only HTTPS traffic from the internet while blocking everything else.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Allow inbound TCP 80 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Why it's wrong here
Allows HTTP, not HTTPS.
- ✓
Allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Why this is correct
Correctly permits HTTPS and related responses.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Deny all inbound; allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10
Why it's wrong here
The deny rule before the allow rule blocks all inbound traffic.
- ✗
Allow inbound TCP 22 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often overlook rule order and choose Option C, thinking a 'deny all' at the top is safe, but it actually blocks the intended traffic before the allow rule is processed.
Detailed technical explanation
How to think about this question
Firewalls process rules sequentially from top to bottom, so rule order is critical; a 'deny all' rule placed before an allow rule will block the allowed traffic. Stateful firewalls automatically permit return traffic for established connections, but explicit outbound allow rules are often used for clarity or in stateless environments. In real-world scenarios, misordering rules is a common misconfiguration that can lead to security gaps or service outages.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Security Engineering — study guide chapter
Learn the concepts, then practise the questions
- →
Security Engineering practice questions
Targeted practice on this topic area only
- →
All CAS-004 questions
510 questions across all exam domains
- →
CompTIA SecurityX CAS-004 study guide
Full concept coverage aligned to exam objectives
- →
CAS-004 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related CAS-004 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Scripting, Containers and Automation practice questions
Practise CAS-004 questions linked to Scripting, Containers and Automation.
Application Environment, Configuration and Security practice questions
Practise CAS-004 questions linked to Application Environment, Configuration and Security.
Governance, Risk and Compliance practice questions
Practise CAS-004 questions linked to Governance, Risk and Compliance.
Security Engineering practice questions
Practise CAS-004 questions linked to Security Engineering.
Security Architecture practice questions
Practise CAS-004 questions linked to Security Architecture.
Security Operations practice questions
Practise CAS-004 questions linked to Security Operations.
CAS-004 fundamentals practice questions
Practise CAS-004 questions linked to CAS-004 fundamentals.
CAS-004 scenario practice questions
Practise CAS-004 questions linked to CAS-004 scenario.
CAS-004 troubleshooting practice questions
Practise CAS-004 questions linked to CAS-004 troubleshooting.
Practice this exam
Start a free CAS-004 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this CAS-004 question test?
Security Engineering — This question tests Security Engineering — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound — Option B is correct because HTTPS uses TCP port 443, and the rule set correctly allows inbound TCP 443 to the web server at 10.1.1.10, permits the server's outbound responses (stateful or explicit), and then denies all other inbound traffic. This matches the requirement to allow only HTTPS traffic from the internet while blocking everything else.
What should I do if I get this CAS-004 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more ways this is tested on CAS-004
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A network administrator is configuring a firewall to allow only necessary traffic to a web server. The server should be accessible from the internet on port 443 and from a management subnet on port 22. Which firewall rule ensures least privilege?
easy- A.Allow traffic from management subnet to port 443 and any to port 22
- B.Allow traffic from any source to ports 443 and 22
- C.Allow all traffic to the server, then block specific ports
- ✓ D.Allow traffic from any to port 443, and from management subnet to port 22; deny all else
Why D: Allow only specific ports from specific sources, and block all other traffic.
Keep practising
More CAS-004 practice questions
- An organization is implementing a zero trust architecture (ZTA). The security architect proposes using a software-define…
- A security architect is planning the migration of a legacy application to a containerized microservices architecture on…
- An organization is deploying a new wireless network for employees and guests. The security policy requires that all wire…
- A security architect is evaluating cloud security architectures. The company requires that all data at rest in a public…
- A security architect is designing a zero-trust network architecture for a hybrid cloud environment. The company uses on-…
- A security architect is reviewing the network security controls for a critical industrial control system (ICS) environme…
Last reviewed: Jun 11, 2026
This CAS-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CAS-004 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.