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

Viewing page 7 out of 15 pages
Viewing questions 61-70 out of questions
Questions # 61:

Which of the following paths stores the configuration files in a Linux filesystem?

Options:

A.

/proc


B.

/home


C.

/root


D.

/etc


Expert Solution
Questions # 62:

A systems engineer deploys a new application server, but the server cannot communicate with the back-end database hostname. The engineer confirms that the application server can ping the database server's IP address. Which of the following is the most likely cause of the issue?

Options:

A.

Incorrect DNS servers


B.

Unreachable default gateway


C.

Missing route configuration


D.

Misconfigured subnet mask


Expert Solution
Questions # 63:

A Linux administrator is working with a CPU-intensive program called data-analysis1. The administrator needs to prevent the program from monopolizing CPU resources and ensure that other critical processes are not impacted when the program starts. Which of the following commands would start the program with a reduced level of impact to the system?

Options:

A.

data-analysis1 --nice 15


B.

nice data-analysis1


C.

nice -15 data-analysis1


D.

data-analysis1 & nice +5


Expert Solution
Questions # 64:

A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:

[ root@server ] # id user1

UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)

[ root@server ] # cat /etc/sudoers.d/custom.conf

user1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd

webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart

#%wheel ALL=(ALL) NOPASSWD: ALL

Which of the following would most likely resolve the issue while maintaining a least privilege security model?

Options:

A.

User1 should be added to the wheel group to manage the service.


B.

User1 should have "NOPASSWD:" after the "ALL=" in the custom. conf.


C.

The wheel line in the custom. conf file should be uncommented.


D.

Webadmin should be listed as a group in the custom. conf file.


Expert Solution
Questions # 65:

A Linux administrator is troubleshooting an issue in which users are not able to access https://portal.comptia.org from a specific workstation. The

administrator runs a few commands and receives the following output:

Which of the following tasks should the administrator perform to resolve this issue?

Options:

A.

Update the name server in resolv. conf to use an external DNS server.


B.

Remove the entry for portal . comptia.org from the local hosts file.


C.

Add a network route from the 10.10.10.0/24 to the 192.168.0.0/16.


D.

Clear the local DNS cache on the workstation and rerun the host command.


Expert Solution
Questions # 66:

A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

Question # 66

Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

Options:

A.

Log out other user sessions because only one is allowed at a time.


B.

Enable PAM and configure the SSH module.


C.

Modify the SSH port to use 2222.


D.

Use a key to log in as root over SSH.


Expert Solution
Questions # 67:

Which of the following should be used to verify the integrity of a file?

Options:

A.

sha256sum


B.

fsck


C.

gpg —d


D.

hashcat


Expert Solution
Questions # 68:

A DevOps engineer wants to work on a snapshot of the infrastructure as code configuration. Which of the following commands should the engineer use to accomplish this task?

Options:

A.

git pull


B.

git push


C.

git branch


D.

git tag


Expert Solution
Questions # 69:

A systems administrator is reconfiguring existing user accounts in a Linux system. Which of the following commands should the administrator use to include "myuser" in the finance group?

Options:

A.

groupadd finance myuser


B.

groupmod finance myuser


C.

useradd -g finance myuser


D.

usermod -aG finance myuser


Expert Solution
Questions # 70:

An administrator is trying to terminate a process that is not responding. Which of the following commands should the administrator use in order to force the termination of the process?

Options:

A.

kill PID


B.

kill -1 PID


C.

kill -9 PID


D.

kill -15 PID


Expert Solution
Viewing page 7 out of 15 pages
Viewing questions 61-70 out of questions