CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 19,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 19,2024
Which of the following is the purpose of the vmlinux file on a Linux system?
- A . To prevent a Linux kernel panic
- B . To start a Linux virtual machine
- C . To provide the executable kernel for the system
- D . To enable resource access to the network
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
A junior administrator is migrating a virtual machine from a Type 1 hypervisor to a Type 2 hypervisor.
To ensure portability, which of the following formats should the administrator export from the Type 1 hypervisor to ensure compatibility?
- A . OWASP
- B . VDI
- C . VMDK
- D . OVA
All users are reporting that they cannot connect to the SFTP server.
The administrator runs a scan:
Which of the following would allow the administrator to fix the problem?
- A . Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
- B . Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
- C . Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
- D . Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.
Two specific users need access to a directory owned by root where backups are located.
Which of the following commands would BEST ensure the specified users can access the backup files?
- A . umask
- B . chcon
- C . chmod
- D . setfacl
A junior systems administrator is upgrading a package that was installed on a Red Hat-based system.
The administrator is tasked with the following:
– Update and install the new package.
– Verify the new package version is installed.
Which of the following should be done to BEST accomplish these task? (Choose two.)
- A . yum install <package name>
- B . yum upgrade
- C . rpm Ce <package name>
- D . rpm Cqa
- E . apt-get <package name>
- F . apt-get upgrade
A systems administrator observes high latency values when reaching a remote web server.
Which of the following commands will help determine and isolate issues on the network side?
- A . mtr
- B . dig
- C . netstat
- D . route
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
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?
- A . cd /etcln Cs /usr/share/zoneinfo/US/Pacific localtime
- B . cd /usr/localln Cs /usr/share/zoneinfo/US/Pacific zoneinfo
- C . cd /etc/localln Cs /usr/share/zoneinfo/US/Pacific localtime
- D . cd /usr/share/localln Cs /usr/share/zoneinfo/US/Pacific localectl
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 . authorized_keys
- B . ~/.ssh/ssh_config
- C . id_rsa.pub
- D . known_hosts
No comment