XK0-005 · Question #666
XK0-005 Question #666: Real Exam Question with Answer & Explanation
The correct answer is B: ufw delete deny 80/tcp. {"question_number": 5, "question": "Remove a previously created firewall rule using ufw.", "correct_answer": "B", "explanation": "The correct ufw syntax for deleting a rule is 'ufw delete [rule]', where [rule] matches the original rule as it was added. If the rule was added with
Question
A Linux engineer is removing a previously created firewall rule. Which of the following commands will help the administrator accomplish this task?
Options
- Aufw delete 80/tcp
- Bufw delete deny 80/tcp
- Cufw delete 80/tcp deny
- Dufw 80/tcp delete
Explanation
{"question_number": 5, "question": "Remove a previously created firewall rule using ufw.", "correct_answer": "B", "explanation": "The correct ufw syntax for deleting a rule is 'ufw delete [rule]', where [rule] matches the original rule as it was added. If the rule was added with 'ufw deny 80/tcp', it must be deleted with 'ufw delete deny 80/tcp'. Option A ('ufw delete 80/tcp') omits the rule action (deny/allow) and is invalid. Options C and D use incorrect syntax-ufw does not accept the action or port after 'delete' in those formats.", "generated_by": "claude-sonnet", "llm_judge_score": 5}
Topics
Community Discussion
No community discussion yet for this question.