exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 103 discussion

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

A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

  • A. iptables -F INPUT -j 192.168.10.50 -m DROP
  • B. iptables -A INPUT -s 192.168.10.30 -j DROP
  • C. iptables -i INPUT --ipv4 192.168.10.50 -z DROP
  • D. iptables -j INPUT 192.168.10.50 -p DROP
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
MissAllen
Highly Voted 1 year, 6 months ago
B is best, but the IP address is wrong.
upvoted 9 times
...
Alizadeh
Most Recent 8 months, 3 weeks ago
Selected Answer: B
The correct answer is B. iptables -A INPUT -s 192.168.10.50 -j DROP.
upvoted 1 times
...
linux_admin
1 year, 2 months ago
B. iptables -A INPUT -s 192.168.10.30 -j DROP
upvoted 1 times
...
Ckl22
1 year, 4 months ago
MissAllen is right, B is the answer here. "-A" appends the rule, "-s" is source address, and "-j" is the action if the rule is matched, so DROP
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago