Free XK0-004 Braindumps Download Updated on Jan 26, 2022 with 266 Questions
CompTIA XK0-004 Exam Practice Test Questions
Automation and Scripting
This is the last domain that you will face on your CompTIA XK0-004 exam and it focuses on the following concepts:
- Summarizing the orchestration processes and concepts including infrastructure automation and agents.
- Deployment and execution of basic BASH scripts like environment variables and shell variables;
- Performing version control using Git and understanding its package;
What to Know about XK0-004 Exam Objectives?
Here's a summary of what every domain of test XK0-004 entails:
Hardware and System Configuration
Under hardware and system configuration, learners will be required to explain the concepts of the boot process. Besides, they should be familiar with the installation, configuration, and monitoring of kernel modules, the configuration and verification of the parameters of network connection, and management of storage within a Linux environment. An in-depth understanding of localization options as well as cloud and virtualization technologies is also vital for success in this topic. Among the tested concepts, you will find the partition, line tools, bootstrapping, and hypervisors.
NEW QUESTION 64
A systems administrator needs to connect to a remote Linux machine to run system updates from within a graphical interface. Which of the following should the administrator use?
- A. Unity
- B. VNC
- C. Wayland
- D. MATE
Answer: B
NEW QUESTION 65
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?
- A. /root/anaconda.auto
- B. /root/anaconda-ks.cfg
- C. /etc/sysconfig/installation.cfg
- D. /etc/sysconfig/anaconda.cfg
Answer: B
Explanation:
Explanation/Reference: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/ sn-automating-installation
NEW QUESTION 66
A junior systems administrator has generated a PKI certificate for SSH sessions. The administrator would like to configure authentication without passwords to remote systems. Which of the following should the administrator perform?
- A. Add the content of id_rsafile to the remote system ~/.ssh/known_hostslocation.
- B. Add the content of id_rsafile to the remote system ~/.ssh/authorized_keyslocation.
- C. Add the content of id_rsa.pubfile to the remote system ~/.ssh/authorized_keyslocation.
- D. Add the content of id_rsa.pubfile to the remote system ~/.ssh/known_hostslocation.
Answer: C
Explanation:
Explanation/Reference: https://kb.iu.edu/d/aews
NEW QUESTION 67
A Linux server needs to be accessed, but the root password is not available.
Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
- A. Boot into a single-user mode and reset the password by editing the /etc/shadowfile.
- B. Boot into a single-user mode and reset the password via the passwdcommand.
- C. Boot into a single-user mode and reset the password via the chagecommand.
- D. Boot into a single-user mode and reset the password by editing the /etc/passwdfile.
Answer: B
Explanation:
Explanation/Reference: https://phoenixnap.com/kb/how-to-change-root-password-linux
NEW QUESTION 68
The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.
Answer:
Explanation:

