getcertified4sure.com

XK0-004 Exam

Download CompTIA XK0-004 Exam Engine Online




High quality of XK0-004 practice test materials and real exam for CompTIA certification for consumer, Real Success Guaranteed with Updated XK0-004 pdf dumps vce Materials. 100% PASS CompTIA Linux+ Certification Exam exam Today!

Free demo questions for CompTIA XK0-004 Exam Dumps Below:

NEW QUESTION 1
A Linux administration is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces.
Which of the following commands enables this feature for IPv4 networks?

  • A. cat /proc/sys/net/ipv4/ip_route > 1
  • B. echo “1” > /proc/sys/net/ipv4/ip_forward
  • C. echo “1” > /proc/sys/net/ipv4/ip_route
  • D. echo “1” > /proc/sys/net/ipv4/ip_net

Answer: B

NEW QUESTION 2
A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive. Which of the following commands will stop each application process?

  • A. kill ‘pidof application’
  • B. killall application
  • C. kill -9 ‘ps –aux | grep application’
  • D. pkill -9 application

Answer: B

NEW QUESTION 3
A systems administrator configured a new kernel module, but it stopped working after reboot. Which of the following will allow the systems administrator to check for module problems during server startup?

  • A. lsmod
  • B. modprobe
  • C. modinfo
  • D. dmesg

Answer: C

NEW QUESTION 4
A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?

  • A. systemctl stop httpd && systemctl mask httpd
  • B. systemctl disable httpd && systemctl mask httpd
  • C. systemctl stop httpd && systemctl hide httpd
  • D. systemctl disable httpd && systemctl hide httpd

Answer: A

NEW QUESTION 5
A Linux administrator needs to take stock of USB devices attached to the system. Which of the following commands would be BEST to complete this task?

  • A. lspci
  • B. lsusb
  • C. cat /proc/USB
  • D. modprobe -–usb

Answer: B

NEW QUESTION 6
An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?

  • A. /proc/cpuinfo
  • B. /etc/devices/info.conf
  • C. /dev/proc/cpu
  • D. /sys/dev/cpuinfo

Answer: A

NEW QUESTION 7
Which of the following is the BEST reason for not storing database files in the /var directory?

  • A. The /var filesystem is not fast enough for database files.
  • B. The number of files in /var is limited by the available inodes.
  • C. Files in /var do not have strict file permissions.
  • D. If log files fill up /var, it might corrupt the database.

Answer: D

NEW QUESTION 8
A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?

  • A. umask 0022
  • B. umask 0012
  • C. chmod –R 0644 /
  • D. chmod –R 0755 /

Answer: A

NEW QUESTION 9
A member of the production group issues the following command:
echo "Monday through Friday" > /production_docs/days
The command fails to execute, so the user obtains the following output: drwxr--r-- root production 0 Jun 16 2018 production
-rw-r--r-- production production 4096 Jun 14 2018 days
Which of the following commands should the user execute to BEST fix the issue?

  • A. chmod g+w production to change the permissions of the days file
  • B. chgrp root production_docs/days to change the group ownership of the production_docs/ days file
  • C. chmod g+S production to set the GUID on the production_docs directory
  • D. chown production to change the ownership of the production_docs directory

Answer: D

NEW QUESTION 10
A systems administration team has decided to their systems as immutable instances. They keep the desired state of each of their systems in version control and apply automation whenever they provision a new instance. If there is an issue with one of their servers, instead of troubleshooting the issue they terminate the instance and rebuild it using automation.
Which of the following is this an example of?

  • A. Inventory
  • B. Orchestration
  • C. Infrastructure as code
  • D. Agentless deployment

Answer: C

NEW QUESTION 11
A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the “dba” group and preserve existing group memberships?

  • A. usermod –a –G dba jsmith
  • B. usermod –g dba jsmith
  • C. useradd –g dba jsmith
  • D. groupmod dba –u jsmith

Answer: AC

Explanation:
According to the reference given below. Both AC is correct.

NEW QUESTION 12
Which of the following configuration management tools is considered agentless?

  • A. Ouppet
  • B. Salt
  • C. Ansible
  • D. Chef

Answer: C

NEW QUESTION 13
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space.
Which of the following is the correct sequence given only a terminal is available?

  • A. 1. CTRL-C2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-Z
  • B. 1. CTRL-C2. fg3. watch df /var4. CTRL-Z5. bg6. CTRL-Z
  • C. 1. CTRL-Z2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-C
  • D. 1. CTRL-Z2. bg3. watch df /var4. CTRL-Z5. fg6. CTRL-C

Answer: D

NEW QUESTION 14
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. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
  • B. setenforce 0
  • C. sestatus 0
  • D. chcon httpd_sys_content_t /var/

Answer: B

NEW QUESTION 15
Which of the following BEST describes the purpose of the X11 system?

  • A. X11 provides graphical display capabilities
  • B. X11 provides command line capabilities
  • C. X11 provides networking capabilities
  • D. X11 provides telephony capabilities.

Answer: A

NEW QUESTION 16
An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:
XK0-004 dumps exhibit
Upon checking the logical volume status, the administrator receives this information:
XK0-004 dumps exhibit
Which of the following can be said about the data logical volume, and how can this problem be resolved?

  • A. The logical volume is not activ
  • B. The administrator should make it active with lvchange -ay /dev/ datavg/datalv and then mount it.
  • C. The logical volume file system has become corrupte
  • D. The administrator should repair it with xfs_repair/dev/datavg/datalv and then mount it.
  • E. The logical volume is OK but the /dev special files are missin
  • F. The administrator should recreate them by running /dev/MAKEDEV.
  • G. The file system is read-onl
  • H. The administrator should remount it as read-write with the command mount - o remount.rw /data.

Answer: A

NEW QUESTION 17
A Linux systems administrator is setting up SSH access with PKI for several using their newly created RSA keys. Which of the following MOST securely achieves this task?

  • A. Use curl to copy each user’s public key file to the respective system
  • B. Use cp to copy each user’s public key file to the respective system
  • C. Use ssh-copy-id to copy each user’s public key file to the respective system
  • D. Use ssh-copy-id to copy each user’s private key file to the respective system

Answer: C

NEW QUESTION 18
A Linux administrator needs to switch from text mode to GUI. Which of the following runlevels will start the GUI by default?

  • A. Runlevel 3
  • B. Runlevel 4
  • C. Runlevel 5
  • D. Runlevel 6

Answer: C

NEW QUESTION 19
A systems administrator must clean up all application files in the directory /var/log/app. However, the company’s security policy requires the files to be kept on the backup server for one year. The Linux server has only the tar and bzip2 packages installed.
Which of the following commands will package and compress the files?

  • A. tar –zcvf applicationfiles.tar.bz2 /var/log/app/*
  • B. tar –jcvf applicationfiles.tar.bz2 /var/log/app/*
  • C. tar –cvf applicationfiles.tar.bz2 /var/log/app/*
  • D. tar –xvf applicationfiles.tar.bz2 /var/log/app/*

Answer: C

NEW QUESTION 20
......

100% Valid and Newest Version XK0-004 Questions & Answers shared by Dumps-hub.com, Get Full Dumps HERE: https://www.dumps-hub.com/XK0-004-dumps.html (New 267 Q&As)