Pass the CompTIA Linux+ XK0-005 Questions and answers with CertsForce

Viewing page 6 out of 15 pages
Viewing questions 51-60 out of questions
Questions # 51:

An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?

Options:

A.

p


B.

r


C.

bb


D.

A


E.

i


Expert Solution
Questions # 52:

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?

Options:

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


Expert Solution
Questions # 53:

An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fails.

The administrator executes:

nslookup -querytype=AAAA www.comptia.org

Can't find www.comptia.org: No answer

The workstation has a static entry in /etc/hosts:

104.18.99.101 www.comptia.org

Which of the following is the most likely cause?

Options:

A.

The static entry needs to be removed from /etc/hosts.


B.

The remote website does not support IPv6, and the workstation requires it.


C.

The firewall needs to be modified to allow outbound HTTP and HTTPS.


D.

The nameserver in /etc/resolv.conf needs to be updated to 8.8.8.8.


Expert Solution
Questions # 54:

A Linux administrator logs in to a system and identifies that an important backup has been started. The backup process is consuming a considerable amount of CPU time but needs to continue. Which of the following should the administrator use to reduce the impact this process has on other services?

Options:

A.

renice -n 15 -p


B.

nice -n 15 -p


C.

renice -n -15 -p


D.

nice -n -15 -p


Expert Solution
Questions # 55:

An administrator added the port 2222 for the SSH server on myhost and restarted the SSH server. The administrator noticed issues during the startup of the service. Given the following outputs:

Which of the following commands will fix the issue?

Options:

A.

semanage port -a -t ssh_port_t -p tcp 2222


B.

chcon system_u:object_r:ssh_home_t /etc/ssh/*


C.

iptables -A INPUT -p tcp -- dport 2222 -j ACCEPT


D.

firewall-cmd -- zone=public -- add-port=2222/tcp


Expert Solution
Questions # 56:

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?

Options:

A.

/etc/resolv.conf


B.

/etc/hosts


C.

/etc/sysconfig/network-scripts


D.

/etc/nsswitch.conf


Expert Solution
Questions # 57:

Which of the following is a way to enable a production web server's communications with strong encryption and identity verification?

Options:

A.

Creating a key pair using ssh-keygen and using the generated key pair to secure the HTTPS communication


B.

Creating a private key locally using openssl, creating a certificate request, sending the request to an external certification provider, and using the provided certificate for HTTPS communication


C.

Creating a 4096-bytes or longer self-signed certificate using openssl and using it to secure HTTPS communication


D.

Creating a secret file using /dev/random as a source and using the generated file for HTTPS communication


Expert Solution
Questions # 58:

A Linux administrator discovers that a configured schedule is not running properly and needs to re-create the schedule. The task should run every Monday at 13:30 but only during the months of February, May, August, and November. Which of the following options should the administrator use?

Options:

A.

OnCalendar=Mon -2,5,8,11-13:30:00


B.

OnCalendar=-FEB,-MAY,-AUG,-NOV Mon 13:30:00


C.

OnCalendar=*-2,5,8,11 13:30:00 Mon


D.

OnCalendar=Mon *-FEB *-MAY *-AUG *-NOV 13:30:00


Expert Solution
Questions # 59:

Which of the following best describes JSON?

Options:

A.

A programming language that developers use to build dynamic websites


B.

An open-source platform that facilitates the creation and administration of isolated environments


C.

A file format for exchanging information or data between systems


D.

A software-based technique that allows a computer to simulate one or more machines so they appear to be real


Expert Solution
Questions # 60:

An administrator made a change to a system’s network configuration. Which of the following best represents what the administrator should do to have the new configuration take effect?

Options:

A.

systemctl restart networkd


B.

systemctl enable networkd


C.

systemctl status networkd


D.

systemctl isolate networkd


Expert Solution
Viewing page 6 out of 15 pages
Viewing questions 51-60 out of questions