Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70

Pass the CompTIA Linux+ XK0-006 Questions and answers with Dumpstech

Exam XK0-006 Premium Access

View all detail and faqs for the XK0-006 exam

Practice at least 50% of the questions to maximize your chances of passing.
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

Which of the following Ansible components contains a list of hosts and host groups?

Options:

A.

Fact

B.

Inventory

C.

Playbook

D.

Collection

Questions # 12:

Which of the following commands should an administrator use to see a full hardware inventory of a Linux system?

Options:

A.

dmidecode

B.

lsmod

C.

dmesg

D.

lscpu

Questions # 13:

Which of the following can reduce the attack surface area in relation to Linux hardening?

Options:

A.

Customizing the log-in banner

B.

Reducing the number of directories created

C.

Extending the SSH startup timeout period

D.

Enforcing password strength and complexity

Questions # 14:

Users cannot access a server after it has been restarted. At the server console, the administrator runs the following commands;

Question # 14

Which of the following is the cause of the issue?

Options:

A.

The DNS entry does not have a valid IP address.

B.

The SSH service has not been allowed on the firewall.

C.

The server load average is too high.

D.

The wrong protocol is being used to connect to the web server.

Questions # 15:

In the echo "profile-$num-$name" line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expanded?

Options:

A.

echo "profile-$(num)-$name"

B.

echo 'profile-$num-$name'

C.

echo "profile-'$num'-$name"

D.

echo "profile-${num}-$name"

Questions # 16:

An administrator wants to search a file named myFile and look for all occurrences of strings containing at least five characters, where characters two and five are i, but character three is not b. Which of the following commands should the administrator execute to get the intended result?

Options:

A.

grep .a*^b-.a myFile

B.

grep .a., [a] myFile

C.

grepa^b*a myFile

D.

grep .i[^b].i myFile

Questions # 17:

While hardening a system, an administrator runs a port scan with Nmap, which returned the following output:

Question # 17

Which of the following is the best way to address this security issue?

Options:

A.

Configuring a firewall to block traffic on port 23 on the server

B.

Changing the system administrator's password to prevent unauthorized access

C.

Closing port 80 on the network switch to block traffic

D.

Disabling and removing the Telnet service on the server

Questions # 18:

An administrator receives reports that a web service is not responding. The administrator reviews the following outputs:

Question # 18

Which of the following is the reason the web service is not responding?

Options:

A.

The private key needs to be renamed from server.crt to server, key so the service can find it.

B.

The private key does not match the public key, and both keys should be replaced.

C.

The private key is not in the correct location and needs to be moved to the correct directory.

D.

The private key has the incorrect permissions and should be changed to 0755 for the service.

Questions # 19:

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

Questions # 20:

A Linux administrator wants to make the enable_auth variable set to 1 and available to the environment of subsequently executed commands. Which of the following should the administrator use for this task?

Options:

A.

let ENABLE_AUTH=1

B.

ENABLE_AUTH=1

C.

ENABLE_AUTH=$(echo $ENABLE_AUTH)

D.

export ENABLE_AUTH=1

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions