πŸ”

XK0-005 β€” questions

Page 4 of 14 Β· 263 total questions.

Topic 1 Β· Question 63

A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?

  • Asource ~/.bashrc (correct answer)
  • Bread ~/.bashrc
  • Ctouch ~/.bashrc
  • Decho ~/.bashrc
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: source ~/.bashrc

Topic 1 Β· Question 64

A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

  • Aid_dsa.pem
  • Bid_rsa
  • Cid_ecdsa
  • Did_rsa.pub (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: id_rsa.pub This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 65

A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server: The administrator performed the commands listed below to further troubleshoot and mount the missing filesystem: Which of the following should administrator use to resolve the device mismatch issue and mount the disk?

Exhibit 1 for question 65Exhibit 2 for question 65
  • Amount disk by device-id
  • Bfsck -A
  • Cmount disk by-label (correct answer)
  • Dmount disk by-blkid
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: mount disk by-label

Topic 1 Β· Question 66

A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen. Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

Exhibit 1 for question 66
  • Admidecode -s system-version
  • Blscpu (correct answer)
  • Csysctl -a
  • Dcat /sys/device/system/cpu/possible
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: lscpu

Topic 1 Β· Question 67

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?

  • Achmod +t /project/access2all (correct answer)
  • Bchmod +rws /project/access2all
  • Cchmod 2770 /project/access2all
  • Dchmod ugo+rwx /project/access2all
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: chmod +t /project/access2all

Topic 1 Β· Question 68 Β· Select all that apply

A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)

  • Asysctl net.ipv4.ip_forward
  • Bsysctl -w net.ipv4.ip_forward=1
  • Cecho "net.ipv4.ip_forward=1" >> /etc/sysctl.conf (correct answer)
  • Decho 1 > /proc/sys/net/ipv4/ip_forward
  • Esysctl –p (correct answer)
  • Fecho "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf Option E: sysctl –p

Topic 1 Β· Question 69

Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?

  • Afind /var/log -type d -mtime +180 -print -exec rm {} \;
  • Bfind /var/log -type f -modified +180 -rm
  • Cfind /var/log -type f -mtime +180 -exec rm {} \ (correct answer)
  • Dfind /var/log -type c -atime +180 –remove
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: find /var/log -type f -mtime +180 -exec rm {} \

Topic 1 Β· Question 70

A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?

  • A
  • B
  • C (correct answer)
  • D
Reveal answer & explanation
Correct answer: C

The correct answer is C.

Topic 1 Β· Question 71

Some servers in an organization have been compromised. Users are unable to access to the organization’s web page and other services. While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules: Which of the following commands will remediate and help resolve the issue?

Exhibit 1 for question 71
  • A
  • B (correct answer)
  • C
  • D
Reveal answer & explanation
Correct answer: B

The correct answer is B.

Topic 1 Β· Question 72

A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection. Given the following output: Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

Exhibit 1 for question 72
  • Arestorecon -rv .ssh/authorized_key
  • Bmv .ssh/authorized_key .ssh/authorized_keys (correct answer)
  • Csystemctl restart sshd.service
  • Dchmod 600 mv .ssh/authorized_key
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: mv .ssh/authorized_key .ssh/authorized_keys

Topic 1 Β· Question 73

A Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command: The following output is returned Which of the following is MOST likely the issue?

Exhibit 1 for question 73Exhibit 2 for question 73
  • AThe service does not have permissions to read write the startupfile. (correct answer)
  • BThe service startupfile size cannot be 81k.
  • CThe service startupfile cannot be owned by root.
  • DThe service startupfile should not be owned by the root group.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The service does not have permissions to read write the startupfile.

Topic 1 Β· Question 74

A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?

  • Achown -s 755 devops
  • Bchown 1755 devops
  • Cchmod -s 755 devops
  • Dchmod 1755 devops (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: chmod 1755 devops

Topic 1 Β· Question 75

A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemctl isolate graphical.target and rebooted the system by running systemctl reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?

  • AThe administrator did not reboot the server properly.
  • BThe administrator did not set the default target to basic.target.
  • CThe administrator did not set the default target to graphical.target. (correct answer)
  • DThe administrator did not shut down the server properly.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The administrator did not set the default target to graphical.target.

Topic 1 Β· Question 76

Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages: Which of the following is causing the connection issue?

Exhibit 1 for question 76
  • AThe process mysqld is using too many semaphores.
  • BThe server is running out of file descriptors.
  • CSomething is starving the server resources. (correct answer)
  • DThe amount of RAM allocated to the server is too high.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Something is starving the server resources.

Topic 1 Β· Question 77

A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?

  • A$RHOST
  • BSETENV
  • C$SHELL
  • D$DISPLAY (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: $DISPLAY

Topic 1 Β· Question 78 Β· Select all that apply

A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content: The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)

Exhibit 1 for question 78
  • AAdd #!/bin/bash to the bottom of the script.
  • BCreate a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location. (correct answer)
  • CAdd #!//bin/bash to the top of the script. (correct answer)
  • DRestart the computer to enable the new service.
  • ECreate a unit file for the new service in /etc/init.d with the name helpme.service in the location.
  • FShut down the computer to enable the new service.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location. Option C: Add #!//bin/bash to the top of the script.

Topic 1 Β· Question 79

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--. ?

  • Achmod 755 filename.log
  • Bchmod 640 filename.log
  • Cchmod 740 filename.log
  • Dchmod 744 filename.log (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: chmod 744 filename.log

Topic 1 Β· Question 80

After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

  • Achgrp system accountname
  • Bpasswd –s accountname
  • Cchmod -G system account name
  • Dchage -E -1 accountname (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: chage -E -1 accountname

Topic 1 Β· Question 81

A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?

  • Avisudo -c (correct answer)
  • Btest -f /etc/sudoers
  • Csudo vi check
  • Dcat /etc/sudoers | tee test
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: visudo -c

Topic 1 Β· Question 82

A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?

  • Ascp ~/.ssh/id_rsa user@server:~/
  • Brsync ~ /.ssh/ user@server:~/
  • Cssh-add user server
  • Dssh-copy-id user@server (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: ssh-copy-id user@server This option keeps traffic private / properly secured as required.

Showing questions 61–80 of 263 Β· Page 4 of 14