Docsity

CompTIA Network Ultimate Exam, Exams of Cybersecurity

Toggle sidebar
bg1
CompTIA Network Ultimate Exam
Question 1. What is the primary purpose of the Filesystem Hierarchy Standard (FHS) in Linux?
A) To define network protocols used in Linux
B) To standardize directory layout and structure
C) To manage user permissions
D) To specify kernel module loading procedures
Answer: B
Explanation: FHS provides a standard directory structure for Linux distributions, ensuring consistency
across systems and simplifying management.
Question 2. Which bootloader is most commonly used with modern Linux systems?
A) LILO
B) GRUB2
C) SYSLINUX
D) NTLDR
Answer: B
Explanation: GRUB2 is the default and most widely used bootloader in contemporary Linux distributions
due to its flexibility and features.
Question 3. Which command is used to identify the current kernel version?
A) uname -r
B) cat /etc/os-release
C) lsb_release -a
D) kernel --version
Answer: A
Explanation: uname -r displays the kernel version running on the system.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33

Partial preview of the text

Download CompTIA Network Ultimate Exam and more Exams Cybersecurity in PDF only on Docsity!

Question 1. What is the primary purpose of the Filesystem Hierarchy Standard (FHS) in Linux? A) To define network protocols used in Linux B) To standardize directory layout and structure C) To manage user permissions D) To specify kernel module loading procedures Answer: B Explanation: FHS provides a standard directory structure for Linux distributions, ensuring consistency across systems and simplifying management. Question 2. Which bootloader is most commonly used with modern Linux systems? A) LILO B) GRUB C) SYSLINUX D) NTLDR Answer: B Explanation: GRUB2 is the default and most widely used bootloader in contemporary Linux distributions due to its flexibility and features. Question 3. Which command is used to identify the current kernel version? A) uname - r B) cat /etc/os-release C) lsb_release - a D) kernel --version Answer: A Explanation: uname - r displays the kernel version running on the system.

Question 4. How do you load a kernel module manually? A) insmod B) loadmodule C) modload D) kernelload Answer: A Explanation: insmod is used to insert a specified kernel module into the running kernel. Question 5. Which command is suitable for removing a kernel module? A) rmmod B) modremove C) unload D) remove_module Answer: A Explanation: rmmod removes a loaded kernel module from the kernel. Question 6. What does the 'find' command do in Linux? A) Searches for files matching criteria B) Finds the largest files C) Finds network interfaces D) Finds processes by name Answer: A Explanation: The find command searches the filesystem for files and directories based on specified criteria.

Explanation: stat provides comprehensive information about a fileโ€™s metadata, including timestamps, permissions, and ownership. Question 10. Which partitioning tool is used for managing GPT partition tables? A) fdisk B) parted C) diskpart D) format Answer: B Explanation: parted supports managing GPT partition tables, unlike fdisk, which is primarily for MBR. Question 11. Which command creates a physical volume for LVM? A) pvcreate B) vgcreate C) lvcreate D) lvextend Answer: A Explanation: pvcreate initializes a disk or partition as a physical volume for LVM. Question 12. How do you resize a logical volume in LVM? A) lvresize B) lvextend C) resize2fs D) Both A and B Answer: D

Explanation: lvresize can resize LVM logical volumes, and lvextend is a common command used to extend size. Question 13. Which filesystem is known for its advanced features like snapshots and checksumming? A) ext B) XFS C) Btrfs D) NTFS Answer: C Explanation: Btrfs supports snapshots, checksumming, and other advanced features. Question 14. Which RAID level provides data redundancy with two disks? A) RAID 0 B) RAID 1 C) RAID 5 D) RAID 10 Answer: B Explanation: RAID 1 mirrors data across two disks, providing redundancy. Question 15. Which command is used to assign a static IP address in Linux network configuration? A) ip addr add B) ifconfig C) nmcli con mod D) Both A and C Answer: D

Answer: A Explanation: chmod changes the permissions associated with a file or directory. Question 19. How does the 'setfacl' command differ from 'chmod'? A) setfacl manages fine-grained ACL permissions B) setfacl changes ownership C) setfacl deletes files D) setfacl is used for network configuration Answer: A Explanation: setfacl sets Access Control Lists, allowing detailed permission control beyond standard chmod permissions. Question 20. Which SELinux mode enforces security policies strictly? A) Disabled B) Permissive C) Enforcing D) Relaxed Answer: C Explanation: Enforcing mode actively enforces SELinux policies, providing security. Question 21. Which firewall management tool uses zones to define trust levels? A) firewalld B) ufw C) iptables D) nftables

