Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
 

CompTIA XK0-005 Exam Actual Questions

The questions for XK0-005 were last updated on July 8, 2024.
  • Viewing page 1 out of 52 pages.
  • Viewing questions 1-5 out of 257 questions

Topic 1 - Exam A

Question #1 Topic 1

An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

  • A. rpm -qa | grep kernel; uname -a
  • B. yum -y update; shutdown -r now
  • C. cat /etc/centos-release; rpm -Uvh --nodeps
  • D. telinit 1; restorecon -Rv /boot
Reveal Solution Hide Solution   Discussion   4

Correct Answer: A 🗳️

Question #2 Topic 1

A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

  • A. /etc/host.conf
  • B. /etc/hostname
  • C. /etc/services
  • D. /etc/ssh/sshd_config
Reveal Solution Hide Solution   Discussion   3

Correct Answer: D 🗳️

Question #3 Topic 1

A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?

  • A. git reflog
  • B. git pull
  • C. git status
  • D. git push
Reveal Solution Hide Solution   Discussion   3

Correct Answer: B 🗳️

Question #4 Topic 1

A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?

  • A. iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT - -to-destination 192.0.2.25:3128
  • B. iptables -t nat -A PREROUTING -p top --dport 81 -j DNAT –-to-destination 192.0.2.25:3129
  • C. iptables -t nat -I PREROUTING -p top --sport 80 -j DNAT –-to-destination 192.0.2.25:3129
  • D. iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT –-to-destination 192.0.2.25:3128
Reveal Solution Hide Solution   Discussion   5

Correct Answer: D 🗳️

Question #5 Topic 1

Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?

  • A. route -i etho -p add 10.0.213.5 10.0.5.1
  • B. route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
  • C. echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
  • D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0
Reveal Solution Hide Solution   Discussion   4

Correct Answer: D 🗳️

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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in