πŸ”

XK0-005 β€” questions

Page 8 of 14 Β· 263 total questions.

Topic 1 Β· Question 143

A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?

  • Afind . -type f -print | xrags grep -ln denied
  • Bfind . -type f -print | xrags grep -nv denied
  • Cfind . -type f -print | xrags grep -wL denied
  • Dfind . -type f -print | xrags grep -li denied (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: find . -type f -print | xrags grep -li denied

Topic 1 Β· Question 144

A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task?

  • Adocker builder -f --name web-01 httpd
  • Bdocker load --name web-01 httpd
  • Cdocker ps -a --name web-01 httpd
  • Ddocker run -d --name web-01 httpd (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: docker run -d --name web-01 httpd

Topic 1 Β· Question 145

A Linux administrator is providing a new Nginx image from the registry to local cache. Which of the following commands would allow this to happen?

  • Adocker pull nginx (correct answer)
  • Bdocker attach nginx
  • Cdocker commit nginx
  • Ddocker import nginx
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: docker pull nginx

Topic 1 Β· Question 146

Which of the following tools is BEST suited to orchestrate a large number of containers across many different servers?

  • AKubernetes (correct answer)
  • BAnsible
  • CPodman
  • DTerraform
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Kubernetes

Topic 1 Β· Question 147

A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?

  • Afirewalld query-service-http
  • Bfirewall-cmd --check-service http
  • Cfirewall-cmd --query-service http (correct answer)
  • Dfirewalld --check-service http
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: firewall-cmd --query-service http

Explanation

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

Topic 1 Β· Question 148

A systems administrator is encountering performance issues. The administrator runs a command with the following output: 09:10:18 up 457 days, 32min, 5 users, load average: 4.22 6.63 5.58 The Linux server has the following system properties: CPU 4 vCPU - Memory: 50GB - Which of the following accurately describes this situation?

  • AThe system is under CPU pressure and will require additional vCPUs. (correct answer)
  • BThe system has been running for over a year and requires a reboot.
  • CToo many users are currently logged in to the system.
  • DThe system requires more memory.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The system is under CPU pressure and will require additional vCPUs.

Topic 1 Β· Question 149

A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?

  • Aufw allow out dns
  • Bsystemctl reload firewalld
  • Ciptables -A OUTPUT -p udp -m udp -dport 53 -j ACCEPT
  • Dfirewall-cmd --zone=public --add-port=53/udp --permanent (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: firewall-cmd --zone=public --add-port=53/udp --permanent

Explanation

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

Topic 1 Β· Question 150

A Linux engineer receives reports that files created within a certain group are being modified by users who are not group members. The engineer wants to reconfigure the server so that only file owners and group members can modify new files by default. Which of the following commands would accomplish this task?

  • Achmod 775
  • Bumask. 002 (correct answer)
  • Cchattr -Rv
  • Dchown -cf
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: umask. 002

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

A Linux systems administrator needs to copy files and directories from Server A to Server B. Which of the following commands can be used for this purpose? (Choose two.)

  • Arsyslog
  • Bcp
  • Crsync (correct answer)
  • Dreposync
  • Escp (correct answer)
  • Fssh
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: rsync Option E: scp

Topic 1 Β· Question 152

A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/fstab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?

  • ASync the mount units.
  • BMount the filesystem manually.
  • CCreate a mount unit and enable it to be started at boot. (correct answer)
  • DRemount all the missing filesystems.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a mount unit and enable it to be started at boot.

Topic 1 Β· Question 153

Joe, a user, is unable to log in to the Linux system. Given the following output: Which of the following commands would resolve the issue?

Exhibit 1 for question 153
  • Ausermod -s /bin/bash joe (correct answer)
  • Bpam_tally2 -u joe -r
  • Cpasswd -u joe
  • Dchage -E 90 joe
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: usermod -s /bin/bash joe

Topic 1 Β· Question 154

A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?

  • Arpm -qf /etc/httpd/conf/httpd.conf (correct answer)
  • Brpm -ql /etc/httpd/conf/httpd.conf
  • Crpm --query /etc/httpd/conf/httpd.conf
  • Drpm -q /etc/httpd/conf/httpd.conf
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: rpm -qf /etc/httpd/conf/httpd.conf

Topic 1 Β· Question 155

Users have been unable to save documents to /home/tmp/temp and have been receiving the following error: Path not found - A junior technician checks the locations and sees that /home/tmp/tempa was accidentally created instead of /home/tmp/temp. Which of the following commands should the technician use to fix this issue?

  • Acp /home/tmp/tempa /home/tmp/temp
  • Bmv /home/tmp/tempa /home/tmp/temp (correct answer)
  • Ccd /temp/tmp/tempa
  • Dls /home/tmp/tempa
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: mv /home/tmp/tempa /home/tmp/temp

Topic 1 Β· Question 156

A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?

  • Afirewall-cmd --get-services
  • Bfirewall-cmd --check-config
  • Cfirewall-cmd --list-services (correct answer)
  • Dsystemctl status firewalld
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: firewall-cmd --list-services

Explanation

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

Topic 1 Β· Question 157

After installing a new version of a package, a systems administrator notices a new version of the corresponding .service file was installed. In order to use the new version of the .service file, which of the following commands must be issued FIRST?

  • Asystemctl status
  • Bsystemctl stop
  • Csystemctl reinstall
  • Dsystemctl daemon-reload (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: systemctl daemon-reload

Topic 1 Β· Question 158

Which of the following commands is used to configure the default permissions for new files?

  • Asetenforce
  • Bsudo
  • Cumask (correct answer)
  • Dchmod
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: umask

Topic 1 Β· Question 159

A Linux administrator needs to connect securely to a remote server in order to install application software. Which of the following commands would allow this connection?

  • Ascp "ABC-key.pem" root@10.0.0.1
  • Bsftp root@10.0.0.1
  • Ctelnet 10.0.0.1 80
  • Dssh -i "ABC-key.pem" root@10.0.0.1 (correct answer)
  • Esftp "ABCβ€”key.pem" root@10.0.0.1
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: ssh -i "ABC-key.pem" root@10.0.0.1 This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 160

In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6.5/24 to the newly added network interface enpls0f1. Which of the following commands should the administrator run to achieve the goal?

  • Aip addr add 10.0.6.5/24 dev enpls0f1 (correct answer)
  • Becho "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enpls0f1
  • Cifconfig 10.0.6.5/24 enpsls0f1
  • Dnmcli conn add ipv4.address=10.0.6.5/24 if name snpls0f1
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: ip addr add 10.0.6.5/24 dev enpls0f1

Topic 1 Β· Question 161

A Linux engineer needs to download a ZIP file and wants to set the nice value to -10 for this new process. Which of the following commands will help to accomplish the task?

  • A$ nice -v -10 wget https://foo.com/installation.zip
  • B$ renice -v -10 wget https://foo.com/installation.zip
  • C$ renice -10 wget https://foo.com/installation.zip
  • D$ nice -10 wget https://foo.com/installation.zip (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: $ nice -10 wget https://foo.com/installation.zip

Topic 1 Β· Question 162

Which of the following data structures is written in JSON?

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

The correct answer is D.

Showing questions 141–160 of 263 Β· Page 8 of 14