XK0-005 Practice Test practice questions, page 3 of 19, with answer review and explanations.
Question 11
A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?
podman run -d -p 443:8443 httpd
podman run -d -p 8443:443 httpd
podman run –d -e 443:8443 httpd
podman exec -p 8443:443 httpd
Question 12
A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?
docker run -ti app /bin/sh
podman exec -ti app /bin/sh
podman run -d app /bin/bash
docker exec -d app /bin/bash
Question 13
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?
tar -cvzf /dev/sdd1 /dev/sdc1
rsync /dev/sdc1 /dev/sdd1
dd if=/dev/sdc1 of=/dev/sdd1
scp /dev/sdc1 /dev/sdd1
Question 14
When trying to log in remotely to a server, a user receives the following message: The server administrator is investigating the issue on the server and receives the following outputs: Which of the following is causing the issue?
The wrong permissions are on the user’s home directory.
The account was locked out due to three failed logins.
The user entered the wrong password.
The user has the wrong shell assigned to the account.
Question 15
A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)