CompTIA Linux+ XK0-005 (v7) Practice Question

A DevOps engineer is investigating why an HTTPS-only web application on a RHEL server is unreachable from the internet. She has confirmed that the nginx service is active and listening on 0.0.0.0:443, DNS resolves correctly, and the server can reach external hosts. Remote SSH works. She then runs:

$ sudo firewall-cmd --list-all
public (active)
  interfaces: eth0
  services: ssh
  ports:

No other services or ports are listed. Which single command will restore user access while adhering to the principle of least privilege?

  • systemctl stop firewalld

  • firewall-cmd --permanent --add-port=53/udp && firewall-cmd --reload

  • firewall-cmd --zone=trusted --change-interface=eth0 --permanent && firewall-cmd --reload

  • firewall-cmd --permanent --add-service=https && firewall-cmd --reload

CompTIA Linux+ XK0-005 (v7)
Troubleshooting
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.

SAVE $47
$390.00 $343.00
Bash, the Crucial Exams Chat Bot
AI Bot