CompTIA Linux+ XK0-005 – Question050

A systems administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present:

The systems administrator makes additional checks:

Which of the following is the reason the firewall rules are not active?

A.
iptables is conflicting with firewalld.
B. The wrong system target is activated.
C. FIREWALL_ARGS has no value assigned.
D. The firewalld service is not enabled.

Correct Answer: D

CompTIA Linux+ XK0-005 – Question049

Which of the following is a function of a bootloader?

A.
It initializes all the devices that are required to load the OS.
B. It mounts the root filesystem that is required to load the OS.
C. It helps to load the different kernels to initiate the OS startup process.
D. It triggers the start of all the system services.

Correct Answer: A

CompTIA Linux+ XK0-005 – Question048

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

A.
Add the line DenyUsers root to the /etc/hosts.deny file.
B. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
C. Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
D. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.

Correct Answer: B

CompTIA Linux+ XK0-005 – Question047

A Linux systems administrator is setting up a new web server and getting 404 – NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:

Which of the following commands will BEST resolve this issue?

A.
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
B. restorecon -R -v /var/www/html
C. setenforce 0
D. setsebool -P httpd_can_network_connect_db on

Correct Answer: B

CompTIA Linux+ XK0-005 – Question046

A systems administrator is tasked with creating a cloud-based server with a public IP address.
The code is as follows:

Which of the following technologies did the systems administrator use to complete this task?

A.
Puppet
B. Git
C. Ansible
D. Terraform

Correct Answer: D

CompTIA Linux+ XK0-005 – Question044

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

A.
docker image load java:7
B. docker image pull java:7
C. docker image import java:7
D. docker image build java:7

Correct Answer: B

CompTIA Linux+ XK0-005 – Question043

A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:

Which of the following commands can be used to resolve this issue?

A.
chgrp -R 755 data/
B. chmod -R 777 data/
C. chattr -R -i data/
D. chown -R data/

Correct Answer: C

CompTIA Linux+ XK0-005 – Question042

A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

A.
chmod 4744 dev_team.txt
B. chmod 744 –setuid dev_team.txt
C. chmod -c 744 dev_team.txt
D. chmod -v 4744 –suid dev_team.txt

Correct Answer: A

CompTIA Linux+ XK0-005 – Question041

A Linux administrator is troubleshooting the root cause of a high CPU load and average.

Which of the following commands will permanently resolve the issue?

A.
renice -n -20 6295
B. pstree -p 6295
C. iostat -cy 1 5
D. kill -9 6295

Correct Answer: A