


















































































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 of the CIA triad ensures that data is only accessible to authorized users? A) Integrity B) Availability C) Confidentiality D) Authentication Answer: C Explanation: Confidentiality protects information from unauthorized disclosure, ensuring only permitted individuals can view it. Question 2. In a layered defense architecture, which layer typically provides the first line of protection against external network attacks? A) Application layer firewalls B) Host-based intrusion detection systems C) Perimeter network firewalls D) Physical security controls Answer: C Explanation: Perimeter firewalls sit at the network edge and filter inbound/outbound traffic, acting as the initial barrier. Question 3. Which class of attacker is most likely motivated by political or social causes rather than financial gain? A) Script kiddie B) Hacktivist C) Insider threat D) State‑sponsored actor
Answer: B Explanation: Hacktivists target systems to promote ideological goals, often defacing websites or leaking data. Question 4. What type of attack exploits human psychology to trick users into revealing credentials? A) Phishing B) Buffer overflow C) SQL injection D) Man‑in‑the‑middle Answer: A Explanation: Phishing is a social‑engineering technique that lures victims into divulging sensitive information. Question 5. When performing a basic risk assessment, which factor is NOT typically evaluated? A) Threat likelihood B) Asset value C) Employee satisfaction D) Potential impact Answer: C Explanation: Employee satisfaction is unrelated to risk assessment; the focus is on threats, assets, and impacts. Question 6. Which BIOS/UEFI security feature helps prevent unauthorized changes to firmware settings? A) Secure Boot
Question 9. To forward all kernel audit events to a remote syslog server, which auditd configuration directive is used? A) log_file B) remote_server C) dispatcher D) audispd.conf Answer: D Explanation: The audispd plugin configuration (audispd.conf) defines remote forwarding of audit events. Question 10. Which iptables rule option is used to log matching packets without dropping them? A) - j LOG B) - j DROP C) - j ACCEPT D) - j REJECT Answer: A Explanation: The LOG target records packet details in the kernel log while allowing further processing. Question 11. When creating a log report, which command filters journal entries for a specific service? A) journalctl - u service_name B) tail - f /var/log/service.log C) grep service_name /var/log/messages D) logwatch --service service_name
Answer: A Explanation: journalctl - u selects entries belonging to the specified systemd unit. Question 12. Which phase of the cyber‑kill chain involves the attacker establishing a foothold on the target system? A) Reconnaissance B) Weaponization C) Installation D) Exfiltration Answer: C Explanation: Installation is when malware is placed, creating a persistent foothold. Question 13. An IDS that monitors network traffic for known signatures is classified as: A) Host‑based IDS (HIDS) B) Network‑based IDS (NIDS) C) Behavioral IDS D) Anomaly‑based IDS Answer: B Explanation: NIDS inspects traffic on the network and matches it against signature databases. Question 14. Which PAM module is commonly used to enforce password complexity rules? A) pam_unix.so B) pam_limits.so C) pam_cracklib.so D) pam_tally2.so
D) chgrp group file Answer: B Explanation: chown user file sets the owner while leaving the group unchanged. Question 18. What does the SUID bit allow when set on an executable file? A) The file runs with the group ID of the file owner B) The file runs with the effective user ID of the file owner C) Only the owner can execute the file D) The file cannot be executed by anyone Answer: B Explanation: SUID causes the process to execute with the file owner’s UID, often root. Question 19. Which permission setting is appropriate for a directory that should allow all users to create files but not delete others’ files? A) 777 B) 1775 C) 2755 D) 755 Answer: B Explanation: The sticky bit (1) on 1775 permits anyone to write but only owners can delete their own files. Question 20. Which tool is commonly used to verify the integrity of installed packages on a Linux system? A) tripwire B) rpm – V (or dpkg ‑V)
C) top D) syslogd Answer: B Explanation: rpm – V (or dpkg ‑V) checks files against package metadata for changes. Question 21. What is the purpose of filesystem quotas? A) Encrypt user data automatically B) Limit the amount of disk space a user or group can consume C) Provide automatic backups of home directories D) Restrict file execution permissions Answer: B Explanation: Quotas enforce limits on disk usage per user or group, preventing resource exhaustion. Question 22. Which protocol is considered insecure for remote system administration because it transmits data in clear text? A) SSH B) RDP C) Telnet D) SCP Answer: C Explanation: Telnet sends credentials and commands unencrypted, making it vulnerable to interception. Question 23. In SSH, which authentication method provides the strongest protection against password‑guessing attacks?
Question 26. Which common programming bug results from writing data beyond the bounds of a buffer? A) SQL injection B) Buffer overflow C) Cross‑site scripting D) Race condition Answer: B Explanation: Buffer overflows occur when a program writes past allocated memory, potentially allowing code execution. Question 27. Which tool assists developers in tracking library dependencies for a compiled binary? A) ldd B) strace C) top D) diff Answer: A Explanation: ldd lists the shared libraries required by an executable. Question 28. What is the purpose of “defense in depth” in application security? A) Rely on a single firewall to protect all assets B) Apply multiple, overlapping security controls at different layers C) Encrypt all data at rest only D) Disable all network services on production servers Answer: B
Explanation: Defense in depth uses layered controls, so if one fails, others still protect the system. Question 29. Which Linux Security Module enforces mandatory access control policies using labels? A) AppArmor B) SELinux C) Grsecurity D) TOMOYO Answer: B Explanation: SELinux applies MAC policies based on security contexts (labels) for subjects and objects. Question 30. In AppArmor, which profile mode logs violations but does not enforce them? A) enforce B) complain C) deny D) audit Answer: B Explanation: The complain mode records policy breaches without blocking the action. Question 31. Which kernel space component handles hardware interaction and privileged operations? A) Userland daemons B) System call interface C) Kernel modules
B) Log in directly as root for routine tasks C) Use sudo for privileged commands and disable direct root SSH login D) Store the root password in a plain‑text file on the server Answer: C Explanation: sudo provides accountability and limits exposure, while disabling root SSH reduces attack surface. Question 35. Which audit rule would monitor all attempts to change file permissions on /etc/passwd? A) - w /etc/passwd - p a B) - w /etc/passwd - p x C) - w /etc/passwd - p wa D) - a always,exit - F path=/etc/passwd - F perm=wa Answer: D Explanation: The rule watches for write (w) and attribute (a) changes on the specific path. Question 36. In the context of security, what does the principle of “least privilege” dictate? A) Users should have administrative rights on all systems B) Services should run with the minimum permissions needed to function C) All files should be world‑readable D) Passwords should be shared among team members Answer: B Explanation: Least privilege limits potential damage by granting only necessary rights. Question 37. Which of the following is a physical security control for a data center?
A) Firewall rules B) Biometric access readers C) SELinux policies D) Encrypted backups Answer: B Explanation: Biometric readers verify identity before allowing physical entry. Question 38. Which of these is NOT a typical component of a risk matrix? A) Likelihood scale B) Impact scale C) Cost of compliance D) Risk rating Answer: C Explanation: While cost may be considered in decisions, the matrix itself uses likelihood, impact, and resulting risk level. Question 39. Which log file typically contains authentication failures on a system using PAM? A) /var/log/syslog B) /var/log/auth.log C) /var/log/kern.log D) /var/log/dmesg Answer: B Explanation: auth.log records authentication events, including PAM failures.
Question 43. In Kerberos, what is the purpose of the Ticket Granting Ticket (TGT)? A) It encrypts the user’s password for storage B) It provides a one‑time password for each service C) It allows the user to request service tickets without re‑authenticating D) It logs all authentication attempts for auditing Answer: C Explanation: The TGT is obtained after initial login and used to obtain service tickets. Question 44. Which of the following is a common method for detecting a compromised host on a network? A) Monitoring CPU usage spikes B) Checking DNS cache size C) Scanning for open ports only on firewalls D) Verifying system time synchronization Answer: A Explanation: Unusual CPU usage can indicate malware or unauthorized processes. Question 45. Which PAM module can be used to limit the number of failed login attempts? A) pam_unix.so B) pam_tally2.so C) pam_limits.so D) pam_env.so Answer: B Explanation: pam_tally2 tracks login failures and can lock accounts after a threshold.
Question 46. What is the effect of setting the “noexec” mount option on /tmp? A) Files cannot be read from /tmp B) Executable files cannot be run from /tmp C) /tmp is hidden from users D) All files in /tmp are encrypted automatically Answer: B Explanation: noexec prevents execution of binaries located on the mounted filesystem. Question 47. Which of the following best describes a “zero‑day” vulnerability? A) A flaw that has been patched by the vendor B) A vulnerability that is publicly disclosed but not yet exploited C) An unknown vulnerability that is exploited before a fix is available D) A bug that only affects systems after a reboot Answer: C Explanation: Zero‑day attacks target previously unknown flaws with no existing patches. Question 48. Which command can be used to generate a SHA‑256 hash of a file for integrity verification? A) md5sum file B) sha256sum file C) sha1sum file D) checksum file Answer: B Explanation: sha256sum computes a SHA‑256 digest, suitable for integrity checks.
Explanation: CAP_NET_BIND_SERVICE grants the ability to bind to low‑numbered ports without full root. Question 52. What does the “auditd” daemon primarily do? A) Collects and stores kernel audit records B) Monitors network traffic for intrusions C) Rotates system log files D) Enforces SELinux policies Answer: A Explanation: auditd receives events from the kernel audit subsystem and writes them to log files. Question 53. Which of the following is a characteristic of a “stateful” firewall? A) Filters packets only based on IP addresses B) Keeps track of active connections and allows return traffic automatically C) Inspects only the first packet of a TCP handshake D) Does not support NAT Answer: B Explanation: Stateful firewalls maintain connection tables, enabling dynamic rule decisions. Question 54. Which command can be used to view the current firewall rules managed by nftables? A) iptables - L B) nft list ruleset C) firewalld --list-all D) ufw status verbose
Answer: B Explanation: nft list ruleset displays the active nftables configuration. Question 55. Which of the following is the most secure method to store encryption keys on a Linux host? A) In a plain‑text file in /etc B) In an environment variable C) In a hardware security module (HSM) or TPM D) Embedded directly in application source code Answer: C Explanation: HSMs or TPMs protect keys from extraction and provide secure storage. Question 56. Which of the following attacks exploits the trust relationship between a client and a server by intercepting and modifying traffic? A) Replay attack B) Man‑in‑the‑middle (MITM) C) Brute‑force attack D) DoS attack Answer: B Explanation: MITM places the attacker between two communicating parties to alter data. Question 57. In the context of Linux file systems, what does the “fsck” utility do? A) Formats a partition B) Checks and repairs filesystem inconsistencies C) Defragments the filesystem