Answer: A Explanation: firewalld uses zones to specify different trust levels and associated rules. Question 22. How can SSH be hardened for better security? A) Enable root login B) Disable password authentication C) Use default port 22 D) Allow all users Answer: B Explanation: Disabling password authentication and using SSH keys enhances security. Question 23. What is a self-signed certificate used for? A) Secure communication with third-party authorities B) Testing and internal encryption C) Signing code D) Authenticating users Answer: B Explanation: Self-signed certificates are typically used for testing or internal encryption, not trusted externally. Question 24. Which scripting element specifies the interpreter used to execute the script? A) Shebang (#/bin/bash) B) #include C) import D) exec

Answer: A Explanation: git init initializes a new local repository. Question 28. Which Git command is used to temporarily save changes without committing? A) git stash B) git commit C) git checkout D) git branch Answer: A Explanation: git stash saves changes temporarily, allowing you to work cleanly. Question 29. In Ansible, what is a "Playbook"? A) A script defining automation tasks B) A configuration file for SSH C) A container image D) A network configuration file Answer: A Explanation: Ansible Playbooks are YAML files defining automation workflows. Question 30. Which command shows real-time CPU and memory usage? A) top B) ps C) free D) htop

Answer: A D) htop Explanation: top and htop display real-time system resource usage; htop provides an enhanced, interactive interface. Question 31. Which tool can be used to analyze network traffic captures? A) tcpdump B) netstat C) traceroute D) ping Answer: A Explanation: tcpdump captures and analyzes network packets. Question 32. Which filesystem repair utility is used for XFS filesystems? A) fsck B) xfs_repair C) e2fsck D) xfscheck Answer: B Explanation: xfs_repair repairs XFS filesystems specifically. Question 33. How can you identify high inode usage on a filesystem? A) df - i B) du - s C) stat

D) traceroute Answer: A Explanation: netstat displays active network connections and listening ports. Question 37. Which command can be used to check disk I/O statistics? A) iostat B) df C) du D) lsblk Answer: A Explanation: iostat reports I/O device usage and performance. Question 38. What does the 'mount' command do? A) Attaches a filesystem to the directory tree B) Formats a disk C) Checks filesystem integrity D) Unmounts a filesystem Answer: A Explanation: mount attaches a filesystem to a specified directory, making it accessible. Question 39. Which command is used to create a new user account? A) useradd B) adduser C) usermod

D) Both A and B Answer: D Explanation: useradd and adduser are used to create new user accounts. Question 40. How do you add a user to a specific group? A) usermod - aG groupname username B) groupadd username C) usergroup add username groupname D) groupmod - a user Answer: A Explanation: usermod - aG appends a user to a specified group. Question 41. Which command is used to change file ownership? A) chown B) chgrp C) chmod D) setfacl Answer: A Explanation: chown changes the ownership of files and directories. Question 42. What is a key benefit of using ACLs over traditional permissions? A) Fine-grained permission control B) Simplifies permission management C) Replaces ownership settings

D) Use default port 22 Answer: B Explanation: Using SSH keys enhances security by avoiding password-based authentication. Question 46. Which type of certificate is self-signed? A) Trusted third-party certificate B) Internal testing certificate C) CA-issued certificate D) Commercial certificate Answer: B Explanation: Self-signed certificates are generated internally and not verified by a third-party CA. Question 47. In Bash scripting, what does the 'if' statement do? A) Executes commands conditionally B) Creates loops C) Defines functions D) Reads user input Answer: A Explanation: 'if' executes commands based on a condition. Question 48. Which command is used to run a container with Podman? A) podman run B) docker run C) container run

D) runcontainer Answer: A Explanation: podman run starts a container using Podman. Question 49. How do you clone a remote Git repository? A) git clone B) git init C) git copy D) git pull Answer: A Explanation: git clone copies a remote repository to your local machine. Question 50. Which Ansible component executes tasks on remote hosts? A) Control Node B) Playbook C) Inventory D) Ansible Engine Answer: D Explanation: The Ansible engine runs tasks on hosts defined in the inventory. Question 51. Which command shows real-time CPU load averages? A) uptime B) top C) loadavg

D) inode Answer: A Explanation: df - i shows inode usage statistics. Question 55. Which command lists block devices and their partitions? A) lsblk B) fdisk - l C) lspci D) lsusb Answer: A Explanation: lsblk displays block devices, partitions, and mount points. Question 56. What tool is used to view kernel ring buffer messages? A) dmesg B) journalctl C) syslog D) logread Answer: A Explanation: dmesg outputs kernel ring buffer messages. Question 57. Which command is used to check network connectivity? A) ping B) traceroute C) mtr

D) All of the above Answer: D Explanation: ping, traceroute, and mtr all test network connectivity. Question 58. Which command is used to view detailed hardware information on PCI devices? A) lspci B) lsusb C) lshw D) dmidecode Answer: A Explanation: lspci lists PCI hardware devices. Question 59. How do you create a new swap space in Linux? A) mkswap B) swapon C) swapoff D) Both A and B Answer: D Explanation: mkswap initializes swap space, and swapon enables it. Question 60. Which command is used to analyze disk space usage of directories? A) du B) df C) ls