XK0-005
Free trial
Verified
Question 1
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 version of this file?
- 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
Question 2
A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented:
Based on the output above, which of following is the MOST probable cause of the issue?
- A: The address ac:00:11:22:33:cd is not a valid Ethernet address.
- B: The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
- C: The network interface eth0 is using an old kernel module.
- D: The network interface cable is not connected to a switch.
Question 3
A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?
- A: iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
- B: iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
- C: iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
- D: iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT
Question 4
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: nslookup
- B: rsynс
- C: netstat
- D: host
Question 5
A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration:
Which of the following is MOST likely the cause of the issue?
- A: An internal-only DNS server is configured.
- B: The IP netmask is wrong for ens3.
- C: Two default routes are configured.
- D: The ARP table contains incorrect entries.
Question 6
A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?
- A: iptables -F INPUT -j 192.168.10.50 -m DROP
- B: iptables -A INPUT -s 192.168.10.30 -j DROP
- C: iptables -i INPUT --ipv4 192.168.10.50 -z DROP
- D: iptables -j INPUT 192.168.10.50 -p DROP
Question 7
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)
- A: df -h /data
- B: mkfs.ext4 /dev/sdc1
- C: fsck /dev/sdc1
- D: fdisk -l /dev/sdc1
- E: echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
- F: echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
Question 8
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: df
- C: mount
- D: du
- E: fdisk
- F: dd
- G: ls
Question 9
A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?
- A: fg
- B: su
- C: bg
- D: ed
Question 10
A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:
Which of the following commands will the administrator most likely run NEXT?
- A: vmstat
- B: strace
- C: htop
- D: lsof
Question 11
Which of the following technologies provides load balancing, encryption, and observability in containerized environments?
- A: Virtual private network
- B: Sidecar pod
- C: Overlay network
- D: Service mesh
Question 12
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: grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
- B: cat /etc/systemd/journald.conf | awk '(print $1,$3)'
- C: sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/ˆ#//q' /etc/systemd/journald.conf
- D: journalctl --list-boots && systemctl restart systemd-journald.service
Question 13
A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?
- A: podman run -d -p 443:8443 httpd
- B: podman run -d -p 8443:443 httpd
- C: podman run –d -e 443:8443 httpd
- D: podman exec -p 8443:443 httpd
Question 14
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 IP address 0.0.0.0 is not valid.
- B: The application is listening on the loopback interface.
- C: The application is listening on port 1234.
- D: The application is not running.
Question 15
A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:
The administrator runs grep db.example.com /etc/hosts and receives the following output:
Given this scenario, which of the following should the administrator do to address this issue?
- A: Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
- B: Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
- C: Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
- D: Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.
Question 16
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: The name www.comptia.org does not point to a valid IP address.
- B: The server 192.168.168.53 is unreachable.
- C: No default route is set on the server.
- D: The network interface eth0 is disconnected.
Question 17
A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?
- A: gedit & disown
- B: kill 9 %1
- C: fg %1
- D: bg %1 job name
Question 18
A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:
Given there is a single CPU in the sever, which of the following is causing the slowness?
- A: The system is running out of swap space.
- B: The CPU is overloaded.
- C: The memory is exhausted.
- D: The processes are paging.
Question 19
Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:
Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?
- A: chattr +i file
- B: chown it:finance file
- C: chmod 666 file
- D: setfacl -m g:finance:rw file
Question 20
A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?
- A: Create a unit file in the /etc/default/ directory. systemctl enable cleanup systemctl is-enabled cleanup
- B: Create a unit file in the /etc/ske1/ directory. systemctl enable cleanup systemctl is-enabled cleanup
- C: Create a unit file in the /etc/systemd/system/ directory. systemctl enable cleanup systemctl is-enabled cleanup
- D: Create a unit file in the /etc/sysctl.d/ directory. systemctl enable cleanup systemctl is-enabled cleanup
Question 21
A Linux system is failing to boot. The following error is displayed in the serial console:
[[1;33mDEPEND[Om] Dependency failed for /data.
[[1;33mDEPEND[Om] Dependency failed for Local File Systems
...
Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode.
Give root password for maintenance
(or type Control-D to continue}
Which of the following files will need to be modified for this server to be able to boot again?
- A: /etc/mtab
- B: /dev/sda
- C: /etc/fstab
- D: /ete/grub.conf
Question 22
A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?
- A: /etc/ssh/sshd_config
- B: /etc/ssh/moduli
- C: ~/.ssh/config
- D: ~/.ssh/authorized_keys
Question 23
A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?
- A: systemctl stop sshd
- B: systemctl mask sshd
- C: systemctl reload sshd
- D: systemctl start sshd
Question 24
A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?
- A: docker run -ti app /bin/sh
- B: podman exec -ti app /bin/sh
- C: podman run -d app /bin/bash
- D: docker exec -d app /bin/bash
Question 25
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: netstat -r eth1
- C: ss -ti eth1
- D: ip link show eth1
Free preview mode
Enjoy the free questions and consider upgrading to gain full access!