CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 23,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 23,2024
The development team has automated their software build process so each time a change is submitted to the source code repository, a new software build is compiled. They are requesting that the Linux operations team look into automating the deployment of the software build into the test environment.
Which of the following is the benefit to the development team for implementing deployment automation?
- A . To ensure the build commits are also deployed to the test environment
- B . To enable notifications when builds are deployed to the test environment
- C . To ensure software builds in test are not accidentally deployed to production
- D . To streamline the deployment process for deploying builds into test environments
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 0 network on
- B . chkconfig –level 0-6 network on
- C . chkconfig –level 6 network on
- D . chkconfig –level 12 network on
- E . chkconfig –level 345 network on
Which of the following commands would show the default printer on a Linux system?
- A . lpr
- B . lpq
- C . lpstat
- D . lspci
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.
Which of the following commands would BEST accomplish this task?
- A . route
- B . host
- C . nslookup
- D . netstat
- E . ip
A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in fdisk -l output.
Which of the following commands should be used to rescan the entire SCSI bus?
- A . echo "- – -" > /sys/class/scsi_host/host0/scan
- B . echo ”> /sys/class/scsi_host/host0/scan
- C . echo "- – -" > /sys/scsi/scsi_host/host0/scan
- D . echo "scan" > /sys/class/scsi_host/host0/scan
Which of the following is the template for the grub.cfg file?
- A . /etc/default/grub
- B . /etc/grub2.cfg
- C . /etc/sysct1.conf
- D . /boot/efi
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 . free : swapoff / swapfile ; swapon -a
- B . mkswap /swapfile; swapon Ca
- C . fallocate Cl 2G /swapfile && swapon Ca
- D . echo “1” > /proc/meninfo ; swapon / swapfile
Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file.
However, she receives the following error message when she tries to add the line:
Ann performs some diagnostics to attempt to find the root cause:
Which of the following commands should Ann execute to write content to /etc/yum?
- A . chmod 755 /etc/yum.conf
- B . setfacl Cm m:rw /etc/yum.conf
- C . chattr CI /etc/yum.conf
- D . setenforce 0
A new HTTPS web service is being deployed on a server.
Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?
- A . iptables CI OUTPUT Cp tcp –sport 443 Cj ACCEPT
- B . iptables CA INPUT Cp tcp –dport 443 Cj ACCEPT
- C . iptables CI INPUT –dport 443 Cj ACCEPT
- D . iptables CA OUTPUT Cp tcp –dport 443 Cj ACCEPT
A Linux administrator needs to switch from text mode to GUI.
Which of the following runlevels will start the GUI by default?
- A . Runlevel 3
- B . Runlevel 4
- C . Runlevel 5
- D . Runlevel 6
No comment