Updated PDF (New 2023) Actual CompTIA XK0-005 Exam Questions
Verified XK0-005 Exam Dumps PDF [2023] Access using Actual4dump
NEW QUESTION # 93
A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?
- A. systemctl status firewalld
- B. firewall-cmd -list-services
- C. firewall-cmd -get-services
- D. firewall-cmd -check-config
Answer: B
NEW QUESTION # 94
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?
- A. journalctl --list-boots && systemctl restart systemd-journald.service
- B. cat /etc/systemd/journald.conf | awk '(print $1,$3)'
- C. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
- D. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/#//q' /etc/systemd/journald.conf
Answer: C
NEW QUESTION # 95
A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?
- A. systemctl enable systemd-resolved.service
- B. systemctl mask systemd-resolved.service
- C. systemctl status systemd-resolved.service
- D. systemctl show systemd-resolved.service
Answer: C
NEW QUESTION # 96
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 of=/dev/sda if=/tmp/sda.img
- D. dd if=/dev/sda of=/tmp/sda.img
Answer: D
NEW QUESTION # 97
A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?
- A. kill -9
- B. kill -15
- C. kill -TERM
- D. kill -HUP
- E. kill -1
Answer: D
NEW QUESTION # 98
Which of the following technologies can be used as a central repository of Linux users and groups?
- A. LDAP
- B. SSO
- C. PAM
- D. MFA
Answer: A
NEW QUESTION # 99
A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?
- A. netstat
- B. rsync
- C. nslookup
- D. host
Answer: C
NEW QUESTION # 100
A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?
- A. bzip2 -z
- B. unzip -v
- C. gzip
- D. funzip
Answer: C
NEW QUESTION # 101
Which of the following is a function of a bootloader?
- A. It initializes all the devices that are required to load the OS.
- B. It mounts the root filesystem that is required to load the OS.
- C. It triggers the start of all the system services.
- D. It helps to load the different kernels to initiate the OS startup process.
Answer: A
NEW QUESTION # 102
A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:
Which of the following commands can be used to resolve this issue?
- A. chmod -R 777 data/
- B. chown -R data/
- C. chattr -R -i data/
- D. chgrp -R 755 data/
Answer: C
NEW QUESTION # 103
Which of the following enables administrators to configure and enforce MFA on a Linux system?
- A. PKI
- B. SELinux
- C. Kerberos
- D. PAM
Answer: C
NEW QUESTION # 104
A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?
- A. ifconfig hw eth1
- B. ip link show eth1
- C. ss -ti eth1
- D. netstat -r eth1
Answer: B
NEW QUESTION # 105
A Linux system is failing to start due to issues with several critical system processes. Which of the following options can be used to boot the system into the single user mode? (Choose two.)
- A. Interrupt the boot process in the GRUB menu and add single=user in the kernel line.
- B. Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.
- C. Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line.
- D. Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.
- E. Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.
- F. Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.
Answer: B,E
NEW QUESTION # 106
The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:
Which of the following remediation steps will prevent the web service from running as a privileged user?
- A. Changing the:nulti-user.target in the [Install] section to basic.target
- B. Updating the Environment File line in the [Service] section to/home/webservice/config
- C. Adding the User-webservice to the [Service] section of the service file
- D. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file
Answer: D
NEW QUESTION # 107
A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task''
- A. docker load --name web-01 httpd
- B. docker ps -a --name web-01 httpd
- C. docker run -d --name web-01 httpd
- D. docker builder -f -name web-01 httpd
Answer: C
NEW QUESTION # 108
Which of the following data structures is written in JSON?
A)
B)
C)
D)
- A. Option B
- B. Option D
- C. Option A
- D. Option C
Answer: B
NEW QUESTION # 109
A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?
- A. git branch https://git.company.com/admin/project.git
- B. git clone https://git.company.com/admin/project.git
- C. git checkout https://git.company.com/admin/project.git
- D. git pull https://git.company.com/admin/project.git
Answer: B
NEW QUESTION # 110
Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:
Based on the information above, which of the following is causing the issue?
- A. No default route is set on the server.
- B. The name www.comptia.org does not point to a valid IP address.
- C. The server 192.168.168.53 is unreachable.
- D. The network interface eth0 is disconnected.
Answer: A
NEW QUESTION # 111
A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?
- A. sudo useradd -e 2021-09-30 Project_user
- B. sudo useradd -m -d 2021-09-30 Project_user
- C. sudo modinfo -F 2021-09-30 Project_uses
- D. sudo useradd -c 2021-09-30 Project_user
Answer: A
NEW QUESTION # 112
A systems administrator is investigating why one of the servers has stopped connecting to the internet.
Which of the following is causing the issue?
- A. Wired connection 1 is offline.
- B. The DNS address has been commented out in the configuration file.
- C. No default route is defined.
- D. The search entry in the /etc/resolv.conf file is incorrect.
Answer: B
NEW QUESTION # 113
A Linux engineer needs to download a ZIP file and wants to set the nice of value to -10 for this new process. Which of the following commands will help to accomplish the task?
- A. $ renice -10 wget https://foo.com/installation.zip
- B. $ nice -v -10 wget https://foo.com/installation.zip
- C. $ nice -10 wget https://foo.com/installation.zip
- D. $ renice -v -10 wget https://foo.com/installation.2ip
Answer: C
NEW QUESTION # 114
A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/f stab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?
- A. Remount all the missing filesystems
- B. Mount the filesystem manually.
- C. Create a mount unit and enable it to be started at boot.
- D. Sync the mount units.
Answer: C
NEW QUESTION # 115
A Linux systems administrator needs to copy files and directories from Server A to Server B.
Which of the following commands can be used for this purpose? (Select TWO)
- A. cp
- B. rsyslog
- C. ssh
- D. rsync
- E. scp
- F. reposync
Answer: D,E
NEW QUESTION # 116
......
Try Best XK0-005 Exam Questions from Training Expert Actual4dump: https://whizlabs.actual4dump.com/CompTIA/XK0-005-actualtests-dumps.html