


































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































































Question 1. Which component is primarily responsible for initializing the hardware and starting the boot process in modern systems? A) BIOS/UEFI B) Bootloader (GRUB/GRUB2) C) Kernel D) initramfs Answer: A Explanation: BIOS/UEFI initializes hardware components during system startup and then hands control over to the bootloader, making it the first step in the boot process. Question 2. What is the main purpose of initramfs during Linux boot? A) To load device drivers needed for mounting the root filesystem B) To replace the kernel C) To provide network configuration D) To manage user sessions Answer: A Explanation: initramfs contains necessary drivers and tools to mount the root filesystem, enabling the kernel to access the root partition and continue booting. Question 3. Which systemd target is used to bring the system to a multi-user state without GUI? A) graphical.target B) multi-user.target C) reboot.target D) rescue.target Answer: B Explanation: multi-user.target initializes a non-graphical multi-user environment, analogous to traditional runlevels 3. Question 4. How can you troubleshoot a Linux system that fails to boot into normal mode but can access rescue mode?
A) Check kernel parameters B) Review systemd targets C) Examine boot logs in rescue mode D) All of the above Answer: D Explanation: Troubleshooting involves examining kernel parameters, systemd targets, and logs in rescue mode to identify and resolve boot issues. Question 5. Which command manages systemd services and units? A) systemctl B) service C) init D) chkconfig Answer: A Explanation: systemctl is the primary command for managing systemd services, units, and targets. Question 6. What is the function of kernel modules? A) To extend kernel functionality without rebuilding B) To replace the kernel C) To initialize user space applications D) To manage user permissions Answer: A Explanation: Kernel modules add or remove features dynamically, allowing the kernel to support hardware or functionalities as needed. Question 7. Which command is used to compile a custom kernel? A) make B) gcc C) ld
Explanation: cgroups control resource allocation and limits for groups of processes, aiding in resource management. Question 11. Which command displays detailed CPU, memory, and I/O statistics in real-time? A) top B) vmstat C) atop D) sar Answer: C Explanation: atop provides real-time, detailed monitoring of CPU, memory, disk, and network resources for each process. Question 12. How can you extend a Logical Volume (LV) in LVM? A) lvextend B) lvshrink C) lvresize D) Both A and C Answer: D Explanation: 'lvextend' increases size; 'lvresize' can both extend and reduce LV size, making them versatile for LVM management. Question 13. Which RAID level provides redundancy by mirroring data across 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 in case one disk fails.
Question 14. What is the primary advantage of using SAN over NAS? A) Block-level access and shared storage across servers B) File-level access C) Easier scalability D) Lower cost Answer: A Explanation: SAN provides block-level storage access, suitable for high-performance applications, unlike NAS which provides file-level access. Question 15. Which filesystem attribute allows assigning custom metadata to files? A) Extended attributes B) ACLs C) Quotas D) Permissions Answer: A Explanation: Extended attributes store custom metadata associated with files beyond standard permissions. Question 16. How can you set disk quotas on a filesystem? A) Using 'setquota' command B) Editing /etc/fstab C) Configuring in /etc/quotas D) Using sysctl Answer: A Explanation: 'setquota' assigns disk space and inode limits to users or groups on filesystems with quotas enabled. Question 17. Which configuration file is used to set up a local Yum repository? A) /etc/yum.repos.d/
Answer: A Explanation: 'auditctl' is used to set, modify, and manage audit rules dynamically. Question 21. What is the primary function of SELinux? A) To provide mandatory access controls based on policies B) To manage user passwords C) To encrypt network traffic D) To configure firewall rules Answer: A Explanation: SELinux enforces security policies that restrict process capabilities, enhancing system security. Question 22. How can you check the status of SELinux enforcement? A) sestatus B) getenforce C) sestatus or getenforce D) selinux-status Answer: C Explanation: Both 'sestatus' and 'getenforce' provide information on SELinux's current status and mode. Question 23. Which tool is used for hardening SSH configurations? A) sshd_config B) ssh-keygen C) ssh-copy-id D) ssh-agent Answer: A Explanation: 'sshd_config' contains parameters that control SSH server behavior and security hardening measures.
Question 24. Which feature in Linux helps detect unauthorized modifications or rootkits? A) chkrootkit B) rkhunter C) AIDE D) All of the above Answer: D Explanation: All three tools help detect rootkits and file modifications, aiding in intrusion detection. Question 25. What is the purpose of 'setcap' command? A) To set capabilities on executables for fine-grained privilege management B) To set file permissions C) To set SELinux policies D) To configure kernel parameters Answer: A Explanation: 'setcap' assigns specific Linux capabilities to executables, allowing fine-grained privilege control without full root access. Question 26. Which technique is used to prevent unauthorized USB device access? A) USBGuard B) AppArmor C) SELinux D) iptables Answer: A Explanation: USBGuard manages and enforces policies controlling USB device access on Linux systems. Question 27. Which protocol provides secure file transfer over SSH? A) FTP B) SFTP
Answer: A Explanation: /etc/dhcp/dhcpd.conf contains DHCP server configuration such as IP ranges, reservations, and options. Question 31. How can you secure a web server like Apache or Nginx? A) Enable SSL/TLS B) Configure security headers C) Disable unnecessary modules D) All of the above Answer: D Explanation: Securing web servers involves enabling encryption, setting appropriate headers, and disabling unused modules. Question 32. Which method is used to implement load balancing with Nginx? A) Reverse proxy with multiple backend servers B) DNS round-robin C) Hardware load balancers only D) Static IP assignment Answer: A Explanation: Nginx can reverse proxy requests to multiple backend servers, distributing load effectively. Question 33. How does Kerberos enhance NFS security? A) Provides mutual authentication between client and server B) Encrypts data at rest C) Manages user permissions D) Automatically updates files Answer: A Explanation: Kerberos provides strong authentication, preventing unauthorized access to NFS shares.
Question 34. Which Samba role allows a Linux server to act as a domain controller? A) As a member B) As an active directory domain controller C) As a client D) As a share Answer: B Explanation: Samba can be configured to act as an Active Directory domain controller, managing user authentication. Question 35. Which protocol is used for secure email retrieval? A) SMTP B) IMAP over SSL/TLS C) POP D) FTP Answer: B Explanation: IMAP over SSL/TLS provides secure email retrieval, encrypting data between client and server. Question 36. Which file contains the main configuration for Postfix? A) /etc/postfix/main.cf B) /etc/mail.conf C) /etc/sendmail.cf D) /etc/exim/exim.conf Answer: A Explanation: main.cf is the primary configuration file for Postfix, controlling its operation. Question 37. Which cryptographic standard is used by X.509 certificates? A) RSA B) AES
Answer: A Explanation: Address Space Layout Randomization (ASLR) randomizes memory addresses, making exploitation more difficult. Question 41. What is the purpose of 'ulimit'? A) To set resource limits for processes B) To configure network interfaces C) To manage user permissions D) To control kernel modules Answer: A Explanation: 'ulimit' sets limits on system resources such as CPU time, memory, or number of open files for processes. Question 42. Which command displays current process resource usage? A) ps B) top C) pidof D) kill Answer: B Explanation: 'top' provides a real-time view of processes with resource consumption details. Question 43. How can you extend an existing LVM snapshot? A) lvconvert --merge B) lvcreate --snapshot C) lvextend D) lvreduce Answer: B Explanation: 'lvcreate --snapshot' creates a snapshot; to merge, 'lvconvert --merge' is used.
Question 44. Which RAID level combines striping and mirroring for high performance and redundancy? A) RAID 0 B) RAID 1 C) RAID 10 D) RAID 5 Answer: C Explanation: RAID 10 combines striping (RAID 0) and mirroring (RAID 1), offering high performance and redundancy. Question 45. Which storage protocol is commonly used for block storage over IP networks? A) iSCSI B) NFS C) SMB D) FTP Answer: A Explanation: iSCSI allows block-level storage to be accessed over IP networks, suitable for SAN configurations. Question 46. What feature allows setting permissions on files and directories beyond traditional UNIX permissions? A) ACLs B) Extended attributes C) Quotas D) SetUID Answer: A Explanation: Access Control Lists (ACLs) provide fine-grained permissions beyond standard owner/group/others. Question 47. How do you enable quotas on a filesystem?
D) auditctl Answer: A Explanation: logrotate manages log file rotation, compression, and retention policies automatically. Question 51. Which command is used to check the current SELinux mode? A) getenforce B) sestatus C) sestatus or getenforce D) selinux-status Answer: C Explanation: Both 'getenforce' and 'sestatus' provide current SELinux mode details. Question 52. Which security mechanism uses policies to restrict process capabilities at runtime? A) AppArmor B) SELinux C) systemd D) firewalld Answer: B Explanation: SELinux enforces mandatory access controls based on policies to restrict process actions. Question 53. Which Linux command is used to check for open network ports and connections? A) netstat B) ss C) lsof - i D) All of the above Answer: D Explanation: 'netstat', 'ss', and 'lsof - i' all can display active network connections and open ports.
Question 54. Which VPN protocol provides secure site-to-site connections? A) OpenVPN B) IPsec C) PPTP D) Both A and B Answer: D Explanation: Both OpenVPN and IPsec support secure, site-to-site VPN connections. Question 55. What does 'iptables' primarily manage? A) Firewall rules and packet filtering B) Network address translation only C) Routing tables D) DNS resolution Answer: A Explanation: 'iptables' manages firewall rules, filtering, and NAT for network traffic control. Question 56. Which command is used for creating a new Docker container? A) docker run B) docker create C) docker start D) docker build Answer: A Explanation: 'docker run' creates and starts a new container from an image. Question 57. What is the primary purpose of 'kubectl'? A) Managing Kubernetes clusters B) Building Docker images C) Managing system services
Question 61. Which tool is used to manage shared storage with distributed file systems like GlusterFS? A) gluster volume B) ceph-deploy C) drbdadm D) vgs Answer: A Explanation: 'gluster volume' manages volumes in GlusterFS, configuring distributed storage. Question 62. Which load balancing algorithm distributes requests evenly across servers? A) Round Robin B) Least Connections C) IP Hash D) All of the above Answer: D Explanation: All listed algorithms are used for load balancing, with different strategies for distributing traffic. Question 63. In virtualization, what is 'full virtualization'? A) Virtual machines run unmodified guest OS with hardware emulation B) Virtual machines share the host OS kernel C) Virtualization without hardware support D) Containers with kernel sharing Answer: A Explanation: Full virtualization emulates complete hardware, allowing unmodified guest OS to run independently. Question 64. Which hypervisor type is typically installed directly on hardware? A) Type 1 (bare-metal)
B) Type 2 (hosted) C) Both A and B D) Neither Answer: A Explanation: Type 1 hypervisors run directly on hardware, providing better performance and security. Question 65. Which container management tool supports image building without a daemon? A) Docker B) Podman C) LXC D) OpenVZ Answer: B Explanation: Podman supports daemonless container management and image building. Question 66. Which technology enables multiple nodes to act as a single storage system? A) Ceph B) GlusterFS C) DRBD D) NFS Answer: B Explanation: GlusterFS aggregates storage across multiple nodes into a unified filesystem. Question 67. What is the primary purpose of a load balancer? A) Distribute network traffic across multiple servers B) Encrypt data C) Authenticate users D) Manage DNS resolution Answer: A