Logo

Win IT Exam with Last Dumps 2023


CompTIA XK0-004 Exam

Page 15/18
Viewing Questions 141 150 out of 180 Questions
83.33%

Question 141
A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb open fails. To verify if there is a problem in theRPM database, the systems administrator runs the following command:
Which of the following commands should the systems administrator run NEXT to resolve this issue?
Image XK0-004_141Q.png related to the CompTIA XK0-004 Exam
A. cd/var/lib/rpm; rpm --rebuilddb ; rm -f _db*; yum clean all
B. cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
C. cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
D. cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all

Question 142
Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full. Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?
A. rm -Rf ~/.*
B. fsck -y /dev/sda1
C. df -i
D. fdisk /dev/sda

Question 143
A Linux administrator is adding a static IP address to a network interface on a Linux system. The administrator modifies the ifcfg- eth0 configuration file with the following settings:
After the administrator restarts the Linux server, the system is not connected to the network. Which of the following configuration settings needs to be changed?
Image XK0-004_143Q.png related to the CompTIA XK0-004 Exam
A. Set BOOTPROTO to BOOTP and USERCTL to yes.
B. Set BOOTPROTO to NONE and ONBOOT to yes.
C. Set USERCTL to yes and ONBOOT to no.
D. Set NETMASK to 255.255.0.0 and ONBOOT to yes.

Question 144
A company wants to provide internal identity verification services for networked devices. Which of the following servers should be installed?
A. SSH
B. VPN
C. CA
D. DHCP
E. DNS

Question 145
An administrator notices a directory on a web server named /var/www/html/old_reports that should no longer be accessible on the web. Which of the following commands will accomplish this task?
A. chmod 000 /var/www/html/old_reports
B. chgrp root /var/www/html/old_reports
C. chown apache /var/www/html/old_reports
D. setenforce apache /var/www/html/old_reports

Question 146
A Linux administrator wants to configure log messages of critical or higher severity levels from the cron utility to be logged to the console. Which of the following will accomplish this objective?
A. Edit the /etc/logrotate.d/cron file to include the line cron.emerg.* /dev/console
B. Edit the /etc/rsyslog.conf file to include the line cron.emerg.* /dev/console
C. Edit the /etc/logrotate.conf file to include the line cron.emerg.* /dev/console
D. Edit the /etc/rsyslog.d/conf file to include the line cron.emerg.* /dev/console

Question 147
A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?
A. rsync -aHAX /share/* serverB:/newshare
B. dd if=/share/* of=serverB:/newshare
C. tar -cvf /share/* serverB:/newshare
D. mirrorlv /share/* serverB:/newshare

Question 148
An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?
A. tail -f /var/log/secure
B. journalctl ""u application
C. systemctl application.service
D. watch /var/lib/application/

Question 149
Which of the following is true about Type 2 hypervisors?
A. Type 2 hypervisors run on top of another general purpose OS.
B. Type 2 hypervisors are often called bare-metal or native hypervisors.
C. Type 2 hypervisors offer a performance increase to the guests in comparison to a Type 1 hypervisor.
D. Only Type 2 hypervisors allow direct access to CPU virtualization features.

Question 150
A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?
A. /etc/services
B. /etc/issue
C. /etc/hosts
D. /etc/motd