[Sep 03, 2021] Get Free Updates Up to 365 days On Developing XK0-004 Braindumps [Q20-Q45]

Share

[Sep 03, 2021] Get Free Updates Up to 365 days On Developing XK0-004 Braindumps

Best Quality CompTIA XK0-004 Exam Questions

NEW QUESTION 20
A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp directory and is getting the following error: No space left on device. The support engineer checks the / tmpdirectory, and it has 20GB of free space.
Which of the following BEST describes a possible cause for this error?

  • A. The filesystem is formatted with a 4MB block size.
  • B. The /tmpdirectory has been set with an immutable attribute.
  • C. the filesystem ran out of inodes.
  • D. The /tmpdirectory is not mounted.

Answer: C

Explanation:
Explanation/Reference: https://www.maketecheasier.com/fix-linux-no-space-left-on-device-error/

 

NEW QUESTION 21
A systems administrator is enabling quotas on the /home directory of a Linux server. The administrator makes the appropriate edits to the /etc/fstab file and attempts to issue the commands to enable quotas on the desired directory. However, the administrator receives an error message stating the filesystem does not support quotas. Which of the following commands should the administrator perform to proceed?

  • A. quotacheck -cg
  • B. quotaon /home
  • C. edquota /home
  • D. mount -o remount /home

Answer: B

 

NEW QUESTION 22
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?

  • A. vgcreate
  • B. mkfs.xfs
  • C. pvcreate
  • D. lvcreate

Answer: A

Explanation:
Explanation/Reference: https://www.thegeekstuff.com/2010/08/how-to-create-lvm/

 

NEW QUESTION 23
A Linux administrator needs to remotely update the contents of the www.comptia.org/contacts URL.
Which of the following commands would allow the administrator to download the current contents of the URL before updating?

  • A. dig www.comptia.org/contacts
  • B. apt-get www.comptia.org/contacts
  • C. curl www.comptia.org/contacts
  • D. yum list www.comptia.org/contacts

Answer: C

Explanation:
Reference:
https://www.thegeekstuff.com/2012/04/curl-examples/

 

NEW QUESTION 24
The development team has automated their software build process so each time a change is submitted to the source code repository, a new software build is compiled. They are requesting that the Linux operations team look into automating the deployment of the software build into the test environment. Which of the following is the benefit to the development team for implementing deployment automation?

  • A. To enable notifications when builds are deployed to the test environment
  • B. To ensure software builds in test are not accidentally deployed to production
  • C. To streamline the deployment process for deploying builds into test environments
  • D. To ensure the build commits are also deployed to the test environment

Answer: C

 

NEW QUESTION 25
A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator copied the files last week but must ensure any files created or modified since then are added.
Which of the following is the BEST command for the administrator to use?

Answer: D

 

NEW QUESTION 26
A user issues the following command:
ls -l /var/log | egrep -e '^d[rwx]{3}.*[rw-]{3}.*'
The list of files in the system is shown below:

Which of the following results matches the command issued?

  • A. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
    drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
    drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
  • B. drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
    drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
  • C. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
    drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
    drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
  • D. -rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log
    -rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
    -rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log

Answer: D

 

NEW QUESTION 27
A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?

  • A. iptables -A INPUT -p tcp --dport 443 -j ACCEPT
  • B. iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
  • C. iptables -I INPUT --dport 443 -j ACCEPT
  • D. iptables -I OUTPUT -p tcp --sport 443 -j ACCEPT

Answer: C

Explanation:
Reference:
https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/

 

NEW QUESTION 28
The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.

Answer:

Explanation:

Reference:
https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/

 

NEW QUESTION 29
A junior Linux administrator is installing patches using YUM. The administrator issues the following command:
yum list installed
The output of the command is as follows:

Given this scenario and the output, which of the following should the administrator do to address this issue?

  • A. ps -ef | grep yum
  • B. killall yum
  • C. top | grep yum
  • D. renice -n 9 -p 5180

Answer: A

Explanation:
Reference:
https://www.thegeekdiary.com/yum-command-fails-with-another-app-is-currently-holding-the-yum-lock-in-centos-rhel-7/

 

NEW QUESTION 30
A systems administrator is configuring options on a newly installed Linux VM that will be deployed to the Pacific time zone. Which of the following sets of commands should the administrator execute to accurately configure the correct time settings?
cd /etc

  • A. ln -s /usr/share/zoneinfo/US/Pacific zoneinfo
    cd /etc/local
  • B. ln -s /usr/share/zoneinfo/US/Pacific localtime
    cd /usr/local
  • C. ln -s /usr/share/zoneinfo/US/Pacific localectl
  • D. ln -s /usr/share/zoneinfo/US/Pacific localtime
    cd /usr/share/local

Answer: B

 

