CompTIA Linux+ XK0-006 (V8) Practice Question

A CentOS Stream 9 host is protected by firewalld. You have temporarily opened TCP port 8080 in the current ruleset to test a new micro-service. The test is successful, and you now need the rule to survive future reboots without replacing the active rules in the kernel (that is, you do not want to reload or restart firewalld). Which pair of commands satisfies these requirements?

  • firewall-cmd --add-port=8080/tcp --permanent

  • firewall-cmd --add-port=8080/tcp ; firewall-cmd --runtime-to-permanent

  • firewall-cmd --add-port=8080/tcp --permanent && firewall-cmd --reload

  • firewall-cmd --add-port=8080/tcp && systemctl restart firewalld

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot