πŸ”

XK0-005 β€” questions

Page 14 of 14 Β· 263 total questions.

Topic 1 Β· Question 264

A Linux administrator is configuring a log collector agent to monitor logs in /var/log/collector. The agent is reporting that it cannot write in the directory. The agent runs as the logger user account. The administrator runs a few commands and reviews the following output: Output 1: Output 2: * file: /var/log/collector * owner: root * group: root user::rwx group::r-x mask::rwx other::r-x default:user:rwx default:group::r-x default:mask::rwx default:other::r-x Output 3: uid=1010(logger) gid=1010(monitor) groups=1010(monitor) Which of the following is the best way to resolve the issue?

Exhibit 1 for question 264
  • Asetfacl -Rm u:logger:rw /var/log/collector (correct answer)
  • Busermod -aG root logger
  • Cchmod 644 /var/log/collector
  • Dchown -R logger:monitor /var/log
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: setfacl -Rm u:logger:rw /var/log/collector

Topic 1 Β· Question 265

A Linux administrator is tasked with moving files in a database server. The administrator must not overwrite any existing files. Which of the following commands would indicate that the file already exists?

  • Amv –i filename /tmp/backup (correct answer)
  • Bmv –b filename /tmp/backup
  • Cmv –n filename /tmp/backup
  • Dmv –f filename /tmp/backup
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: mv –i filename /tmp/backup

Topic 1 Β· Question 266

A Linux administrator is removing non-permanent rules from the system firewall. Which of the following commands will allow the administrator to achieve this goal in the safest way possible?

  • Afirewall-cmd –-set-default-zone
  • Bfirewall-cmd –-runtime-to-permanent
  • Cfirewall-cmd –-reload (correct answer)
  • Dfirewall-cmd –-complete-reload
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: firewall-cmd –-reload

Explanation

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

Showing questions 261–263 of 263 Β· Page 14 of 14