
CompTIALinux+
Domain 3Objective 2
Firewalls XK0-006 Practice Questions (Page 1)
Part of the Security domain, which accounts for 18% of the XK0-006 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~6–11 in this domain), expect 1–2 from this objective — we provide 18 practice questions to prepare you well beyond it. (estimate)
18questions here
4free pages
8concepts
18%of the exam
Questions 1–5
- 1
A Linux administrator wants to check the current UFW status, including the default policies and all active rules, in a numbered format. Which command should be used?
Select an answer first - 2
An administrator is migrating from iptables to nftables and needs to create a rule that allows inbound SSH traffic on the standard port. Which nft command accomplishes this?
Select an answer first - 3
A junior administrator used UFW to allow SSH but accidentally blocked all outgoing traffic with 'ufw default deny outgoing'. Users can no longer resolve DNS names. Which command restores outbound DNS resolution while keeping the default deny policy?
Select an answer first - 4
Which UFW command enables the firewall and sets it to start automatically at boot?
Select an answer first - 5
A Linux administrator is troubleshooting a firewall issue. The server has a rule that allows SSH on port 22, but remote administrators cannot connect. The administrator checks 'iptables -L -n -v' and sees that the SSH rule has a packet count of 0. What is the most likely cause?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “XK0-006” is a trademark of its owner, used for identification only.