XK0-004 Exam Details

  • Exam Code
    :XK0-004
  • Exam Name
    :CompTIA Linux+ Certification
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :516 Q&As
  • Last Updated
    :Aug 23, 2023

CompTIA XK0-004 Online Questions & Answers

  • Question 441:

    A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?

    A. pam_tally2 --user=user --reset
    B. passwd -u user -G root
    C. usermod -u user -G root
    D. chage -1 user=user --reset

  • Question 442:

    Which of the following should a company use to reduce the latency of application that are deployed on a virtual private cloud?

    A. Virtual load balancer
    B. Network address translation
    C. Direct connect
    D. Multi-availability zones

  • Question 443:

    A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s / home/* command and gets the following output:

    Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.

    Which of the following commands will accomplish this task?

    A. df -k /home/User3/files.txt
    B. du -a /home/User3/*
    C. du -sh /home/User/
    D. find . -name /home/User3 -print

  • Question 444:

    A system administrator needs to run a job called payments_Reconciliation on the last day of the month at the end of the day. Which of the following lines in crontab should be inserted to complete job?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 445:

    A junior systems administrator is creating a cron job. The cron job requirements are as follows:

    1.

    Run the hello.sh script every hour (24 times in one day).

    2.

    Run it on Monday only.

    Given this scenario, which of the following crontab options should be configured to meet these requirements?

    A. 0 *** 1 hello.sh
    B. 0 24 ** Monday hello.sh
    C. 24 *** Monday hello.sh
    D. 1 *** 0 hello.sh

  • Question 446:

    A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb open fails. To verify if there is a problem in the RPM database, the systems administrator runs the following command:

    Which of the following commands should the systems administrator run NEXT to resolve this issue?

    A. cd/var/lib/rpm; rpm --rebuilddb ; rm -f _db*; yum clean all
    B. cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
    C. cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
    D. cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all

  • Question 447:

    A server administrator is given the hash of an account password that needs to be synchronized across all servers.

    Which of the following will allow the server administrator to configure the account password?

    A. Edit the password file.
    B. Use the usermod command.
    C. Edit the shadow file.
    D. Use the passwd command.

  • Question 448:

    An administrator is using a configuration management tool to define a system's configuration. The defined configuration can be used to provision new systems, rebuild existing systems, or roll back systems to their original baseline configurations.

    Which of the following BEST describes what the administrator is doing?

    A. Build automation
    B. Containerization
    C. Infrastructure as code
    D. Test automation

  • Question 449:

    Which of the following configuration management tools is considered agentless?

    A. Puppet
    B. Salt
    C. Ansible
    D. Chef

  • Question 450:

    A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?

    A. ~/ssh/authorized-keys
    B. /etc/authorized_keys
    C. /etc/sshd/ssh.conf
    D. ~/.ssh/authorized_keys

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-004 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.