CND Network Perimeter Protection Practice Question
A network engineer is configuring a Linux firewall using nftables and needs to create a table for packet filtering, add a base chain for incoming traffic on the input hook, and set the default policy to drop. Which command sequence 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
✓
nft add table inet filter; nft add chain inet filter input { type filter hook input priority 0 \; policy drop \; }
nftables uses tables, chains, and rules with explicit hook definitions and policy declarations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
nftables create filter-table --default-drop
Why it's wrong here
This is an invalid syntax for nftables.
- ✗
iptables -P INPUT DROP
Why it's wrong here
This uses legacy iptables syntax rather than nftables.
- ✓
nft add table inet filter; nft add chain inet filter input { type filter hook input priority 0 \; policy drop \; }
Why this is correct
This correctly initializes an inet table and an input chain with a drop policy.
- ✗
ufw default deny incoming
Why it's wrong here
This configures UFW, not raw nftables commands.
About these practice questions
This CND question is part of Courseiva's 323-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official EC-Council exam blueprint
This CND practice question is part of Courseiva's free EC-Council 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 CND exam.