πŸ”

XK0-005 β€” questions

Page 3 of 14 Β· 263 total questions.

Topic 1 Β· Question 42

A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

  • Achmod 4744 dev_team.txt (correct answer)
  • Bchmod 744 --setuid dev_team.txt
  • Cchmod -c 744 dev_team.txt
  • Dchmod -v 4744 --suid dev_team.txt
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: chmod 4744 dev_team.txt

Topic 1 Β· Question 43

A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received: Which of the following commands can be used to resolve this issue?

Exhibit 1 for question 43
  • Achgrp -R 755 data/
  • Bchmod -R 777 data/
  • Cchattr -R -i data/ (correct answer)
  • Dchown -R data/
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: chattr -R -i data/

Topic 1 Β· Question 44

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

  • Adocker image load java:7
  • Bdocker image pull java:7 (correct answer)
  • Cdocker image import java:7
  • Ddocker image build java:7
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: docker image pull java:7

Topic 1 Β· Question 45

A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?

  • ACloud-init (correct answer)
  • BBash
  • CDocker
  • DSidecar
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Cloud-init

Topic 1 Β· Question 46

A systems administrator is tasked with creating a cloud-based server with a public IP address. The code is as follows: Which of the following technologies did the systems administrator use to complete this task?

Exhibit 1 for question 46
  • APuppet
  • BGit
  • CAnsible (correct answer)
  • DTerraform
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Ansible

Topic 1 Β· Question 47

A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands: Which of the following commands will BEST resolve this issue?

Exhibit 1 for question 47
  • Ased -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
  • Brestorecon -R -v /var/www/html (correct answer)
  • Csetenforce 0
  • Dsetsebool -P httpd_can_network_connect_db on
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: restorecon -R -v /var/www/html

Topic 1 Β· Question 48

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

  • AAdd the line DenyUsers root to the /etc/hosts.deny file.
  • BSet PermitRootLogin to no in the /etc/ssh/sshd_config file. (correct answer)
  • CAdd the line account required pam_nologin. so to the /etc/pam.d/sshd file.
  • DSet PubKeyAuthentication to no in the /etc/ssh/ssh_config file.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Set PermitRootLogin to no in the /etc/ssh/sshd_config file.

Topic 1 Β· Question 49

Which of the following is a function of a bootloader?

  • AIt initializes all the devices that are required to load the OS.
  • BIt mounts the root filesystem that is required to load the OS.
  • CIt helps to load the different kernels to initiate the OS startup process. (correct answer)
  • DIt triggers the start of all the system services.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: It helps to load the different kernels to initiate the OS startup process.

Topic 1 Β· Question 50

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?

Exhibit 1 for question 50Exhibit 2 for question 50
  • Aiptables is conflicting with firewalld.
  • BThe wrong system target is activated.
  • CFIREWALL_ARGS has no value assigned.
  • DThe firewalld service is not enabled. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: The firewalld service is not enabled.

Explanation

A firewall enforces traffic policy by permitting or blocking connections based on configured rules.

Topic 1 Β· Question 51

A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?

  • Adocker export
  • Bdocker info
  • Cdocker start
  • Ddocker inspect (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: docker inspect

Topic 1 Β· Question 52

A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following: The Linux administrator attempts to start the timer service but receives the following error message: Which of the following is MOST likely the reason the timer will not start?

Exhibit 1 for question 52Exhibit 2 for question 52
  • AThe checkdiskspace.timer unit should be enabled via systemctl. (correct answer)
  • BThe timers.target should be reloaded to get the new configuration.
  • CThe checkdiskspace.timer should be configured to allow manual starts.
  • DThe checkdiskspace.timer should be started using the sudo command.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The checkdiskspace.timer unit should be enabled via systemctl.

Topic 1 Β· Question 53

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?

  • Arpm -i wget
  • Brpm -qf wget
  • Crpm -F wget
  • Drpm -V wget (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: rpm -V wget

Topic 1 Β· Question 54

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?

Exhibit 1 for question 54Exhibit 2 for question 54
  • Adig @example.com 10.10.10.20 a
  • Bdig @10.10.10.20 example.com mx (correct answer)
  • Cdig @example.com 10.10.10.20 ptr
  • Ddig @10.10.10.20 example.com ns
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: dig @10.10.10.20 example.com mx

Topic 1 Β· Question 55

A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries. Which of the following commands would be BEST to use to accomplish this task?

Exhibit 1 for question 55
  • Achattr +a /opt/app/logs (correct answer)
  • Bchattr +d /opt/app/logs
  • Cchattr +i /opt/app/logs
  • Dchattr +c /opt/app/logs
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: chattr +a /opt/app/logs

Topic 1 Β· Question 56

A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

  • Asystemctl status systemd-resolved.service (correct answer)
  • Bsystemctl enable systemd-resolved.service
  • Csystemctl mask systemd-resolved.service
  • Dsystemctl show systemd-resolved.service
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: systemctl status systemd-resolved.service

Topic 1 Β· Question 58

A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?

  • Arpm -s
  • BrΡ€m -d
  • Crpm -q
  • Drpm -e (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: rpm -e

Topic 1 Β· Question 59

A Linux system fails to start and delivers the following error message: Which of the following commands can be used to address this issue?

Exhibit 1 for question 59
  • Afsck.ext4 /dev/sda1 (correct answer)
  • Bpartprobe /dev/sda1
  • Cfdisk /dev/sda1
  • Dmkfs.ext4 /dev/sda1
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: fsck.ext4 /dev/sda1

Topic 1 Β· Question 60

Based on an organization’s new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below. To which of the following configuration files will the required changes need to be made?

Exhibit 1 for question 60
  • A/etc/login.defs (correct answer)
  • B/etc/security/limits.conf
  • C/etc/default/useradd
  • D/etc/profile
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: /etc/login.defs This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 61

A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message: Given the following analysis: Which of the following is causing the error message?

Exhibit 1 for question 61Exhibit 2 for question 61
  • AThe administrator is not using a highly privileged account.
  • BThe filesystem is mounted with the wrong options.
  • CSELinux file context is denying the ACL changes.
  • DFile attributes are preventing file modification. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: File attributes are preventing file modification.

Topic 1 Β· Question 62

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?

  • Als | cpio -iv > cloud.epio
  • Bls | cpio -iv < cloud.epio
  • Cls | cpio -ov > cloud.cpio (correct answer)
  • Dls cpio -ov < cloud.cpio
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: ls | cpio -ov > cloud.cpio

Showing questions 41–60 of 263 Β· Page 3 of 14