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

Viewing page 1 out of 15 pages
Viewing questions 1-10 out of questions
Questions # 1:

A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:

The local machine DNS settings are:

Which of the following commands could the engineer use to query the DNS server to get mail server information?

Options:

A.

dig @example.com 10.10.10.20 a


B.

dig @10.10.10.20 example.com mx


C.

dig @example.com 10.10.10.20 ptr


D.

dig @10.10.10.20 example.com ns


Expert Solution
Questions # 2:

When trying to log in remotely to a server, a user receives the following message:

Question # 2

The server administrator is investigating the issue on the server and receives the following outputs:

Question # 2

Which of the following is causing the issue?

Options:

A.

The wrong permissions are on the user’s home directory.


B.

The account was locked out due to three failed logins.


C.

The user entered the wrong password.


D.

The user has the wrong shell assigned to the account.


Expert Solution
Questions # 3:

A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

Options:

A.

rpm -i wget


B.

rpm -qf wget


C.

rpm -F wget


D.

rpm -V wget


Expert Solution
Questions # 4:

A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few commands and gets the following outputs:

Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?

Options:

A.

Enable the logsearch.service and restart the service.


B.

Increase the TimeoutStartUSec configuration for the logsearch.sevice.


C.

Update the OnCalendar configuration to schedule the start of the logsearch.service.


D.

Update the KillSignal configuration for the logsearch.service to use TERM.


Expert Solution
Questions # 5:

A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:

Which of the following technologies is the administrator using?

Options:

A.

Ansible


B.

Puppet


C.

Chef


D.

Terraform


Expert Solution
Questions # 6:

A systems administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present:

The systems administrator makes additional checks:

Which of the following is the reason the firewall rules are not active?

Options:

A.

iptables is conflicting with firewalld.


B.

The wrong system target is activated.


C.

FIREWALL_ARGS has no value assigned.


D.

The firewalld service is not enabled.


Expert Solution
Questions # 7:

A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

Options:

A.

ls | cpio -iv > cloud.epio


B.

ls | cpio -iv < cloud.epio


C.

ls | cpio -ov > cloud.cpio


D.

ls cpio -ov < cloud.cpio


Expert Solution
Questions # 8:

A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?

Options:

A.

chmod +t /project/access2all


B.

chmod +rws /project/access2all


C.

chmod 2770 /project/access2all


D.

chmod ugo+rwx /project/access2all


Expert Solution
Questions # 9:

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r--. ?

Options:

A.

chmod 755 filename.log


B.

chmod 640 filename.log


C.

chmod 740 filename.log


D.

chmod 744 filename.log


Expert Solution
Questions # 10:

A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

Options:

A.

The checkdiskspace.service is not running.


B.

The checkdiskspace.service needs to be enabled.


C.

The OnCalendar schedule is incorrect in the timer definition.


D.

The system-daemon services need to be reloaded.


Expert Solution
Viewing page 1 out of 15 pages
Viewing questions 1-10 out of questions