Download CompTIA Linux+ Certification Exam.XK0-005.CertLeader.2024-07-10.173q.vcex

Vendor: CompTIA
Exam Code: XK0-005
Exam Name: CompTIA Linux+ Certification Exam
Date: Jul 10, 2024
File Size: 4 MB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 1
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?
  1. docker images prune -a
  2. docker push images -a
  3. docker rmi -a images
  4. docker images rmi --all
Correct answer: A
Question 2
A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?
  1. docker cp container_id/deployment.yaml deployment.yaml
  2. docker cp container_id:/deployment.yaml deployment.yaml
  3. docker cp deployment.yaml local://deployment.yaml
  4. docker cp container_id/deployment.yaml local://deployment.yaml
Correct answer: A
Question 3
A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?
  1. Cloud-init
  2. Bash
  3. Docker
  4. Sidecar
Correct answer: A
Question 4
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?
  1. iptables -F INPUT -j 192.168.10.50 -m DROP
  2. iptables -A INPUT -s 192.168.10.30 -j DROP
  3. iptables -i INPUT --ipv4 192.168.10.50 -z DROP
  4. iptables -j INPUT 192.168.10.50 -p DROP
Correct answer: B
Question 5
A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?
  1. /etc/host.conf
  2. /etc/hostname
  3. /etc/services
  4. /etc/ssh/sshd_config
Correct answer: D
Question 6
A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?
  1. /etc/host.conf
  2. /etc/hostname
  3. /etc/services
  4. /etc/ssh/sshd_config
Correct answer: D
Question 7
A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?
  1. rpm -qf /etc/httpd/conf/httpd.conf
  2. rpm -ql /etc/httpd/conf/httpd.conf
  3. rpm —query /etc/httpd/conf/httpd.conf
  4. rpm -q /etc/httpd/conf/httpd.conf
Correct answer: A
Question 8
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?
  1. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
  2. cat /etc/systemd/journald.conf | awk '(print $1,$3)'
  3. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/ˆ#//q'/etc/systemd/journald.conf
  4. journalctl --list-boots && systemctl restart systemd-journald.service
Correct answer: A
Question 9
A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?
  1. iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
  2. iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
  3. iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
  4. iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT
Correct answer: B
Question 10
A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?
  1. git clone https://git.company.com/admin/project.git
  2. git checkout https://git.company.com/admin/project.git
  3. git pull https://git.company.com/admin/project.git
  4. git branch https://git.company.com/admin/project.git
Correct answer: A
Explanation:
git clone is the best option if its a new project. git pull would work best if it was an ongoing project that had multiple team members that had pushed their updates to the main repository
git clone is the best option if its a new project. git pull would work best if it was an ongoing project that had multiple team members that had pushed their updates to the main repository
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!