Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free CompTIA XK0-005 Practice Exam with Questions & Answers | Set: 8

Questions 71

A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

Options:
A.

iptables -F INPUT -j 192.168.10.50 -m DROP

B.

iptables -A INPUT -s 192.168.10.30 -j DROP

C.

iptables -i INPUT --ipv4 192.168.10.50 -z DROP

D.

iptables -j INPUT 192.168.10.50 -p DROP

CompTIA XK0-005 Premium Access
Questions 72

A Linux systems administrator is working to obtain the installed kernel version of several hundred systems. Which of the following utilities should the administrator use for this task?

Options:
A.

Ansible

B.

Git

C.

Docker

D.

Bash

Questions 73

A Linux administrator is updating the file that contains the addresses of the software and update repositories on an Ubuntu system. Which of the following files needs to be edited to accomplish this task?

Options:
A.

/etc/apt/sources.list

B.

/etc/apt/listchanges.conf

C.

/etc/yum/yum.conf

D.

/etc/dnf/dnf.conf

Questions 74

A Linux administrator needs to run a web application on a server that requires the use of a desktop web browser to enter the final configuration information. The administrator determines the server is running in multi-user mode. The administrator verifies that a web browser is installed on the server and that it has a display manager installed. Which of the following commands will best allow the administrator to temporarily use the web browser on the server?

Options:
A.

sudo systemctl isolate graphical.target

B.

sudo systemctl set-default runlevel5.target

C.

sudo systemctl restart gdm

D.

sudo systemctl --no-wall rescue

Questions 75

Which of the following enables administrators to configure and enforce MFA on a Linux system?

Options:
A.

Kerberos

B.

SELinux

C.

PAM

D.

PKI

Questions 76

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.

Questions 77

A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?

Options:
A.

Cloud-init

B.

Bash

C.

Docker

D.

Sidecar

Questions 78

Joe, a user, is unable to log in to the system. The Linux administrator checks the /etc/passwd file and reviews the following output:

Joe:x:1002:1002::/home/Joe:/sbin/nologin

Which of the following should the administrator do to fix this issue?

Options:
A.

Remove the x entry in the /etc/passwd file for Joe

B.

Change the /sbin/nologin entry to /bin/sh for Joe

C.

Issue the usermod -l Joe command

D.

Ensure that a corresponding entry is in the /etc/shadow file for Joe

Questions 79

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?

Options:
A.

rebase

B.

tag

C.

commit

D.

push

Questions 80

Which of the following directories contains binaries that only a root user should run?

Options:
A.

/sbin

B.

/bin

C.

/root

D.

/lib