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

Viewing page 10 out of 15 pages
Viewing questions 91-100 out of questions
Questions # 91:

A systems administrator needs to disable root login for SSH. Which of the following commands should the administrator use?

Options:

A.

touch /etc/ssh/sshd_config | awk 's/PermitRootLoginX yes/PermitRootLoginX no/'


B.

sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config


C.

touch /etc/ssh/sshd_config | print* 1PermitRootLogin/PermitRootLogin no/'


D.

cat /etc/ssh/sshd_config | grep 's/PermitRootLogin yes/PermitRootLogin no/'


Expert Solution
Questions # 92:

A systems administrator is deploying a web server using the following code:

pgsql

name "Web Server"

description "The role contains nodes, which act as a web server"

run_list "recipe[ntp]"

default_attributes "ntp" => {

"ntpdate" => {

"disable" => true

}

}

Which of the following technologies is the administrator using to create this web server?

Options:

A.

Chef


B.

Ansible


C.

Puppet


D.

Terraform


Expert Solution
Questions # 93:

A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Which of the following files should the administrator remove? (Select two).

Options:

A.

~/.ssh/authorized_keys


B.

~/.ssh/known_hosts


C.

/etc/ssh/ssh_config


D.

~/.ssh/config


E.

/etc/ssh/sshd_config


F.

/etc/ssh/ssh_host_rsa_key.pub


Expert Solution
Questions # 94:

Which of the following options represents disk mirroring?

Options:

A.

RAID 0


B.

RAID 1


C.

RAID 5


D.

RAID 6


Expert Solution
Questions # 95:

An administrator thinks that the user Joe may be running an unauthorized process on a Linux server. Which of the following commands should the administrator run to confirm this idea?

Options:

A.

lsof -p 'Joe'


B.

top -u 'Joe'


C.

jobs -n 'Joe'


D.

ps -ax 'Joe'


Expert Solution
Questions # 96:

The administrator comptia is not able to perform privileged functions on a newly deployed system. Given the following command outputs:

Which of the following is the reason that the administrator is unable to perform the assigned duties?

Options:

A.

The administrator needs a password reset.


B.

The administrator is not a part of the correct group.


C.

The administrator did not update the sudo database.


D.

The administrator's credentials need to be more complex.


Expert Solution
Questions # 97:

Which of the following is the main purpose of SSO?

Options:

A.

To allow a user to authenticate once and have access to multiple applications or systems without having to log in again


B.

To add an extra layer of protection, reducing the risk of unauthorized access, requiring more than just a password to access


C.

To be an essential component for managing authentication, authorization, and identity information


D.

To serve as an information protection mechanism that protects identities with administrative access


Expert Solution
Questions # 98:

A Linux administrator is troubleshooting a systemd mount unit file that is not working correctly. The file contains:

[root@system] # cat mydocs.mount

[Unit]

Description=Mount point for My Documents drive

[Mount]

What=/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34

Where=/home/user1/My Documents

Options=defaults

Type=xfs

[Install]

WantedBy=multi-user.target

The administrator verifies the drive UUID correct, and user1 confirms the drive should be mounted as My Documents in the home directory. Which of the following can the administrator

do to fix the issues with mounting the drive? (Select two).

Options:

A.

Rename the mount file to home-user1-My\x20Documents.mount.


B.

Rename the mount file to home-user1-my-documents.mount.


C.

Change the What entry to /dev/drv/disk/by-uuid/94afc9b2\-ac34\-ccff\-88ae\-297ab3c7ff34.


D.

Change the Where entry to Where=/home/user1/my\ documents.


E.

Change the Where entry to Where=/home/user1/My\x20Documents.


F.

Add quotes to the What and Where entries, such as What="/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34" and Where="/home/user1/My Documents".


Expert Solution
Questions # 99:

A developer needs to launch an Nginx image container, name it Web001, and ex-pose port 8080 externally while mapping to port 80 inside the container. Which of the following commands will accomplish this task?

Options:

A.

docker exec —it -p 8080: 80 ——name Web001 nginx


B.

docker load -it -p 8080:80 ——name Web001 nginx


C.

docker run -it -P 8080:80 ——name Web001 nginx


D.

docker pull -it -p 8080:80 —name Web00l nginx


Expert Solution
Questions # 100:

A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?

Options:

A.

find . -type f -print | xrags grep -ln denied


B.

find . -type f -print | xrags grep -nv denied


C.

find . -type f -print | xrags grep -wL denied


D.

find . -type f -print | xrags grep -li denied


Expert Solution
Viewing page 10 out of 15 pages
Viewing questions 91-100 out of questions