[Mar-2023] XK0-005 Dumps With 100% Verified Q&As - Pass Guarantee or Full Refund
Pass CompTIA XK0-005 Exam With Practice Test Questions Dumps Bundle
NEW QUESTION 106
A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?
- A.

- B.

- C.

- D.

Answer: C
NEW QUESTION 107
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?
- A. systemctl status
- B. systemctl reinstall
- C. systemctl daemon-reload
- D. systemctl stop
Answer: C
NEW QUESTION 108
A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
- A. docker inspect <container_id>
- B. docker start <container_id>
- C. docker export <container_id>
- D. docker info <container_id>
Answer: A
NEW QUESTION 109
Which of the following tools is BEST suited to orchestrate a large number of containers across many different servers?
- A. Ansible
- B. Terraform
- C. Podman
- D. Kubernetes
Answer: D
NEW QUESTION 110
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.)
- A. scp
- B. ssh-keygen
- C. wget
- D. ssh-keyscan
- E. ssh-copy-id
- F. ftpd
Answer: A,E
NEW QUESTION 111
A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:
Which of the following commands will the administrator most likely run NEXT?
- A. htop
- B. vmstat
- C. strace
- D. lsof
Answer: B
NEW QUESTION 112
A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?
- A. docker rmi -a images
- B. docker images prune -a
- C. docker images rmi --all
- D. docker push images -a
Answer: B
NEW QUESTION 113
Which of the following commands is used to configure the default permissions for new files?
- A. umask
- B. setenforce
- C. sudo
- D. chmod
Answer: A
NEW QUESTION 114
A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?
- A. docker rm --all
- B. docker rm $(docker ps -aq)
- C. docker rm --state exited
- D. docker images prune *
Answer: C
NEW QUESTION 115
A junior Linux administrator is tasked with installing an application. The installation guide states the application should only be installed in a run level 5 environment.
Which of the following commands would ensure the server is set to runlevel 5?
- A. systemctl isolate multi-user.target
- B. systemctl isolate basic.target
- C. systemctl isolate network.target
- D. systemctl isolate graphical.target
Answer: D
NEW QUESTION 116
A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?
- A. $RHOST
- B. $SHELL
- C. SETENV
- D. $DISPLAY
Answer: D
NEW QUESTION 117
One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a systems administrator is troubleshooting the issue. The following output has been provided:
Given this scenario, which of the following should the administrator do to recover this volume?
- A. Replace the failed drive and reconfigure the mirror.
- B. Reboot the server. The volume will automatically go back to linear mode.
- C. Recreate the logical volume.
- D. Reboot the server. The volume will revert to stripe mode.
Answer: A
NEW QUESTION 118
Which of the following data structures is written in JSON?
A)
B)
C)
D)
- A. Option A
- B. Option D
- C. Option C
- D. Option B
Answer: B
NEW QUESTION 119
A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?
- A. su
- B. bg
- C. fg
- D. ed
Answer: C
NEW QUESTION 120
To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?
- A. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.
- B. Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
- C. Add the line DenyUsers root to the /etc/hosts.deny file.
- D. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
Answer: D
NEW QUESTION 121
A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?
- A. iptables -A INPUT -s 192.168.10.30 -j DROP
- B. iptables -i INPUT --ipv4 192.168.10.50 -z DROP
- C. iptables -F INPUT -j 192.168.10.50 -m DROP
- D. iptables -j INPUT 192.168.10.50 -p DROP
Answer: A
NEW QUESTION 122
A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?
- A. ~/.sshd/authkeys
- B. ~/.ssh/keys
- C. ~/.ssh/authorized_keys
- D. ~/.ssh/keyauth
Answer: C
NEW QUESTION 123
The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:
Which of the following remediation steps will prevent the web service from running as a privileged user?
- A. Updating the Environment File line in the [Service] section to/home/webservice/config
- B. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file
- C. Adding the User-webservice to the [Service] section of the service file
- D. Changing the:nulti-user.target in the [Install] section to basic.target
Answer: B
NEW QUESTION 124
......
2023 Valid XK0-005 test answers & CompTIA Exam PDF: https://www.vce4plus.com/CompTIA/XK0-005-valid-vce-dumps.html
Free CompTIA XK0-005 Exam Questions and Answer from Training Expert VCE4Plus: https://drive.google.com/open?id=1g_j0MzZun3ULRtAtckdWUJKgzXzbyfwZ