[Mar 30, 2023] XK0-005 Free Exam Questions with Quality Guaranteed [Q101-Q126]

Share

[Mar 30, 2023] XK0-005 Free Exam Questions with Quality Guaranteed

 XK0-005 Free Exam Files Downloaded Instantly


CompTIA XK0-005 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Given a scenario, manage files and directories
  • Kubernetes benefits and application use cases
Topic 2
  • File and directory operations
  • Given a scenario, perform basic version control using Git
Topic 3
  • Summarize the purpose and use of security best practices in a Linux environment
  • Mounting local and remote devices
Topic 4
  • Given a scenario, create simple shell scripts to automate common tasks
  • Given a scenario, implement identity management
Topic 5
  • Given a scenario, manage software configurations
  • Given a scenario, analyze and troubleshoot storage issues
Topic 6
  • Given a scenario, use the appropriate networking tools or configuration files
  • Summarize Linux fundamentals
Topic 7
  • Network configuration issues
  • Relative and absolute paths
  • Common firewall technologies
Topic 8
  • Given a scenario, configure and use the appropriate processes and services
  • Managing public key infrastructure (PKI) certificates
Topic 9
  • Given a scenario, perform basic container operations
  • Scripting, Containers, and Automation
Topic 10
  • Given a scenario, analyze and troubleshoot user access and file permissions
  • Given a scenario, apply the appropriate access controls
Topic 11
  • Given a scenario, configure and manage storage using the appropriate tools
  • Given a scenario, analyze and troubleshoot network resource issues
Topic 12
  • Configure common system services
  • Updating configuration files
  • Summarize common infrastructure as code technologies
Topic 13
  • Security-enhanced Linux (SELinux)
  • Copying files between systems
  • Account creation and deletion
Topic 14
  • Continuous integration
  • continuous deployment (CI
  • CD)
  • Storage area network (SAN)
  • network-attached storage (NAS)
Topic 15
  • Given a scenario, configure and execute remote connectivity for system management
  • Given a scenario, implement and configure firewalls
Topic 16
  • Given a scenario, use systemd to diagnose and resolve common problems with a Linux system
  • Monitoring storage space and disk usage

 

NEW QUESTION 101
While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:

Which of the following commands should the administrator use to terminate all of the identified processes?

  • A. killall -9 -upload*.sh"
  • B. skill -9 "upload*.sh"
  • C. pkill -9 -f "upload*.sh"
  • D. kill -9 "upload*.sh"

Answer: A

 

NEW QUESTION 102
A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?

  • A. docker images rmi --all
  • B. docker push images -a
  • C. docker rmi -a images
  • D. docker images prune -a

Answer: D

 

NEW QUESTION 103
A Linux administrator is reviewing changes to a configuration file that includes the following section:

The Linux administrator is trying to select the appropriate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?

  • A. YAML
  • B. XML
  • C. Markdown
  • D. JSON

Answer: A

 

NEW QUESTION 104
After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?

  • A. systemctl stop
  • B. systemctl status
  • C. systemctl daemon-reload
  • D. systemctl reinstall

Answer: C

 

NEW QUESTION 105
A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server.
To troubleshoot the issue, the systems administrator runs netstat and receives the following output:

Based on the information above, which of the following is causing the issue?

  • A. The application is not running.
  • B. The application is listening on port 1234.
  • C. The IP address 0.0.0.0 is not valid.
  • D. The application is listening on the loopback interface.

Answer: D

Explanation:
The server is in a "Listen" state on port 9943 using its loopback address. The "1234" is a process-id

 

NEW QUESTION 106
A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?

  • A. systemctl cancel nginx
  • B. systemctl disable nginx
  • C. systemctl mask nginx
  • D. systemctl stop nginx

Answer: C

 

NEW QUESTION 107
A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?

  • A. sysctl -w net.ipv4.ip_forward=1
  • B. systemctl start ipv4_forwarding
  • C. echo 1 > /proc/sys/net/ipv4/ipv_forward
  • D. firewall-cmd --enable ipv4_forwarding

Answer: A

 

NEW QUESTION 108
An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct

  • A. rpm -qa | grep kernel; uname -a
  • B. yum -y update; shutdown -r now
  • C. cat /etc/centos-release; rpm -Uvh --nodeps
  • D. telinit 1; restorecon -Rv /boot

Answer: A

 

