Certbus > CompTIA > Linux+ > XK0-005 > XK0-005 Online Practice Questions and Answers

XK0-005 Online Practice Questions and Answers

Questions 4

A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the Linux administrator choose for the new design?

A. Docker

B. On-premises systems

C. Cloud-based systems

D. Kubernetes

Browse 285 Q&As
Questions 5

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.

Browse 285 Q&As
Questions 6

A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?

A. sudo fdisk /dev/sda

B. sudo fdisk -s /dev/sda

C. sudo fdisk -l

D. sudo fdisk -h

Browse 285 Q&As
Questions 7

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 builder -f --name web-01 httpd

B. docker load --name web-01 httpd

C. docker ps -a --name web-01 httpd

D. docker run -d --name web-01 httpd

Browse 285 Q&As
Questions 8

When trying to log in remotely to a server, a user receives the following message:

The server administrator is investigating the issue on the server and receives the following outputs:

Which of the following is causing the issue?

A. The wrong permissions are on the user's home directory.

B. The account was locked out due to three failed logins.

C. The user entered the wrong password.

D. The user has the wrong shell assigned to the account.

Browse 285 Q&As
Questions 9

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. $ nice -v -10 wget https://foo.com/installation.zip

B. $ renice -v -10 wget https://foo.com/installation.2ip

C. $ renice -10 wget https://foo.com/installation.zip

D. $ nice -10 wget https://foo.com/installation.zip

Browse 285 Q&As
Questions 10

A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?

A. rebase

B. tag

C. commit

D. push

Browse 285 Q&As
Questions 11

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. apt-get upgrade

B. rpm -a

C. yum updateinfo

D. dnf update

E. yum check-update

Browse 285 Q&As
Questions 12

Joe, a user, is unable to log in to the Linux system. Given the following output:

Which of the following commands would resolve the issue?

A. usermod -s /bin/bash joe

B. pam_tally2 -u joe -r

C. passwd -u joe

D. chage -E 90 joe

Browse 285 Q&As
Questions 13

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.

Browse 285 Q&As
Questions 14

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 -v 20

B. tail -n 20

C. tail -c 20

D. tail -l 20

Browse 285 Q&As
Questions 15

A systems administrator is tasked with changing the default shell of a system account in order to disable iterative logins. Which of the following is the BEST option for the administrator to use as the new shell?

A. /sbin/nologin

B. /bin/sh

C. /sbin/setenforce

D. /bin/bash

Browse 285 Q&As
Questions 16

A new disk was presented to a server as /dev/sdd. The systems administrator needs to check if a partition table is on that disk. Which of the following commands can show this information?

A. lsscsi

B. fdisk

C. blkid

D. partprobe

Browse 285 Q&As
Questions 17

A systems administrator wants to upgrade /bin/someapp to a new version, but the administrator does not know the package name. Which of the following will show the RPM package name that provides that binary file?

A. rpm -qf /bin/someapp

B. rpm -Vv /bin/someapp

C. rpm -p /bin/someapp

D. rpm -i /bin/someapp

Browse 285 Q&As
Questions 18

A Linux administrator has physically added a new RAID adapter to a system. Which of the following commands should the Linux administrator run to confirm that the device has been recognized? (Choose two.)

A. rmmod

B. ls -ll /etc

C. lshw -class disk

D. pvdisplay

E. rmdir /dev

F. dmesg

Browse 285 Q&As
Exam Code: XK0-005
Exam Name: CompTIA Linux+ Certification Exam
Last Update: Apr 14, 2024
Questions: 285 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99