Pass4itsure > CompTIA > CompTIA Linux+ > XK0-004 > XK0-004 Online Practice Questions and Answers

XK0-004 Online Practice Questions and Answers

Questions 4

A Linux server needs to be accessed, but the root password is not available.

Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?

A. Boot into single-user mode and reset the password via the passwd command.

B. Boot into single-user mode and reset the password by editing the /etc/passwd file.

C. Boot into single-user mode and reset the password by editing the /etc/shadow file.

D. Boot into single-user mode and reset the password via the chage command.

Buy Now
Questions 5

Given that a company's policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?

A. VNC

B. NX

C. RDP

D. X11

Buy Now
Questions 6

Which of the following are Linux desktop managers? (Choose two.)

A. KDE

B. GNOME

C. GUI

D. VNC

E. X11

F. SPICE

Buy Now
Questions 7

A network administrator installed a web server on a Linux host and added a firewalld command to open port 80/tcp. The web server worked without error until an updated and patched kernel was installed on the system a month later. Now users are unable to access the web server even though the service is running.

Which of the following would fix the issue?

A. Use the firewalld command to open the HTTP application service rather than the port

B. Change the firewalld zone to private and open port tcp/80

C. Issue an additional firewalld command to open up port tcp/443 as well as port tcp/80

D. Use the firewalld command to open tcp/80 both with and without the --permanent switch

Buy Now
Questions 8

A systems administrator wants to increase the existing drive space on a Linux server with a software RAID. After physically adding the new drive to the system, and then adding the drive to the RAID array, the administrator notices the available drive space has not increased. A status of the array shows the new drive and the original storage space:

md0 : active Raid sdd1[3]S sdc1[2] sdb1[1] sda1[0] 954585654 blocks level5 64K chunk algorithm 2 [3/3] [UUU]

Which of the following should the administrator do to make all storage space available on the RAID array?

A. Run hdparm to alert the kernel to a new drive.

B. Convert the new drive to a hot spare.

C. Set the RAID type to a RAID 1.

D. Grow the array size to four members.

Buy Now
Questions 9

A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?

A. /etc/services

B. /etc/issue

C. /etc/hosts

D. /etc/motd

Buy Now
Questions 10

A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?

A. pam_tally2 --user=user --reset

B. passwd -u user -G root

C. usermod -u user -G root

D. chage -1 user=user --reset

Buy Now
Questions 11

A junior systems administrator is tasked with providing the network_administrators group the ability to perform sudo without prompting for a password. Which of the following steps should the administrator perform to accomplish this task? (Choose two.)

A. Use visudo to edit the /etc/sudoers file and add network_administrators to the "wheel" group

B. Use vi to edit the /etc/sudo file and add network_administrators to the "wheel" group

C. Provide all network_administrators with the "root" account password

D. Add the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file

E. Add the network_administrators =(ALL) NOEXEC: ALL directive to the /etc/sudoers file

Buy Now
Questions 12

An administrator is installing a Linux VM on a personal hypervisor. The administrator wants to have the VM's IP address on the same network as the hypervisor host so the VM has the same network properties as the physical interface of the host. To which of the following should the administrator set the network properties?

A. Host-only network

B. NAT network

C. Bridge network

D. Overlay network

Buy Now
Questions 13

A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local .tmp files that are occasionally created by the scripts.

Which of the following is the BEST way to accomplish this task?

A. git rm .tmp

B. git add -x .tmp *

C. echo .tmp >> .gitignore

D. rm -rf .tmp

Buy Now
Exam Code: XK0-004
Exam Name: CompTIA Linux+ Certification Exam
Last Update: Aug 23, 2023
Questions: 516
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99