exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 147 discussion

Actual exam question from CompTIA's XK0-005
Question #: 147
Topic #: 1
[All XK0-005 Questions]

A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?

  • A. firewalld query-service-http
  • B. firewall-cmd --check-service http
  • C. firewall-cmd --query-service http
  • D. firewalld --check-service http
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
post20
10 months, 4 weeks ago
Correct answer option C. This command queries the firewall daemon (firewalld) to check if the "http" service is currently enabled in the firewall. If the service is enabled, the command will return "yes"; otherwise, it will return "no".
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...