NEW QUESTION 69
A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot.
Which of the following is the BEST command to do this?
- A. systemctl mask sendmail
- B. systemctl disable sendmail
- C. systemctl reset-failed sendmail
- D. systemctl stop sendmail
Answer: D
NEW QUESTION 70
Which of the following is the purpose of the monitoring server role?
- A. To aggregate web traffic to watch which websites employees are visiting
- B. To provide user authentication services to a network
- C. To provide real-time analysis of potential threats to the organization
- D. To collect status and performance information about the servers in an environment
Answer: D
NEW QUESTION 71
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. df -i
- B. fdisk /dev/sda
- C. fsck -y /dev/sda1
- D. rm -Rf ~/.*
Answer: A
Explanation:
Reference:
https://www.linuxtechi.com/11-df-command-examples-in-linux/
NEW QUESTION 72
Which of the following servers provides encrypted tunnel SOCKS services?
- A. VPN
- B. SSH
- C. CA
- D. SNMP
Answer: B
NEW QUESTION 73
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hostsand receives the following output:
127.0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?
- A. Modify the /etc/hostsfile, and add the ipv6 localhostentry to the file.
- B. Modify the /etc/hostsfile, and add the ipv4 localhostentry to the file.
- C. Modify the /etc/hostsfile, and add the 0.0.0.0 localhostentry to the file.
- D. Modify the /etc/hostsfile, and add the ::1 localhostentry to the file.
Answer: D
NEW QUESTION 74
A Linux user needs to connect to a remote email server named mail.foo.com through the SMTP port.
Which of the following commands will accomplish this task?
- A. traceroute mail.foo.com 25
- B. traceroute mail.foo.com 110
- C. netcat mail.foo.com 25
- D. netcat mail.foo.com 110
Answer: C
NEW QUESTION 75
A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain.
Which of the following should the administrator run to have the command prompt consistently labeled as Server1 rather than localhost.localdomain?
- A. echo "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts
- B. hostnamectl set-hostname Server1.localdomain --static
- C. hostnamectl set-hostname "Server1" --pretty
- D. host Server1
- E. hostnamectl set-hostname Server1 --transient
Answer: C
NEW QUESTION 76
A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:
Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?
- A. find . -name /home/User3 -print
- B. du -sh /home/User/
- C. df -k /home/User3/files.txt
- D. du -a /home/User3/*
Answer: B
Explanation:
Explanation/Reference: https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space
NEW QUESTION 77
An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit -m "changed the property file" server.property. Which of the following commands did the engineer fail to perform?
- A. git add server.property
- B. git push server.property
- C. git merge server.property
- D. git init server.property
Answer: B
Explanation:
Reference:
https://www.earthdatascience.org/workshops/intro-version-control-git/basic-git-commands/
NEW QUESTION 78
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?
- A. Set USERCTL to yes and ONBOOT to no.
- B. Set NETMASK to 255.255.0.0 and ONBOOT to yes.
- C. Set BOOTPROTO to BOOTP and USERCTL to yes.
- D. Set BOOTPROTO to NONE and ONBOOT to yes.
Answer: B
NEW QUESTION 79
A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?
- A. systemctl stop httpd && systemctl hide httpd
- B. systemctl disable httpd && systemctl mask httpd
- C. systemctl disable httpd && systemctl hide httpd
- D. systemctl stop httpd && systemctl mask httpd
Answer: D
Explanation:
Explanation
NEW QUESTION 80
A systems administrator is implementing disk quotas on /home. During the process, the administrator receives the following error:
Cannot find filesystem to check or filesystem not mounted with user quota option.
Which of the following is the correct order of steps the administrator should follow to resolve this error?
- A. 1. Assign user quota policies.
2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
3. Create the quota database files and generate the disk usage table.
4. Remount /home. - B. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
2. Create the quota database files and generate the disk usage table.
3. Remount /home.
4. Assign user quota policies. - C. 1. Create the quota database files and generate the disk usage table.
2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
3. Remount /home.
4. Assign user quota policies. - D. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
2. Remount /home.
3. Create the quota database files and generate the disk usage table.
4. Assign user quota policies.
Answer: D
Explanation:
Reference:
25954/
NEW QUESTION 81
A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?
- A. usermod -u user -G root
- B. pam_tally2 --user=user --reset
- C. chage -1 user=user --reset
- D. passwd -u user -G root
Answer: B
Explanation:
Reference:
https://www.tecmint.com/use-pam_tally2-to-lock-and-unlock-ssh-failed-login-attempts/
NEW QUESTION 82
A junior Linux administrator is performing version control on a Git repository. The administrator is given a list of tasks to complete:
List the currently installed Git release.
Show the status reporting of the clone.
Which of the following commands would allow the administrator to complete these tasks? (Choose two.)
- A. git --version
- B. git --help
- C. git clone --progress
- D. git clone --shared
- E. git clone --recursive
- F. git clone --dissociate
Answer: B,C
NEW QUESTION 83
......
Systems Operation and Maintenance
Here, students should be well conversant with the following concepts:
- Conducting software installations, updates, removals, and configurations;
- Managing services like Systemd & InitV;
- Creating, modifying, and redirecting files;
- Managing users and groups including query users, disk quotas, and profiles.
- Summarizing and explaining server roles like Linux;
- Explaining the role of Linux devices;
- Comparing and contrasting the graphical user interfaces of a Linux system.
Updated Verified XK0-004 dumps Q&As - Pass Guarantee or Full Refund: https://www.lead2passexam.com/CompTIA/valid-XK0-004-exam-dumps.html
Updated Certification Exam XK0-004 Dumps - Practice Test Questions: https://drive.google.com/open?id=1-za948rEZYUeo7wDflfc726qP7pkmud9