Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

NO: 12:

A network administrator issues the dig www.comptia.org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?

A.

/etc/resolv.conf

B.

/etc/hosts

C.

/etc/sysconfig/network-scripts

D.

/etc/nsswitch.conf

A systems administrator is customizing a new Linux server. Which of the following settings for umask would ensure that new files have the default permissions of -rw-r--r--?

A.

0017

B.

0027

C.

0038

D.

0640

A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell server and ensure the originating IP address receives a response that a firewall is blocking the connection. Which of the following commands can be used to accomplish this task?

A.

iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j DROP

B.

iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j RETURN

C.

iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j REJECT

D.

iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j QUEUE

A network administrator issues the dig www.foo.com command and receives an NXDOMAIN response. Which of the following files should the administrator check first?

A.

/etc/resolv.conf

B.

/etc/hosts

C.

/etc/sysconfig/network-scripts

D.

/etc/nsswitch.conf

A Linux systems administrator is trying to execute a particular shell script on a server. The administrator reviews the following outputs:

shell

$ ./startup.sh

bash: ./startup.sh: Permission denied

$ ls -l startup.sh

-rw-rw-r-- 1 companyabc companyabc 18 October 15:35 startup.sh

Which of the following commands should the administrator use to allow the script to run?

A.

chown rootstartup.sh

B.

chmod 750 startup.sh

C.

chmod -x startup.sh

D.

chmod 400 startup.sh

A network administrator issues the dig ww. comptia. org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?

A.

/etc/resolv.conf

B.

/etc/hosts

C.

/etc/sysconfig/network-scripts

D.

/etc/nsswitch.conf

An administrator has generated an RSA SSH key pair to log in to a remote server. After copying the public key and attempting to log in, the administrator sees the following message:

admin@192.168.10.50: Permission denied (publickey,password)

After seeing the message, the administrator attempts to connect using ssh -v admin@192.168.10.50 and notices the following debug output:

debug1: send_pubkey_test: no mutual signature algorithm

Which of the following actions should the administrator take first to remediate this issue?

A.

Issue systemctl restart sshd on the local server.

B.

Create a new key pair by running ssh-keygen -t ecdsa.

C.

Set PermitRootLogin yes in the /etc/ssh/sshd_config file.

D.

Update permissions on the /home/admin/.ssh directory to 700 on the remote server.

A Linux engineer receives the following notification from a system:

cp: cannot create regular file '/app/appdata.tar*': No space left on device

The engineer obtains the following output:

[root@host ~]# df -i /app

Filesystem Inodes IUsed IFree Mounted on

/dev/vdb 2048 2048 0 /app

bash

[root@host ~]# df -h /app

Filesystem Size Used Avail Use% Mounted on

/dev/vdb 2.0G 6.1M 1.9G 1% /app

Which of the following describes the state of the filesystem based on this output?

A.

The filesystem was mounted in read-only mode.

B.

The filesystem has depleted the available inodes.

C.

The filesystem is not mounted in the correct location.

D.

The filesystem has consumed the available space.

An administrator would like to list all current containers, regardless of their running state. Which of the following commands would allow the administrator to accomplish this task?

A.

docker ps -a

B.

docker list

C.

docker image ls

D.

docker inspect image

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?

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.