CompTIA Linux+ Exam Version: Demo [ Total Questions: 10] Web: www.dumpscafe.com Email: support@dumpscafe.com CompTIA XK0-005 IMPORTANT NOTICE Feedback We have developed quality product and state-of-art service to ensure our customers interest. If you have any suggestions, please feel free to contact us at feedback@dumpscafe.com Support If you have any questions about our product, please provide the following items: exam code screenshot of the question login id/email please contact us at and our technical experts will provide support within 24 hours. support@dumpscafe.com Copyright The product of each order has its own encryption code, so you should use it independently. Any unauthorized changes will inflict legal punishment. We reserve the right of final explanation for this statement. CompTIA - XK0-005 Pass Exam 1 of 9 Verified Solution - 100% Result Category Breakdown Category Number of Questions System Management 7 Security 1 Troubleshooting 2 TOTAL 10 Exam Topic Breakdown Exam Topic Number of Questions Topic 3 : Exam Pool C 4 Topic 1 : Exam pool A 4 Topic 2 : Exam Pool B 2 TOTAL 10 CompTIA - XK0-005 Pass Exam 2 of 9 Verified Solution - 100% Result A. B. C. D. Topic 3, Exam Pool C Question #:1 - - [System Management] (Exam Topic 3) A new database is installed on a server. To comply with the database vendor requirement, the huge page function should be set permanently. Which of the following commands will set this parameter? sysctl -a "vm.nr_hugepage=100" echo "vm.nr_hiigepage=100" >> /etc/sysconfig/hugepage.conf echo "nvm.nr_hugepage=100" >> /etc/modprobe.conf echo "vm.nr_hugepage=100" >> /etc/sysctl.conf Answer: D Explanation Setting vm.nr_hugepage in /etc/sysctl.conf ensures the setting is persisted across reboots Incorrect Options: A : -a displays all; does not set. B : Typo in variable name (hiigepage). C : modprobe.conf is for module parameters, not sysctl variables. Reference: CompTIA Linux+ XK0-005 Study Guide, Chapter 10 man sysctl, /etc/sysctl.conf usage Question #:2 - - [Security] (Exam Topic 3) An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fails. The administrator executes: nslookup -querytype=AAAA www.comptia.org Can't find www.comptia.org: No answer CompTIA - XK0-005 Pass Exam 3 of 9 Verified Solution - 100% Result A. B. C. D. A. B. C. D. The workstation has a static entry in /etc/hosts: 104.18.99.101 www.comptia.org Which of the following is the most likely cause? The static entry needs to be removed from /etc/hosts. The remote website does not support IPv6, and the workstation requires it. The firewall needs to be modified to allow outbound HTTP and HTTPS. The nameserver in /etc/resolv.conf needs to be updated to 8.8.8.8. Answer: A Explanation The presence of a static entry in /etc/hosts for www.comptia.org forces the system to use this IP address instead of querying DNS. This prevents proper IPv6 (AAAA) resolution, as /etc/hosts only contains an IPv4 (A) record. Removing this static entry allows the system to query DNS for both IPv4 and IPv6 records. References: Linux /etc/hosts File – Linux Documentation Question #:3 - - [System Management] (Exam Topic 3) A Linux administrator was informed that the server time zone is incorrect. Which of the following commands should the administrator use to correct the time zone? timedatectl set-timezone America/New_York systemd-timezone set Asia/Tokyo systemctl configure-timezone Africa/Nairobi tzconfig configure Europe/London Answer: A Explanation In modern Linux distributions using systemd, the correct way to change the system time zone is by using the timedatectl command: CompTIA - XK0-005 Pass Exam 4 of 9 Verified Solution - 100% Result A. B. C. D. cpp timedatectl set-timezone <TimeZone> For example, to set the time zone to America/New_York, the command would be: cpp timedatectl set-timezone America/New_York Why the other options are incorrect? B. systemd-timezone set Asia/Tokyo # Incorrect, as there is no systemd-timezone command in Linux. C. systemctl configure-timezone Africa/Nairobi # Incorrect, systemctl does not have a configure-timezone option. D. tzconfig configure Europe/London # Incorrect, tzconfig was used in older Debian-based systems, but it has been deprecated in favor of timedatectl. References: CompTIA Linux+ Official Documentation timedatectl Documentation – Red Hat Question #:4 - - [System Management] (Exam Topic 3) An administrator is provisioning an Apache web server. When the administrator visits the server website, the browser displays a message indicating the website cannot be reached. Which of the following commands should the administrator use to verify whether the service Is running? systemctlstatus httpd systemctlmask httpd systemctlreload httpd systemctlrestart httpd Answer: A Explanation systemctl status httpd is the correct option to check if the Apache web server (httpd) is running. The systemctl status command provides detailed information about the service, including whether it is active and running. CompTIA - XK0-005 Pass Exam 5 of 9 Verified Solution - 100% Result A. B. C. D. A. B. C. Topic 1, Exam pool A Question #:5 - - [System Management] (Exam Topic 1) A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task? sudo useradd -e 2021-09-30 Project_user sudo useradd -c 2021-09-30 Project_user sudo modinfo -F 2021-09-30 Project_uses sudo useradd -m -d 2021-09-30 Project_user Answer: A Explanation The command that will accomplish this task is sudo useradd -e 2021-09-30 Project_user. This command will create a new user account named Project_user with an expiration date of 2021-09-30. The -e option of useradd specifies the date on which the user account will be disabled in YYYY-MM-DD format. The other options are not correct commands for creating a user account with an expiration date. The sudo useradd -c 2021-09-30 Project_user command will create a new user account named Project_user with a comment of 2021-09-30. The -c option of useradd specifies a comment or description for the user account, not an expiration date. The sudo modinfo -F 2021-09-30 Project_user command is invalid because modinfo is not a command for managing user accounts, but a command for displaying information about kernel modules. The -F option of modinfo specifies a field name to show, not an expiration date. The sudo useradd -m -d 2021- 09-30 Project_user command will create a new user account named Project_user with a home directory of 2021-09-30. The -m option of useradd specifies that the home directory should be created if it does not exist, and the -d option specifies the home directory name, not an expiration date. References: useradd(8) - Linux manual page; modinfo(8) - Linux manual page Question #:6 - - [Troubleshooting] (Exam Topic 1) A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task? visudo -c test -f /etc/sudoers sudo vi check CompTIA - XK0-005 Pass Exam 6 of 9 Verified Solution - 100% Result D. A. B. C. D. A. B. C. cat /etc/sudoers | tee test Answer: A Explanation The command visudo -c can be used to check the validity of the sudo rules in the /etc/sudoers file. The visudo command is a tool for editing and validating the /etc/sudoers file, which defines the rules for the sudo command. The -c option checks the syntax and logic of the file and reports any errors or warnings. The command visudo -c will verify the sudo rules and help the administrator avoid any mistakes. This is the correct command to use for this task. The other options are incorrect because they either do not check the validity of the file (test, sudo, or cat) or do not exist (sudo vi check). References: CompTIA Linux+ (XK0- 005) Certification Study Guide, Chapter 18: Securing Linux Systems, page 546. Question #:7 - - [System Management] (Exam Topic 1) A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task? xargs -f cat toDelete.txt -rm rm -d -r -f toDelete.txt cat toDelete.txt | rm -frd cat toDelete.txt | xargs rm -rf Answer: D Explanation The command cat toDelete.txt | xargs rm -rf will delete all files and directories with names that are contained in the toDelete.txt file. The cat command reads the file and outputs its contents to the standard output. The | operator pipes the output to the next command. The xargs command converts the output into arguments for the next command. The rm -rf command removes the files and directories recursively and forcefully. This is the correct way to accomplish the task. The other options are incorrect because they either use the wrong options (-f instead of -a for xargs), the wrong arguments (toDelete.txt instead of toDelete.txt filename for rm), or the wrong commands (rm instead of xargs). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 11: Managing Files and Directories, pages 349-350. Question #:8 - - [System Management] (Exam Topic 1) Which of the following commands will display the operating system? uname -n uname -s CompTIA - XK0-005 Pass Exam 7 of 9 Verified Solution - 100% Result C. D. uname -o uname -m Answer: C Explanation The command that will display the operating system is uname -o. This command uses the uname tool, which is used to print system information such as the kernel name, version, release, machine, and processor. The -o option stands for operating system, and prints the name of the operating system implementation (usually GNU /Linux). The other options are not correct commands for displaying the operating system. The uname -n command will display the network node hostname of the system. The uname -s command will display the kernel name of the system. The uname -m command will display the machine hardware name of the system. References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 1: Exploring Linux Command-Line Tools; uname(1) - Linux manual page CompTIA - XK0-005 Pass Exam 8 of 9 Verified Solution - 100% Result A. B. C. D. Topic 2, Exam Pool B Question #:9 - - [Troubleshooting] (Exam Topic 2) A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db. example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output: The administrator runs grep db.example.com /etc/hosts and receives the following output: Given this scenario, which of the following should the administrator do to address this issue? Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89. Modify the /etc/network file and change the db.example.com entry to 192.168.20.88. Modify the /etc/network file and change the db.example.com entry to 192.168.20.89. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88. Answer: D Explanation The administrator should modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88 to address the issue. The /etc/hosts file is a file that maps hostnames to IP addresses on Linux systems. The file can be used to override the DNS resolution and provide a local lookup for hostnames. The dig output shows that the DNS returns the IP address 192.168.20.88 for the hostname db.example.com, which is the correct IP address of the system. The grep output shows that the /etc/hosts file contains an entry for db.example.com with the IP address 192.168.20.89, which is the wrong IP address of the system. This can cause a conflict and prevent the system from being accessed by the hostname. The administrator should modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88, which is the correct IP address of the system. This will align the /etc/hosts file with the DNS and allow the system to be accessed by the hostname. The administrator should modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88 to address the issue. This is the correct answer to the question. The other options are incorrect because they either do not modify the /etc/hosts file (modify the /etc/network file and change the db.example.com entry to 192.168.20.88 or modify the /etc/network file and change the db.example.com entry to 192.168.20.89) or do not change the IP address to the correct one (modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Managing Network Connections, page 378. Question #:10 - - [System Management] (Exam Topic 2) Joe, a user, is unable to log in to the Linux system. Given the following output: CompTIA - XK0-005 Pass Exam 9 of 9 Verified Solution - 100% Result A. B. C. D. Which of the following commands would resolve the issue? usermod -s /bin/bash joe pam_tally2 -u joe -r passwd -u joe chage -E 90 joe Answer: B Explanation The command pam_tally2 -u joe -r will resolve the issue of Joe being unable to log in to the Linux system. The pam_tally2 command is a tool for managing the login counter for the PAM (Pluggable Authentication Modules) system. PAM is a framework for managing authentication and authorization on Linux systems. PAM allows the administrator to define the rules and policies for accessing various system resources and services, such as login, sudo, ssh, or cron. PAM also supports different types of authentication methods, such as passwords, tokens, biometrics, or smart cards. PAM can be used to implement login restrictions, such as limiting the number of failed login attempts, locking the account after a certain number of failures, or enforcing a minimum or maximum time between login attempts. The pam_tally2 command can display, reset, or unlock the login counter for the users or hosts. The -u joe option specifies the user name that the command should apply to. The -r option resets the login counter for the user. The command pam_tally2 -u joe -r will reset the login counter for Joe, which will unlock his account and allow him to log in to the Linux system. This will resolve the issue of Joe being unable to log in to the Linux system. This is the correct command to use to resolve the issue. The other options are incorrect because they either do not unlock the account (usermod -s /bin/bash joe or passwd -u joe) or do not affect the login counter (chage -E 90 joe). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 17: Implementing Basic Security, page 517. About dumpscafe.com dumpscafe.com was founded in 2007. We provide latest & high quality IT / Business Certification Training Exam Questions, Study Guides, Practice Tests. We help you pass any IT / Business Certification Exams with 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. View list of all certification exams: All vendors We prepare state-of-the art practice tests for certification exams. You can reach us at any of the email addresses listed below. Sales: sales@dumpscafe.com Feedback: feedback@dumpscafe.com Support: support@dumpscafe.com Any problems about IT certification or our products, You can write us back and we will get back to you within 24 hours.