May-2023 Free CompTIA XK0-004 Exam Question Practice Exams
Ace XK0-004 Certification with 485 Actual Questions
NEW QUESTION # 206
The following represents a partial listing of a user's .bashrc file:
HISTSIZE=800
HISTFILESIZE=1000
umask 2002
HISTCONTROL=ignoreboth
When the user opens a terminal, an error message appears:
Octal number out of range
Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring?
- A. HISTFILESIZE=1000
- B. umask 2002
- C. HISTSIZE=800
- D. HISTCONTROL=ignoreboth
Answer: B
Explanation:
Explanation
NEW QUESTION # 207
Which of the following server roles utilize a heartbeat/polling process? (Choose two.)
- A. Proxy
- B. Logging
- C. File server
- D. Load balancer
- E. Certificate authority
- F. Cluster
Answer: D,F
NEW QUESTION # 208
An administrator is using a configuration management tool to define a system's configuration. The defined configuration can be used to provision new systems, rebuild existing systems, or roll back systems
to their original baseline configurations.
Which of the following BEST describes what the administrator is doing?
- A. Containerization
- B. Test automation
- C. Infrastructure as code
- D. Build automation
Answer: C
Explanation:
Test Automation in my opinion as that relates to automatically (building and) testing new commits of software being developed inside a version control system.
NEW QUESTION # 209
A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax?
- A. mount -o loop /dev/kvm /mnt
- B. mount -o iso9660 /dev/sr0 /mnt
- C. mount -o loop /tmp/image.iso /mnt
- D. mount -o loop -t iso /mnt
Answer: A
Explanation:
Reference:
https://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html
NEW QUESTION # 210
An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the
administrator learns there are no httpd processes running. When starting the service, the site operates
correctly for a few minutes before the process disappears again.
Which of the following should the administrator consider as the MOST likely possibility before troubleshooting
the issue?
- A. Shared libraries, which were recently updated, are causing compatibility issues and httpd to die due to
- B. An external database to which the web server connects is offline, causing httpd to die due to execution
errors. - C. The out-of-memory killer was activated due to low available memory, causing the kernel to kill the
processes automatically. - D. The server is intermittently losing access to the network, causing socket errors that trigger httpd to die.
- E. The CPU has too much load, causing it to overheat, and the kernel is automatically killing the processes to
keep the CPU cool.
Answer: C
NEW QUESTION # 211
While booting an Intel 64-bit Debian UEFI desktop from power up, the prompt ts0> was displayed, indicating the bootloader failed. Which of the following will complete the boot process to a GRUB2 menu?
- A. Option A
- B. Option C
- C. Option D
- D. Option B
Answer: D
NEW QUESTION # 212
A systems administrator wants to know the current status of a series of ddjobs that were started in the background three hours ago.
Which of the following commands will achieve this task?
- A. sudo killall -TERM dd
- B. sudo killall -HUP dd
- C. sudo killall dd
- D. sudo killall -USR1 dd
Answer: D
Explanation:
Explanation/Reference: https://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd
NEW QUESTION # 213
After installing a new web server, you are unable to browse to the default web page.
INSTRUCTIONS
Review all the command output and select the command needed to remediate the issue.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Answer:
Explanation:
NEW QUESTION # 214
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?
- A. echo "1" > /proc/meninfo ; swapon / swapfile
- B. free : swapoff / swapfile ; swapon -a
- C. mkswap /swapfile; swapon -a
- D. fallocate -l 2G /swapfile && swapon -a
Answer: B
NEW QUESTION # 215
Users are receiving permission-denied messages when trying to access a spreadsheet file within the company's filesystem. A Linux administrator receives a ticket and begin to investigate the following output:
Which of the following command would produce the presented output?
- A. isof
- B. nice
- C. grep
- D. Top
Answer: A
NEW QUESTION # 216
A new video card was added to a customer workstation. To get the new video card to work correctly, a systems
administrator needs to remove support for the nouveau video driver on the Linux workstation.
Which of the following will accomplish this task?
- A. Use modprobe -R nouveau.
- B. Add blacklist nouveau to /etc/modprobe.d/blacklist.conf.
- C. Add blacklist nouveau to /etc/modprobe.conf.
- D. Use rmmod -f nouveau.
Answer: D
NEW QUESTION # 217
A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks:
Add localhost with loopback address.
Add 192.168.192.12/24 to resolve to database01.comptia.org
Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?
- A. Open the /etc/network file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org - B. Open the /etc/hosts file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org - C. Open the /etc/dhcpd.conf file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org - D. Open the /etc/nsswitch.conf file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org
Answer: B
Explanation:
Open the /etc/hosts file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org Modify Hosts File in Linux On Linux, the full path to the file is /etc/hosts.
In your terminal window, open the hosts file using your favorite text editor :
$ sudo nano /etc/hosts
NEW QUESTION # 218
A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot. The partial output of chkconfig is as follows:
Which of the following commands BEST describes how the administrator should re-enable the network service?
- A. chkconfig --level 12 network on
- B. chkconfig --level 345 network on
- C. chkconfig --level 0 network on
- D. chkconfig --level 0-6 network on
- E. chkconfig --level 6 network on
Answer: B
Explanation:
Reference:
https://www.thegeekdiary.com/how-to-enable-or-disable-service-on-boot-with-chkconfig/
NEW QUESTION # 219
A user requested a USB serial device to be added to a desktop computer. The device has built-in kernel driver support. The administrator tested the device installation and access, but the user cannot access the serial port.
Each time the user attempts to access the device, an error log is created that shows the user does not have permission to use the serial port. Which of the following will add a user to the group that has serial port capabilities?
- A. usermod -a -G serialport $USER
- B. usermod -a -G modem $USER
- C. usermod -a -G root $USER
- D. usermod -a -G dialout $USER
Answer: D
NEW QUESTION # 220
Which of the following Linux server roles should be installed to monitor and log local web traffic?
- A. AAA server
- B. SSH server
- C. Name server
- D. Proxy server
- E. HTTP server
Answer: D
NEW QUESTION # 221
......
XK0-004 Questions PDF [2023] Use Valid New dump to Clear Exam: https://pdftorrent.actual4test.com/XK0-004_examcollection.html