Courseiva
mediumDrag & DropObjective-mapped

XK0-006 Practice Question: Drag and drop the steps to configure a firewall…

Drag and drop the steps to configure a firewall rule using iptables to allow SSH in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

Add SSH allow rule, then set INPUT default DROP, then save rules

Firewall configuration typically involves adding allow rules before setting default drop and saving.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add SSH allow rule, then set INPUT default DROP, then save rules

    Why this is correct

    This is correct because you must first add the allow rule to avoid locking yourself out when changing the default policy. Then set the default to DROP, and save to persist the changes.

  • Set INPUT default DROP, then add SSH allow rule, then save rules

    Why it's wrong here

    This is incorrect because setting the default to DROP first can disconnect an active SSH session before the allow rule is added, resulting in loss of remote access.

  • Add SSH allow rule, then save rules, then set INPUT default DROP

    Why it's wrong here

    This is incorrect because saving before setting the default DROP means the default DROP rule is not saved, so the configuration is incomplete and the system will not have the intended default policy after reboot.

  • Save rules, then add SSH allow rule, then set INPUT default DROP

    Why it's wrong here

    This is incorrect because saving first captures current rules (likely empty or previous), then the subsequent allow and drop rules are not saved, so changes are lost on reboot.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 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 XK0-006 exam.