NEW QUESTION 31
An administrator is uncomfortable allowing users to log in as root. Which of the following ensures that root logins are disallowed?

  • A. usermod -B root
  • B. usermod -G root
  • C. usermod -L root
  • D. usermod -U root

Answer: B

 

NEW QUESTION 32
A server is almost out of free memory and is becoming unresponsive. Which of the following sets of commands will BEST mitigate the issue?

  • A. df, du, rmmod
  • B. lsof, lvcreate, mdadm
  • C. fdisk, mkswap, swapon -a
  • D. free, fack, partprobe

Answer: D

 

NEW QUESTION 33
A Linux systems administrator is troubleshooting an issue with the /homedirectory running out of space. The administrator needs to determine which /homedirectories are using the most space. Which of the following commands should be used?

  • A. lvs
  • B. du
  • C. fsck
  • D. cdf

Answer: B

Explanation:
Explanation/Reference: https://www.cs.washington.edu/lab/faq/home-directory-size

 

NEW QUESTION 34
Which of the following is true about Type 2 hypervisors?

  • A. Only Type 2 hypervisors allow direct access to CPU virtualization features.
  • B. Type 2 hypervisors offer a performance increase to the guests in comparison to a Type 1 hypervisor.
  • C. Type 2 hypervisors run on top of another general purpose OS.
  • D. Type 2 hypervisors are often called bare-metal or native hypervisors.

Answer: C

Explanation:
Reference:
https://www.sciencedirect.com/topics/computer-science/hypervisors

 

NEW QUESTION 35
A Linux administrator is testing a new web application on a local laptop and consistently shows the following
403 errors in the laptop's logs:

The web server starts properly, but an error is generated in the audit log. Which of the following settings should be enabled to prevent this audit message?

  • A. httpd_enable_scripting = 1
  • B. httpd_enable_homedirs = 1
  • C. httpd_can_network_connect = 1
  • D. httpd_enable_cgi = 1

Answer: C

 

NEW QUESTION 36
A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the server infrastructure using a specific tool that consumes a text-based file.
Which of the following is the BEST reason to do this?

  • A. To document the infrastructure so it can be included in the system security plan
  • B. To define the infrastructure so it can be provisioned consistently with minimal manual tasks
  • C. To validate user requirements have been met within each regional datacenter for compliance
  • D. To ensure the administrator follows the planning phase of the systems development life cycle

Answer: D

 

NEW QUESTION 37
A Linux systems administrator wants the ability to access systems remotely over SSH using RSA authentication. to which of the following files should the RSA token be added to allow this access?

  • A. id_rsa.pub
  • B. known_hosts
  • C. authorized_keys
  • D. ~/.ssh/ssh_config

Answer: A

 

NEW QUESTION 38
A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode. Which of the following would allow the administrator to accomplish this?

  • A. setenforce 0
  • B. sestatus 0
  • C. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
  • D. chcon httpd_sys_content_t /var/

Answer: A

 

NEW QUESTION 39
In which of the following Linux GUI environments would the Konsole application MOST likely be found?

  • A. Unity
  • B. Cinnamon
  • C. KDE
  • D. Gnome
  • E. MATE

Answer: C

 

NEW QUESTION 40
A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server. If there is no problem on the network or with the users' workstations, which of the following steps will BEST analyze and resolve the issue?

  • A. Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
  • B. Run route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
  • C. Run netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443
  • D. Run route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and
    443

Answer: C

 

NEW QUESTION 41
An administrator needs to create a shared directory in which all users are able, write, and execute its content but none of the regular users are able to delete any content.
Which of the following permissions should be applied to this shared directory?

  • A. rwxrwxrw*
  • B. rwxrwxrwx
  • C. rwxrwxrwt
  • D. rwxrwxrws

Answer: B

 

NEW QUESTION 42
The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.

Answer:

Explanation:

 

NEW QUESTION 43
Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full. Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?

  • A. fdisk /dev/sda
  • B. rm -Rf ~/.*
  • C. df -i
  • D. fsck -y /dev/sda1

Answer: C

Explanation:
Reference:
https://www.linuxtechi.com/11-df-command-examples-in-linux/

 

NEW QUESTION 44
A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word "services". Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?

  • A. #/bin/bashfind -name services -sort </var/tmp/foundservices
  • B. #/bin/bashfind /etc -name services -sort > /var/tmp/foundservices
  • C. #/bin/bashlocate /etc -sort -name services > /var/tmp/foundservices
  • D. #/bin/bashfind /etc -name services | sort > /var/tmp/foundservices

Answer: C

 

NEW QUESTION 45
......

CompTIA Exam Practice Test To Gain Brilliante Result: https://www.testkingpdf.com/XK0-004-testking-pdf-torrent.html

Tested Material Used To XK0-004: https://drive.google.com/open?id=12oivYQh6M0QlE5OlBEcUeyIkMHg13q1w