[Sep-2023] Get 100% Real XK0-004 Exam Questions, Accurate & Verified DumpsMaterials Dumps in the Real Exam!
Pass Your Linux+ Exams Fast. All Top XK0-004 Exam Questions Are Covered.
The CompTIA Linux+ Certification Exam certification exam is conducted online and can be taken from anywhere in the world. XK0-004 exam is time-bound and the candidate is required to complete it within a specified time frame. Once the exam is completed, the candidate will receive a score report that will indicate their performance on the exam.
CompTIA XK0-004 exam comprises of multiple-choice questions, performance-based questions, and drag-and-drop questions. XK0-004 exam consists of 90 questions that need to be answered in 90 minutes. The passing score for the exam is 720 out of 900. XK0-004 exam fee is $338, and the exam can be taken at any Pearson VUE test center worldwide.
NEW QUESTION # 53
A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and the array /dev/md0 consists of two devices called /dev/sda1and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstatfile, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1on which the database application was installed appears to have failed.
Which of the following steps should the administrator take to remove the device /dev/sdb1from the RAID array md0? (Choose two.)
- A. mdadm /dev/sdb1 --remove /dev/md0
- B. racadm --remove /dev/sdb1
- C. racadm --fail /dev/sdb1
- D. mdadm /dev/md0 --remove /dev/sdb1
- E. mdadm /dev/md0 --fail /dev/sdb1
- F. mdadm /dev/sdb1 --fail /dev/md0
Answer: D,E
NEW QUESTION # 54
A Linux administrator is restoring the SELinux contexts on an entire system. Which of the following commands is the BEST option to complete this task?
- A. setenforce 0 && reboot
- B. restorecon / && reboot
- C. touch /.autorelabel && reboot
- D. setfacl -bR / && reboot
Answer: B
Explanation:
Reference:
selinux_users_and_administrators_guide/sect-security-enhanced_linux-working_with_selinuxselinux_ contexts_labeling_files
NEW QUESTION # 55
An administrator is analyzing a Linux server which was recently hacked.
Which of the following will the administrator use to find all unsuccessful login attempts?
- A. nsswitch
- B. pam_tally2
- C. passwd
- D. faillock
Answer: B
NEW QUESTION # 56
A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and the array /dev/md0 consists of two devices called /dev/sda1 and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstat file, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1 on which the database application was installed appears to have failed.
Which of the following steps should the administrator take to remove the device /dev/sdb1 from the RAID array md0? (Choose two.)
- A. mdadm /dev/sdb1 --remove /dev/md0
- B. racadm --remove /dev/sdb1
- C. racadm --fail /dev/sdb1
- D. mdadm /dev/md0 --remove /dev/sdb1
- E. mdadm /dev/md0 --fail /dev/sdb1
- F. mdadm /dev/sdb1 --fail /dev/md0
Answer: D,E
NEW QUESTION # 57
A Linux administrator wants to fetch a Git repository from a remote Git server.
Which of the following is the BEST command to perform this task?
- A. git checkout
- B. git config
- C. git merge
- D. git clone
Answer: D
Explanation:
Reference:
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
NEW QUESTION # 58
A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab.
Which of the following crontab entries would run the script every Monday at 2:05 a.m.?
- A. 5 2 * * 0 /scripts/backup.sh
- B. 2 5 * * 1 /scripts/backup.sh
- C. 1 * * 2 5 /scripts/backup.sh
- D. 5 2 * * 1 /scripts/backup.sh
- E. 1 * * 5 2 /scripts/backup.sh
Answer: D
Explanation:
Reference:
https://tecadmin.net/crontab-in-linux-with-20-examples-of-cron-schedule/
NEW QUESTION # 59
A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp directory and is getting the following error No space left on device. The support engineer checks the /tmp directory, and it has 20GB of free space.
Which of the following BEST describes a possible cause for this error?
- A. The /tmp directory is not mounted.
- B. The filesystem is formatted with a 4MB block size.
- C. the filesystem ran out of inodes.
- D. The /tmp directory has been set with an immutable attribute.
Answer: C
Explanation:
Reference:
https://www.maketecheasier.com/fix-linux-no-space-left-on-device-error/
NEW QUESTION # 60
A systems administrator is reviewing the following partial output:
Which of the following should the administrator use to find contact information for the connections?
- A. whois $(dig -x 180.20.210.98 +short)
- B. host 180.20.210.98 I sendmail
- C. tcpdump -Invi eth0 host 180.20.210.98 and pore 80
- D. tracert, -d 180.20.210.98
- E. nslookup -query MX 180.20.210.98
Answer: C
NEW QUESTION # 61
A Linux administrator needs the "tech" account to have the option to run elevated commands as root.
Which of the following commands would BEST meet this goal?
- A. # usermod -aG wheel tech
- B. $ su - tech -c "/bin/bash"
- C. # sudo -I tech
- D. # groupadd -u tech -g root
Answer: C
NEW QUESTION # 62
A systems administrator wants to install a new application that requires the newmod kernel module. Which of the following commands should the systems administrator use?
- A. lsof newmod
- B. modinfo newmod
- C. modprobe newmod
- D. lsmod newmod
Answer: B
NEW QUESTION # 63
A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?
- A. chmod -R 0644 /
- B. chmod -R 0755 /
- C. umask 0022
- D. umask 0012
Answer: C
Explanation:
Explanation
Explanation/Reference: https://www.computerhope.com/unix/uumask.htm
NEW QUESTION # 64
Given the output below:
[root@appserver ~]# rm config.txt
rm: remove regular file 'config.txt'? yes
rm: cannot remove 'config.txt': Operation not permitted
Which of the following might be the cause?
- A. The file config.txt does not exist.
- B. The file config.txt does not have the user write bit set.
- C. The file config.txt has the immutable attribute set.
- D. The file config.txt has an ACL that does not permit deletion by others.
Answer: B
NEW QUESTION # 65
A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?
- A. Option B
- B. Option C
- C. Option D
- D. Option A
Answer: C
NEW QUESTION # 66
A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator
copied the files last week but must ensure any files created or modified since then are added.
Which of the following is the BEST command for the administrator to use?
- A. sftp -b /home/user99/* [email protected]:/backups
- B. cp -rf /home/user99/* /mnt/backups/user99/
- C. scp -r /home/user99/* [email protected]:/backups/user99/
- D. rsync -r /home/user99 [email protected]:/backups
Answer: D
NEW QUESTION # 67
Which of the following should the systems administrator use to ensure the test account is disabled after 24 hours if the account's password has expired?
- A. passwd -i 1 test
- B. passwd -e test 24
- C. passwd -1 test -t 24
- D. passwd -d -l -n 1 test
Answer: B
NEW QUESTION # 68
......
To be eligible for the CompTIA Linux+ certification, candidates must have at least 12 months of hands-on experience with Linux. They can choose to prepare for the exam through self-study, online courses, or instructor-led training. XK0-004 exam consists of 90 multiple-choice and performance-based questions that must be completed within 90 minutes. Candidates must score at least 720 out of 900 to pass the exam and earn the CompTIA Linux+ certification.
Penetration testers simulate XK0-004 exam: https://braindumps2go.dumpsmaterials.com/XK0-004-real-torrent.html
