Free CompTIA XK0-005 Exam Questions (page: 4)

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?

  1. podman run -d -p 443:8443 httpd
  2. podman run -d -p 8443:443 httpd
  3. podman run ­d -e 443:8443 httpd
  4. podman exec -p 8443:443 httpd

Answer(s): A



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?

  1. docker run -ti app /bin/sh
  2. podman exec -ti app /bin/sh
  3. podman run -d app /bin/bash
  4. docker exec -d app /bin/bash

Answer(s): B



A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?

  1. tar -cvzf /dev/sdd1 /dev/sdc1
  2. rsync /dev/sdc1 /dev/sdd1
  3. dd if=/dev/sdc1 of=/dev/sdd1
  4. scp /dev/sdc1 /dev/sdd1

Answer(s): C



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?

  1. The wrong permissions are on the user's home directory.
  2. The account was locked out due to three failed logins.
  3. The user entered the wrong password.
  4. The user has the wrong shell assigned to the account.

Answer(s): D



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

  1. wget
  2. ssh-keygen
  3. ssh-keyscan
  4. ssh-copy-id
  5. ftpd
  6. scp

Answer(s): D,F






Post your Comments and Discuss CompTIA XK0-005 exam prep with other Community members:

XK0-005 Exam Discussions & Posts