XK0-005 Practice Test practice questions, page 4 of 19, with answer review and explanations.
Question 16
A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?
echo 1 > /proc/sys/net/ipv4/ipv_forward
sysctl -w net.ipv4.ip_forward=1
firewall-cmd --enable ipv4_forwarding
systemctl start ipv4_forwarding
Question 17
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?
The checkdiskspace.service is not running.
The checkdiskspace.service needs to be enabled.
The OnCalendar schedule is incorrect in the timer definition.
The system-daemon services need to be reloaded.
Question 18
An administrator deployed a Linux server that is running a web application on port 6379/tcp. SELinux is in enforcing mode based on organization policies. The port is open on the firewall. Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied. The administrator ran some commands that resulted in the following output: Which of the following commands should be used to resolve the issue?
semanage port -d -t http_port_t -p tcp 6379
semanage port -a -t http_port_t -p tcp 6379
semanage port -a http_port_t -p top 6379
semanage port -l -t http_port_tcp 6379
Question 19
A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the following would the administrator do to complete this requirement?
hostnamectl status --no-ask-password
hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?