CompTIA XK0-004 Exam Practice Questions (P. 5)
- 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 #41
A systems administrator has finished building a new feature for the monitoring software in a separate Git branch.
Which of the following is the BEST method for adding the new feature to the software's master branch?
Which of the following is the BEST method for adding the new feature to the software's master branch?
- AMerge the changes from the feature branch to the master branch.
- BSave the changes to the master branch automatically with each Git commit.
- CClone the feature branch into the master branch.
- DPull the changes from the feature branch into the master branch.
Correct Answer:
A
Reference:
https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
A
Reference:
https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
send
light_mode
delete
Question #42
Which of the following will provide a list of all flash, external, internal, and SSD drives?
- Alspci
- Blsmod
- Clsblk
- Dlsusb
Correct Answer:
C
Reference:
https://www.linux.com/learn/intro-to-linux/2017/3/how-format-storage-devices-linux
C
Reference:
https://www.linux.com/learn/intro-to-linux/2017/3/how-format-storage-devices-linux
send
light_mode
delete
Question #43
Which of the following configuration management tools is considered agentless?
- APuppet
- BSalt
- CAnsibleMost Voted
- DChef
Correct Answer:
C
Reference:
https://www.intigua.com/blog/puppet-vs.-chef-vs.-ansible-vs.-saltstack
C
Reference:
https://www.intigua.com/blog/puppet-vs.-chef-vs.-ansible-vs.-saltstack
send
light_mode
delete
Question #44
An administrator reviews the following configuration file provided by a DevOps engineer:

Which of the following would the application parsing this file MOST likely have to support?

Which of the following would the application parsing this file MOST likely have to support?
send
light_mode
delete
Question #45
Which of the following is a difference between YAML and JSON?
- AUsers can comment in YAML but not in JSONMost Voted
- BJSON only uses curly brackets, while YAML only uses square brackets
- CJSON is used in web development, while YAML is used solely in back-end systems.
- DYAML has been deprecated for JSON.
Correct Answer:
A
Reference:
https://www.json2yaml.com/yaml-vs-json
A
Reference:
https://www.json2yaml.com/yaml-vs-json
send
light_mode
delete
Question #46
A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file.
Which of the following should the administrator use to reduce the output of memory messages?
Which of the following should the administrator use to reduce the output of memory messages?
- Afree : swapoff / swapfile ; swapon -a
- Bmkswap /swapfile; swapon ג€"a
- Cfallocate ג€"l 2G /swapfile && swapon ג€"aMost Voted
- Decho ג€1ג€ > /proc/meninfo ; swapon / swapfile
Correct Answer:
B
B
send
light_mode
delete
Question #47
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output:

Given this scenario, which of the following steps will address this issue?

Given this scenario, which of the following steps will address this issue?
- AIssue the command renice ג€"n 0 ג€"p 8481
- BIssue the command renice ג€"p 8481
- CIssue the command renice ג€"p 0 -n 8481
- DIssue the command renice ג€"n 8481
Correct Answer:
A
A
send
light_mode
delete
Question #48
An administrator needs to mount the shared NFS file system testhost:/testvolume to mount point /mnt/testvol and make the mount persistent after reboot.
Which of the following BEST demonstrates the commands necessary to accomplish this task?
A.

B.

C.

D.

Which of the following BEST demonstrates the commands necessary to accomplish this task?
A.

B.

C.

D.

send
light_mode
delete
Question #49
A systems administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role.
Which of the following could be used to install more Linux servers with the same characteristics?
Which of the following could be used to install more Linux servers with the same characteristics?
- A/etc/sysconfig/anaconda.cfg
- B/root/anaconda.auto
- C/root/anaconda-ks.cfg
- D/etc/sysconfig/installation.cfg
Correct Answer:
C
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/sn-automating-installation
C
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/sn-automating-installation
send
light_mode
delete
Question #50
A Linux administrator is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces.
Which of the following commands enables this feature for IPv4 networks?
Which of the following commands enables this feature for IPv4 networks?
- Acat /proc/sys/net/ipv4/ip_route > 1
- Becho ג€1ג€ > /proc/sys/net/ipv4/ip_forward
- Cecho ג€1ג€ > /proc/sys/net/ipv4/ip_route
- Decho ג€1ג€ > /proc/sys/net/ipv4/ip_net
Correct Answer:
B
B
send
light_mode
delete
All Pages