CompTIA XK0-004 Exam Practice Questions (P. 3)
- 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 #21
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?
Which of the following will the administrator use to find all unsuccessful login attempts?
send
light_mode
delete
Question #22
A junior administrator needs to unload an older video kernel module.
Which of the following commands would BEST accomplish this task?
Which of the following commands would BEST accomplish this task?
- Amodprobe
- Binsmod
- CrmmodMost Voted
- Dchmod
- Edepmod
Correct Answer:
A
Reference:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Kernel_Administration_Guide/sec-Unloading_a_Module.html
A
Reference:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Kernel_Administration_Guide/sec-Unloading_a_Module.html
send
light_mode
delete
Question #23
An administrator is attempting to block SSH connections to 192.168.10.24 using the Linux firewall. After implementing a rule, a connection refused error is displayed when attempting to SSH to 192.168.10.24.
Which of the following rules was MOST likely implemented?
Which of the following rules was MOST likely implemented?
- Aiptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j REJECT
- Biptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j DROP
- Ciptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j FORWARD
- Diptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j REFUSE
Correct Answer:
A
Reference:
https://www.golinuxhub.com/2014/03/how-to-allowblock-ssh-connection-from.html
A
Reference:
https://www.golinuxhub.com/2014/03/how-to-allowblock-ssh-connection-from.html
send
light_mode
delete
Question #24
A junior Linux administrator is setting up system-wide configuration settings. The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system:

The administrator issues the following commands at the terminal:

Respectively, the output of these commands is as follows:

Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?

The administrator issues the following commands at the terminal:

Respectively, the output of these commands is as follows:

Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?
- AUpdate the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and run the bash_completion.sh script to update the changes.
- BUpdate the /etc/profile file using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profile command to update the changes.
- CUpdate the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes.
- DUpdate the /etc/profile file using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes.
Correct Answer:
B
B
send
light_mode
delete
Question #25
A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the server infrastructure using a specific tool that consumes a text-based file.
Which of the following is the BEST reason to do this?
Which of the following is the BEST reason to do this?
- ATo document the infrastructure so it can be included in the system security plan
- BTo ensure the administrator follows the planning phase of the systems development life cycle
- CTo define the infrastructure so it can be provisioned consistently with minimal manual tasksMost Voted
- DTo validate user requirements have been met within each regional datacenter for compliance
Correct Answer:
B
B
send
light_mode
delete
Question #26
A Linux administrator needs to set permissions on an application with the following parameters:
✑ The owner of the application should be able to read, write, and execute the application.
✑ Members of the group should be able to read and execute the application.
✑ Everyone else should not have access to the application.
Which of the following commands would BEST accomplish these tasks?
✑ The owner of the application should be able to read, write, and execute the application.
✑ Members of the group should be able to read and execute the application.
✑ Everyone else should not have access to the application.
Which of the following commands would BEST accomplish these tasks?
- Achmod 710 <application name>
- Bchmod 730 <application name>
- Cchmod 750 <application name>Most Voted
- Dchmod 760 <application name>
Correct Answer:
C
C
send
light_mode
delete
Question #27
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP requests.
Which of the following commands should the administrator execute?
Which of the following commands should the administrator execute?
- Aping ג€"c 10 host1Most Voted
- Btraceroute ג€"c 10 host1
- Cnetstat host1
- Dpathping ג€"c 10 host1
Correct Answer:
A
Reference:
https://shapeshed.com/unix-ping/
A
Reference:
https://shapeshed.com/unix-ping/
send
light_mode
delete
Question #28
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hosts and receives the following output:
127.0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?
127.0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?
- AModify the /etc/hosts file, and add the ipv6 localhost entry to the file.
- BModify the /etc/hosts file, and add the ::1 localhost entry to the file.
- CModify the /etc/hosts file, and add the ipv4 localhost entry to the file.
- DModify the /etc/hosts file, and add the 0.0.0.0 localhost entry to the file.
Correct Answer:
B
B
send
light_mode
delete
Question #29
A Linux systems administrator needs to copy the contents of a directory named `working` on the local working system to a folder /var/www/html on a server named `corporate-web`.
Which of the following commands will allow the administrator to copy all the contents to the web server?
Which of the following commands will allow the administrator to copy all the contents to the web server?
- Ascp ג€"r working/* webuser@corporate-web:/var/www/html
- Btar working/* webuser@corporate-web:/var/www/html
- Ccp ג€"r working/* webuser@corporate-web:/var/www/html
- Dmv working webuser@corporate-web:/var/www/html
Correct Answer:
A
Reference:
https://unix.stackexchange.com/questions/232946/how-to-copy-all-files-from-a-directory-to-a-remote-directory-using-scp
A
Reference:
https://unix.stackexchange.com/questions/232946/how-to-copy-all-files-from-a-directory-to-a-remote-directory-using-scp
send
light_mode
delete
Question #30
A systems administrator has received reports of intermittent network connectivity to a particular website. Which of the following is the BEST command to use to characterize the location and type of failure over the course of several minutes?
- Amtr www.comptia.org
- Btracert www.comptia.org
- Cping www.comptia.org
- Dnetstat www.comptia.org
Correct Answer:
A
A
send
light_mode
delete
All Pages