Pre-Summer Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

CompTIA XK0-006 - CompTIA Linux+ V8 Exam

Page: 2 / 5
Total 149 questions

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?

A.

let ENABLE_AUTH=1

B.

ENABLE_AUTH=1

C.

ENABLE_AUTH=$(echo $ENABLE_AUTH)

D.

export ENABLE_AUTH=1

A Linux administrator installed a new program inside $HOME/.local/bin and is trying to execute it without using an absolute path. Which of the following should the administrator use for this task?

A.

export PATH=PATH:$HOME/.local/bin

B.

export $PATH=PATH:$HOME/.local/bin

C.

export PATH=$PATH:$HOME/.local/bin

D.

export $PATH=$PATH:$HOME/.local/bin

A Linux server is experiencing slowness. A systems administrator obtains the following output:

top - load average: 2.43, 1.80, 2.32

Tasks: ... 154 zombie

%Cpu(s): 6.2 us, 5.1 sy, 0.0 ni, 79.2 id, 9.1 wa, ...

$ iostat -m 2

%user %nice %system %iowait %steal %idle

4.30 2.02 0.29 70.38 4.00 19.01

Which of the following explains the issue?

A.

The system ran out of swap space.

B.

The CPU is overutilized.

C.

The storage I/O latency is high.

D.

The system needs to be patched.

A systems administrator needs to integrate a new storage array into the company ' s existing storage pool. The administrator wants to ensure that the server is able to detect the new storage array. Which of the following commands should the administrator use to ensure that the new storage array is presented to the systems?

A.

lsscsi

B.

lsusb

C.

lsipc

D.

lshw

Which of the following commands would a Linux administrator use to determine the temperature of a motherboard?

A.

ipmitool

B.

dmidecode

C.

lspci

D.

lm_sensors

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

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

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

A Linux administrator just finished setting up passwordless SSH authentication between two nodes. However, upon test validation, the remote host prompts for a password. Given the following logs:

Which of the following is the most likely cause of the issue?

A.

The SELinux policy is incorrectly targeting the unconf ined_u context.

B.

The administrator forgot to restart the SSHD after creating the authorizedjceys file.

C.

The authorized_keys file has the incorrect root permissions assigned.

D.

The authorized_keys file does not have the correct security context to match SELinux policy.

You are a systems administrator and have created an uncompressed backup of the

application directory. Several hours later, you must restore the application from backup.

INSTRUCTIONS

Within each tab, click on an object to form the appropriate command used to create the

backup and restore the application.

Command objects may only be used once, and not all will be used. Click the arrow to

remove any unwanted objects from your command.

If at any time you would like to bring back the initial state of the simulation, please click

the Reset All button.

A systems administrator manages multiple Linux servers and needs to set up a reliable and secure way to handle the complexity of managing event records on the OS and application levels. Which of the following should the administrator do?

A.

Create an automated process to retrieve logs from the server by demand.

B.

Implement a centralized log aggregation solution.

C.

Configure daily automatic backups of logs to remote storage.

D.

Deploy log rotation procedures to manage the records.

A systems administrator needs to open the DNS TCP port on a Linux system from network 10.0.0.0/24. Which of the following commands should the administrator use for this task?

A.

ufw allow dns/tcp to 10.0.0.0/24

B.

ufw enable 53/tcp from 10.0.0.0/24

C.

ufw allow 53/tcp from 10.0.0.0/24

D.

ufw disable from 10.0.0.0/24