CompTIA XK0-004 Exam Practice Questions (P. 1)
- Full Access (456 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
Which of the following would be the BEST solution for a systems administrator to access the graphical user environment of a Linux machine remotely?
- AVNC
- BKDE
- CX11
- DRPC
Correct Answer:
A
Reference:
https://www.sfu.ca/computing/about/support/tips/remote-to-linux-with-gui.html
A
Reference:
https://www.sfu.ca/computing/about/support/tips/remote-to-linux-with-gui.html
send
light_mode
delete
Question #2
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?
Which of the following BEST describes a possible cause for this error?
- AThe /tmp directory is not mounted.
- BThe filesystem is formatted with a 4MB block size.
- Cthe filesystem ran out of inodes.
- DThe /tmp directory has been set with an immutable attribute.
Correct Answer:
C
Reference:
https://www.maketecheasier.com/fix-linux-no-space-left-on-device-error/
C
Reference:
https://www.maketecheasier.com/fix-linux-no-space-left-on-device-error/
send
light_mode
delete
Question #3
Which of the following is the BEST reason for not storing database files in the /var directory?
- AThe /var filesystem is not fast enough for database files.
- BThe number of files in /var is limited by the available inodes.
- CFiles in /var do not have strict file permissions.
- DIf log files fill up /var, it might corrupt the database.Most Voted
Correct Answer:
D
D
send
light_mode
delete
Question #4
SIMULATION -
A junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.
INSTRUCTIONS -
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing `help` in the terminal will show a list of relevant commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
CentOS Command Prompt -

A junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.
INSTRUCTIONS -
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing `help` in the terminal will show a list of relevant commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
CentOS Command Prompt -

send
light_mode
delete
Question #5
DRAG DROP -
The lead Linux admin has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.
Select and Place:

The lead Linux admin has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.
Select and Place:

Correct Answer:
Reference:
https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/

Reference:
https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/
send
light_mode
delete
Question #6
An administrator receives a warning about a filesystem filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the filesystem.
Which of the following commands would BEST assists the administrator in identifying the problem?
Which of the following commands would BEST assists the administrator in identifying the problem?
- Alsof | grep largelogfile
- Bpkill /tmp/largelogfile
- Cpgrep largelogfile
- Dps ג€"ef | grep largelogfile
Correct Answer:
A
Reference:
https://access.redhat.com/solutions/2316
A
Reference:
https://access.redhat.com/solutions/2316
send
light_mode
delete
Question #7
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?
- AUEFI
- BPXEMost Voted
- CNFS
- DGRUB
Correct Answer:
A
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/ch-boot-x86
A
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/ch-boot-x86
send
light_mode
delete
Question #8
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space.
Which of the following is the correct sequence given only a terminal is available?
Which of the following is the correct sequence given only a terminal is available?
- A1. CTRL-C 2. bg 3. watch df /var 4. CTRL-C 5. fg 6. CTRL-Z
- B1. CTRL-C 2. fg 3. watch df /var 4. CTRL-Z 5. bg 6. CTRL-Z
- C1. CTRL-Z 2. bg 3. watch df /var 4. CTRL-C 5. fg 6. CTRL-C
- D1. CTRL-Z 2. bg 3. watch df /var 4. CTRL-Z 5. fg 6. CTRL-CMost Voted
Correct Answer:
D
D
send
light_mode
delete
Question #9
A Linux administrator must identify a user with high disk usage. The administrator runs the # du `"s /home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?
- Adf ג€"k /home/User3/files.txt
- Bdu ג€"a /home/User3/*
- Cdu ג€"sh /home/User/
- Dfind . ג€"name /home/User3 -print
Correct Answer:
C
Reference:
https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space
C
Reference:
https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space
send
light_mode
delete
Question #10
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.
Which of the following commands would BEST accomplish this task?
Which of the following commands would BEST accomplish this task?
- Aroute
- Bhost
- Cnslookup
- Dnetstat
- Eip
Correct Answer:
D
Reference:
https://www.tecmint.com/find-listening-ports-linux/
D
Reference:
https://www.tecmint.com/find-listening-ports-linux/
send
light_mode
delete
All Pages