CompTIA XK0-004 Exam Practice Questions (P. 4)
- 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 #31
A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables `"L command appears to contain a complete firewall configuration.
Which of the following commands does the administrator need to issue for the router to be fully functional?
Which of the following commands does the administrator need to issue for the router to be fully functional?
- Aecho ג€1ג€ > /proc/sys/net/ipv4/ip_forward
- Becho ג€0ג€ > /proc/sys/net/ipv4/tcp_abort_on_overflow
- Cecho ג€0ג€ > /proc/sys/net/ipv4/max_connections
- Decho ג€1ג€ > /proc/sys/net/ipv4/ip_default_ttl
Correct Answer:
A
A
send
light_mode
delete
Question #32
A systems administration team has decided to treat their systems as immutable instances. They keep the desired state of each of their systems in version control and apply automation whenever they provision a new instance. If there is an issue with one of their servers, instead of troubleshooting the issue, they terminate the instance and rebuild it using automation.
Which of the following is this an example of?
Which of the following is this an example of?
- AInventory
- BOrchestrationMost Voted
- CInfrastructure as code
- DAgentless deployment
Correct Answer:
C
C
send
light_mode
delete
Question #33
A systems administrator wants to deploy several applications to the same server quickly. Each application should be abstracted from the host with its own dependencies and libraries and utilize a minimal footprint.
Which of the following would be BEST in this scenario?
Which of the following would be BEST in this scenario?
send
light_mode
delete
Question #34
An operator finds a user is having issues with opening certain files.
Which of the following commands would allow the security administrator to list and check the SELinux context?
Which of the following commands would allow the security administrator to list and check the SELinux context?
- Als ג€"D
- Bls ג€"a
- Cls ג€"ZMost Voted
- Dls -l
Correct Answer:
C
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux- working_with_selinux-selinux_contexts_labeling_files
C
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux- working_with_selinux-selinux_contexts_labeling_files
send
light_mode
delete
Question #35
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?
- Aecho ג€blacklist bluetoothג€ > /etc/modprobe.d/blacklist-bluetoothMost Voted
- Becho ג€kill bluetoothג€ > /etc/modprobe.d/kill-bluetooth
- Cecho ג€modprobe bluetoothג€ > /etc/modprobe.d/modporbe-bluetooth
- Decho ג€rmmod bluetoothג€ > /etc/modprobe.d/rmmod-bluetooth
Correct Answer:
C
C
send
light_mode
delete
Question #36
A junior Linux administrator is installing a new application with CPU architecture requirements that have the following specifications:
✑ x64 bit
✑ 3.0GHz speed
✑ Minimum quad core
The administrator wants to leverage existing equipment but is unsure whether the requirements of these systems are adequate. The administrator issues the following command cat /proc/cpuinfo. The output of the command is as follows:

Which of the following is the recommended course of action the administrator should take based on this output?
✑ x64 bit
✑ 3.0GHz speed
✑ Minimum quad core
The administrator wants to leverage existing equipment but is unsure whether the requirements of these systems are adequate. The administrator issues the following command cat /proc/cpuinfo. The output of the command is as follows:

Which of the following is the recommended course of action the administrator should take based on this output?
- AInstall the application, as the system meets the application requirements
- BProcure new equipment that matches the recommended specificationsMost Voted
- CRecompile the Linux kernel to support the installation.
- DReconfigure lib modules to support the new application.
Correct Answer:
A
A
send
light_mode
delete
Question #37
A Linux systems administrator wants the ability to access systems remotely over SSH using RSA authentication. To which of the following files should the RSA token be added to allow this access?
- Aauthorized_keysMost Voted
- B~/.ssh/ssh_config
- Cid_rsa.pub
- Dknown_hosts
Correct Answer:
C
Reference:
https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server
C
Reference:
https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server
send
light_mode
delete
Question #38
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?
Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
- ABoot into single-user mode and reset the password via the passwd command.
- BBoot into single-user mode and reset the password by editing the /etc/passwd file.
- CBoot into single-user mode and reset the password by editing the /etc/shadow file.
- DBoot into single-user mode and reset the password via the chage command.
Correct Answer:
A
Reference:
https://phoenixnap.com/kb/how-to-change-root-password-linux
A
Reference:
https://phoenixnap.com/kb/how-to-change-root-password-linux
send
light_mode
delete
Question #39
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?
Which of the following is the BEST command to perform this task?
- Agit checkout
- Bgit clone
- Cgit merge
- Dgit config
Correct Answer:
B
Reference:
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
B
Reference:
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
send
light_mode
delete
Question #40
An administrator needs to create a shared directory in which all users are able to read, write, and execute its content but none of the regular users are able to delete any content.
Which of the following permissions should be applied to this shared directory?
Which of the following permissions should be applied to this shared directory?
send
light_mode
delete
All Pages