New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the CompTIA Linux+ XK0-005 Questions and answers with CertsForce

Viewing page 6 out of 15 pages
Viewing questions 51-60 out of questions
Questions # 51:

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?

Options:

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


Expert Solution
Questions # 52:

A user created the following script file:

# ! /bin/bash

# FILENAME: /home/user/ script . sh

echo "hello world"

exit 1

However, when the user tried to run the script file using the command "script . sh, an error returned indicating permission was denied. Which of the follow-ing should the user execute in

order for the script to run properly?

Options:

A.

chmod u+x /home/user/script . sh


B.

chmod 600 /home/user/script . sh


C.

chmod /home/user/script . sh


D.

chmod 0+r /horne/user/script. sh


Expert Solution
Questions # 53:

During a security scan, the password of an SSH key file appeared to be too weak and was cracked. Which of the following commands would allow a user to choose a stronger password and set it on the existing SSH key file?

Options:

A.

passwd


B.

ssh


C.

ssh-keygen


D.

pwgen


Expert Solution
Questions # 54:

A user is attempting to log in to a Linux server that has Kerberos SSO ena-bled. Which of the following commands should the user run to authenticate

and then show the ticket grants? (Select TWO).

Options:

A.

kinit


B.

klist


C.

kexec


D.

kioad


E.

pkexec


F.

realm


Expert Solution
Questions # 55:

A systems administrator is notified that the mysqld process stopped unexpectedly. The systems administrator issues the following command:

sudo grep –i -r ‘out of memory’ /var/log

The output of the command shows the following:

kernel: Out of memory: Kill process 9112 (mysqld) score 511 or sacrifice child.

Which of the following commands should the systems administrator execute NEXT to troubleshoot this issue? (Select two).

Options:

A.

free -h


B.

nc -v 127.0.0.1 3306


C.

renice -15 $( pidof mysql )


D.

lsblk


E.

killall -15


F.

vmstat -a 1 4


Expert Solution
Questions # 56:

A systems administrator is encountering performance issues. The administrator runs 3 commands with the following output

The Linux server has the following system properties

CPU: 4 vCPU

Memory: 50GB

Which of the following accurately describes this situation?

Options:

A.

The system is under CPU pressure and will require additional vCPUs


B.

The system has been running for over a year and requires a reboot.


C.

Too many users are currently logged in to the system


D.

The system requires more memory


Expert Solution
Questions # 57:

A systems administrator is enabling LUKS on a USB storage device with an ext4 filesystem format. The administrator runs dmesg and notices the following output:

Given this scenario, which of the following should the administrator perform to meet these requirements? (Select three).

Options:

A.

gpg /dev/sdcl


B.

pvcreate /dev/sdc


C.

mkfs . ext4 /dev/mapper/LUKSCJ001 - L ENCRYPTED


D.

umount / dev/ sdc


E.

fdisk /dev/sdc


F.

mkfs . vfat /dev/mapper/LUKS0001 — L ENCRYPTED


G.

wipefs —a/dev/sdbl


Expert Solution
Questions # 58:

One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a systems administrator is troubleshooting the issue. The following output has been provided:

Given this scenario, which of the following should the administrator do to recover this volume?

Options:

A.

Reboot the server. The volume will automatically go back to linear mode.


B.

Replace the failed drive and reconfigure the mirror.


C.

Reboot the server. The volume will revert to stripe mode.


D.

Recreate the logical volume.


Expert Solution
Questions # 59:

Which of the following tools is BEST suited to orchestrate a large number of containers across many different servers?

Options:

A.

Kubernetes


B.

Ansible


C.

Podman


D.

Terraform


Expert Solution
Questions # 60:

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?

Options:

A.

pam_login.so


B.

pam_access.so


C.

pam_logindef.so


D.

pam_nologin.so


Expert Solution
Viewing page 6 out of 15 pages
Viewing questions 51-60 out of questions