NEW QUESTION 109
A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

  • A. dd of=/dev/sda if=/tmp/sda.img
  • B. dd --if=/dev/sda --of=/tmp/sda.img
  • C. dd if=/dev/sda of=/tmp/sda.img
  • D. dd --of=/dev/sda --if=/tmp/sda.img

Answer: C

 

NEW QUESTION 110
A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?

  • A. rpm -s
  • B. rpm -e
  • C. rpm -d
  • D. rpm -q

Answer: B

 

NEW QUESTION 111
A Linux user reported the following error after trying to connect to the system remotely:
ssh: connect to host 10.0.1.10 port 22: Resource temporarily unavailable The Linux systems administrator executed the following commands in the Linux system while trying to diagnose this issue:

Which of the following commands will resolve this issue?

  • A. firewall-cmd --zone=public --permanent --add-service=22
  • B. systemctl enable firewalld; systemctl restart firewalld
  • C. firewall-cmd --zone=public --permanent --add-port=22/udp
  • D. firewall-cmd --zone=public --permanent --add-service=ssh

Answer: D

 

NEW QUESTION 112
A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:

The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?

  • A. ONFAILURE=mariadb.service
  • B. TRIGGERS=mariadb.service
  • C. WANTEDBY=mariadb.service
  • D. REQUIRES=mariadb.service

Answer: D

 

NEW QUESTION 113
A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen.

Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

  • A. dmidecode -s system-version
  • B. lscpu
  • C. cat /sys/device/system/cpu/possible
  • D. sysctl -a

Answer: B

 

NEW QUESTION 114
A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?

  • A. pvs
  • B. vgs
  • C. fdisk -1
  • D. lvs

Answer: A

 

NEW QUESTION 115
A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?

  • A. tail -c 20
  • B. tail -n 20
  • C. tail -v 20
  • D. tail -l 20

Answer: B

 

NEW QUESTION 116
A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

  • A. lvcreate
    fdisk
    partprobe
  • B. fdisk
    pvcreate
    vgextend
  • C. fdisk
    partprobe
    mkfs
  • D. partprobe
    vgcreate
    lvextend

Answer: B

 

NEW QUESTION 117
A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?

  • A. echo ~/.bashrc
  • B. read ~/.bashrc
  • C. touch ~/.bashrc
  • D. source ~/.bashrc

Answer: D

 

NEW QUESTION 118
A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?

  • A. dnf update
  • B. apt-get upgrade
  • C. yum check-update
  • D. rpm -a
  • E. yum updateinfo

Answer: A

 

NEW QUESTION 119
A Linux administrator is alerted to a storage capacity issue on a server without a specific mount point or directory. Which of the following commands would be MOST helpful for troubleshooting? (Choose two.)

  • A. parted
  • B. ls
  • C. df
  • D. mount
  • E. dd
  • F. du
  • G. fdisk

Answer: C,F

 

NEW QUESTION 120
A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

  • A. The system-daemon services need to be reloaded.
  • B. The checkdiskspace.service needs to be enabled.
  • C. The checkdiskspace.service is not running.
  • D. The OnCalendar schedule is incorrect in the timer definition.

Answer: A

 

NEW QUESTION 121
After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

  • A. passwd -s accountname
  • B. chmod -G system account name
  • C. chgrp system accountname
  • D. chage -E -1 accountname

Answer: D

 

NEW QUESTION 122
A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?

  • A.
  • B.
  • C.
  • D.

Answer: C

 

NEW QUESTION 123
While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:

Which of the following commands should the administrator use to terminate all of the identified processes?

  • A. killall -9 -upload*.sh"
  • B. skill -9 "upload*.sh"
  • C. pkill -9 -f "upload*.sh"
  • D. kill -9 "upload*.sh"

Answer: A

 

NEW QUESTION 124
A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

  • A. /etc/services
  • B. /etc/hostname
  • C. /etc/host.conf
  • D. /etc/ssh/sshd_config

Answer: D

 

NEW QUESTION 125
A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?

  • A. setfacl read /home/web
  • B. chmod -R 400 /home/web
  • C. chown web:web /home/web
  • D. echo "umask 377" >> /home/web/.bashrc

Answer: B

 

NEW QUESTION 126
......

Q&As with Explanations Verified & Correct Answers: https://www.trainingquiz.com/XK0-005-practice-quiz.html

Practice Exams and Training Solutions for Certifications: https://drive.google.com/open?id=1gZuweq4VnCcYV-pxCN6ucvEseMZrEuw6