Professional Cyber Security Adapted Exam Answer Key with Notes


  1. What is the primary purpose of a firewall?
    Answer: To prevent unauthorized access
    Note: Firewalls act as a barrier between a trusted internal network and untrusted external networks (like the internet), filtering traffic based on security rules.
  2. Which of the following is a type of Denial of Service (DoS) attack?
    Answer: Flooding
    Note: Flooding attacks overwhelm a server or network resource with excessive traffic, making it unavailable to legitimate users.
  3. What does the term ‘phishing’ refer to in cyber security?
    Answer: Attempting to steal sensitive information via fraudulent emails
    Note: Phishing typically involves tricking users into revealing confidential data, such as usernames or passwords, through fake communications.
  4. Which of the following encryption algorithms is commonly used for secure email communication?
    Answer: RSA
    Note: RSA is widely used in email encryption, especially for public-key cryptography, where the sender and receiver have different keys.
  5. What does the acronym ‘VPN’ stand for?
    Answer: Virtual Private Network
    Note: VPNs create a secure, encrypted connection over a less secure network, like the internet, to protect user privacy and data.
  6. Which type of attack is a ‘man-in-the-middle’ attack?
    Answer: Data interception and alteration
    Note: In a MITM attack, the attacker intercepts and potentially alters communications between two parties without their knowledge.
  7. What is a zero-day vulnerability?
    Answer: A vulnerability that is exploited before a patch is available
    Note: Zero-day vulnerabilities are particularly dangerous because they are unknown to the software vendor and unpatched.
  8. Which of the following is an example of multi-factor authentication?
    Answer: Password + SMS Code
    Note: Multi-factor authentication (MFA) requires more than one form of verification, such as something you know (password) and something you have (SMS code).
  9. What does the acronym ‘SQL’ stand for in SQL Injection attacks?
    Answer: Structured Query Language
    Note: SQL injection exploits vulnerabilities in SQL-based applications by injecting malicious SQL commands into queries.
  10. Which of the following is a best practice for preventing cross-site scripting (XSS) attacks?
    Answer: Input validation and output encoding
    Note: Proper input validation and encoding of output prevent malicious scripts from being injected into web pages.
  11. What does ‘social engineering’ mean in cyber security?
    Answer: Manipulating individuals into divulging confidential information
    Note: Social engineering is a tactic used by attackers to trick people into providing sensitive information or performing actions that compromise security.
  12. Which of the following is an example of a network-based attack?
    Answer: Man-in-the-middle attack
    Note: MITM attacks are executed through the network, where attackers intercept and possibly alter communication between parties.
  13. What is the term for software designed to replicate itself and spread to other computers?
    Answer: Worm
    Note: Worms are self-replicating malware that spreads across networks without needing a host file.
  14. What is patch management?
    Answer: The process of applying updates and fixes to software
    Note: Patch management is essential for closing security vulnerabilities and improving software functionality.
  15. What is the purpose of intrusion detection systems (IDS)?
    Answer: To monitor network traffic for signs of attacks
    Note: IDS systems help detect malicious activities, but they do not actively prevent attacks.
  16. What does a DDoS attack do?
    Answer: Floods a network with excessive traffic
    Note: A Distributed Denial of Service (DDoS) attack is similar to DoS but originates from multiple systems, making it more difficult to mitigate.
  17. Which encryption algorithm uses a symmetric key?
    Answer: AES
    Note: AES (Advanced Encryption Standard) uses the same key for both encryption and decryption, making it a symmetric encryption algorithm.
  18. What is the principle of least privilege?
    Answer: Users should have the minimum level of access necessary
    Note: This principle minimizes the potential damage that could occur if an account is compromised.
  19. Which of the following is an example of an insider threat?
    Answer: An employee stealing confidential information
    Note: Insider threats come from individuals within an organization, such as employees, who misuse their access privileges.
  20. What is a botnet?
    Answer: A network of infected devices controlled remotely
    Note: Botnets are used for large-scale attacks like DDoS, and the infected devices are typically unaware that they are being controlled.
  21. What is the role of an antivirus program?
    Answer: Detect and remove malware
    Note: Antivirus software scans for, detects, and removes malicious programs that could damage systems.
  22. What does ‘ransomware’ do?
    Answer: Encrypts data and demands payment for decryption
    Note: Ransomware holds a system’s data hostage, often demanding payment in cryptocurrency for the decryption key.
  23. Which of the following is an example of a public-key cryptosystem?
    Answer: RSA
    Note: RSA uses a pair of keys (public and private) for encryption and decryption, making it a public-key cryptosystem.
  24. What is SQL injection?
    Answer: Injecting malicious SQL commands into a query
    Note: SQL injection allows attackers to manipulate SQL queries and potentially gain unauthorized access to data.
  25. What is the primary function of the Transport Layer Security (TLS) protocol?
    Answer: Provide data encryption
    Note: TLS is used to secure communications over networks, such as encrypting web traffic between browsers and servers.
  26. What is the purpose of a VPN?
    Answer: To hide the identity of users on the internet
    Note: VPNs protect user privacy by masking IP addresses and encrypting internet traffic.
  27. Which of the following is the most common way to detect malware?
    Answer: Through antivirus software
    Note: Antivirus software scans for known malware signatures and suspicious behaviors on a system.
  28. What does the term ‘data breach’ mean?
    Answer: Unauthorized access to sensitive data
    Note: A data breach occurs when unauthorized parties gain access to confidential or sensitive data.
  29. What is the main goal of a vulnerability assessment?
    Answer: To identify security flaws
    Note: Vulnerability assessments help organizations discover weaknesses in their systems so they can be mitigated.
  30. Which of the following tools is commonly used for penetration testing?
    Answer: All of the above
    Note: Tools like Wireshark, Nmap, and Snort are commonly used in penetration testing to identify and exploit vulnerabilities.
  31. What is two-factor authentication?
    Answer: Using a password and a security code sent via SMS or app
    Note: Two-factor authentication (2FA) enhances security by requiring something the user knows (password) and something the user has (SMS code or app-generated code).
  32. What is a common method of attacking a website’s login page?
    Answer: Brute-force attacks
    Note: In brute-force attacks, automated tools try many different passwords until they find the correct one.
  33. Which of the following is NOT a type of malware?
    Answer: Router
    Note: A router is a hardware device, not a type of malware. Worms, Trojans, and spyware are all types of malware.
  34. What is a hash function used for in cryptography?
    Answer: To convert data into a fixed-size string
    Note: Hash functions produce a fixed-size output (hash) that represents input data, often used for integrity checks.
  35. Which of the following is a common security flaw in websites?
    Answer: All of the above
    Note: Weak passwords, unpatched software, and cross-site scripting (XSS) are all common security flaws.
  36. What is a keylogger?
    Answer: A device that tracks keypresses
    Note: Keyloggers secretly monitor and record the keystrokes of a user to capture sensitive information like passwords.
  37. What is the function of a digital signature?
    Answer: To verify the authenticity of a message
    Note: A digital signature is used to prove the sender’s identity and ensure the message has not been tampered with.
  38. What is the difference between symmetric and asymmetric encryption?
    Answer: Symmetric uses one key; asymmetric uses two keys
    Note: Symmetric encryption uses the same key for both encryption and decryption, while asymmetric encryption uses a public and private key pair.
  39. Which of the following is a risk associated with using public Wi-Fi?
    Answer: Man-in-the-middle attacks
    Note: Public Wi-Fi networks are insecure, making it easy for attackers to intercept data through MITM attacks.
  40. Which of the following attacks can bypass security mechanisms by exploiting weaknesses in human psychology?
    Answer: Phishing
    Note: Phishing manipulates

Advanced Cryptography Exam Answer Key with Notes


  1. In Elliptic Curve Cryptography (ECC), how does the security of the curve relate to the key size?
    Answer: Larger key sizes provide equivalent or better security compared to RSA
    Note: ECC offers higher security at smaller key sizes compared to RSA, making it more efficient in terms of processing power and bandwidth.
  2. In the context of RSA encryption, what is the function of the public key?
    Answer: It is used to encrypt messages
    Note: In RSA, the public key is used by anyone to encrypt messages, which can only be decrypted by the corresponding private key.
  3. How do side-channel attacks exploit cryptographic algorithms?
    Answer: By exploiting weaknesses in the algorithm’s implementation
    Note: Side-channel attacks target implementation flaws, such as measuring timing, power consumption, or electromagnetic leaks, to extract private keys.
  4. What is the purpose of the Diffie-Hellman key exchange protocol?
    Answer: To securely exchange cryptographic keys over an insecure channel
    Note: Diffie-Hellman allows two parties to exchange a shared secret key securely, even if the communication channel is compromised.
  5. What is the primary difference between symmetric and asymmetric encryption in practical usage?
    Answer: Asymmetric encryption is slower but provides public-key security
    Note: Symmetric encryption is faster and uses the same key for encryption and decryption, while asymmetric encryption uses a public-private key pair for secure communication.
  6. Which of the following algorithms is considered secure for public-key cryptography today?
    Answer: Elliptic Curve Diffie-Hellman (ECDH)
    Note: ECDH and other elliptic curve algorithms are currently considered secure and efficient for public-key cryptography, while RSA with 1024-bit key and DES are considered outdated and insecure.
  7. What cryptographic principle is used in blockchain technology to ensure integrity and immutability of transactions?
    Answer: Hashing and digital signatures
    Note: Blockchain uses hashing (for creating a unique identifier for each block) and digital signatures (for verifying the integrity and authenticity of transactions).
  8. What is the main issue with using a static encryption key in an encryption system?
    Answer: It increases vulnerability to key compromise
    Note: Static keys, when used over time, are more susceptible to being cracked or leaked, which compromises the entire system’s security.
  9. In the AES encryption algorithm, what does the ‘block cipher’ refer to?
    Answer: The method of encrypting data in fixed-size blocks
    Note: AES encrypts data in fixed-size blocks (128 bits), applying transformations to each block for encryption.
  10. What is a potential weakness of the RSA algorithm when used with small key sizes?
    Answer: Increased risk of attacks like brute force
    Note: Smaller RSA key sizes are vulnerable to brute-force attacks, where attackers try all possible combinations to crack the encryption.
  11. Which of the following is true about Quantum Key Distribution (QKD)?
    Answer: It is based on the principles of quantum mechanics
    Note: QKD uses quantum mechanics to securely share cryptographic keys, exploiting the properties of quantum states to detect any eavesdropping.
  12. In a practical implementation of TLS (Transport Layer Security), what does the server use to authenticate itself to the client?
    Answer: A public-private key pair
    Note: The server uses its private key to sign a certificate, which can be verified by the client using the public key to ensure the server’s authenticity.
  13. What is the primary purpose of a salt in password hashing algorithms?
    Answer: To prevent rainbow table attacks by adding uniqueness to the hash
    Note: A salt is a random value added to the password before hashing, making it unique and preventing precomputed hash attacks like rainbow table attacks.
  14. In the context of Elliptic Curve Digital Signature Algorithm (ECDSA), what is the role of the private key?
    Answer: It is used to generate the digital signature
    Note: The private key is used to sign data, ensuring its authenticity and integrity in ECDSA.
  15. What is the primary security feature of a hash function like SHA-256?
    Answer: Collision resistance
    Note: SHA-256 is designed to produce a unique hash for every input, making it resistant to collision attacks, where two different inputs produce the same hash.
  16. How does a timing attack exploit cryptographic systems?
    Answer: By analyzing the time differences in encryption operations
    Note: Timing attacks take advantage of the time it takes to process cryptographic operations, which can reveal information about the key or algorithm.
  17. In a public key infrastructure (PKI), what is the function of a certificate authority (CA)?
    Answer: To issue and verify digital certificates
    Note: A CA is a trusted entity that issues digital certificates, which authenticate the identity of individuals or servers in PKI systems.
  18. What does the term ‘perfect forward secrecy’ (PFS) mean in the context of TLS?
    Answer: Session keys are not saved to be used in future sessions
    Note: Perfect forward secrecy ensures that session keys are generated and discarded after use, preventing past communications from being decrypted if the private key is compromised later.
  19. What kind of cryptographic attack does the birthday paradox exploit?
    Answer: Collision attacks
    Note: The birthday paradox exploits the probability of two different inputs producing the same hash, which can be used to break hash-based systems.
  20. What is the primary use of an HMAC (Hash-based Message Authentication Code)?
    Answer: To authenticate the integrity of a message and its source
    Note: HMAC uses a cryptographic hash function and a secret key to ensure both the integrity and authenticity of a message.
  21. What does the term ‘key escrow’ mean in the context of cryptography?
    Answer: Storing encryption keys with a trusted third party
    Note: Key escrow allows a third-party entity to store encryption keys, ensuring that they can be accessed under specific conditions, such as legal or emergency situations.
  22. Which cryptographic technique does Bitcoin use to secure transactions?
    Answer: Elliptic Curve Digital Signature Algorithm (ECDSA)
    Note: Bitcoin uses ECDSA for signing transactions, ensuring the authenticity of the sender and the integrity of the transaction.
  23. In the context of the RSA algorithm, why is the modulus ‘n’ used as part of both the public and private keys?
    Answer: It is a factor of both public and private key pairs to enable decryption
    Note: The modulus ‘n’ is part of both keys in RSA, allowing the encryption and decryption processes to work with the same modulus, ensuring data can be securely transmitted.
  24. What is the key difference between a stream cipher and a block cipher?
    Answer: Stream ciphers encrypt data one bit at a time, while block ciphers work on blocks of plaintext
    Note: Stream ciphers are generally more efficient for encrypting data of unknown or variable length, while block ciphers work on fixed-size blocks.
  25. What is the security implication of using weak or small key sizes in cryptography?
    Answer: The encryption is faster but more vulnerable to brute-force attacks
    Note: Smaller key sizes make it easier for attackers to crack the encryption through brute-force attacks, compromising security.
  26. What is the primary purpose of the Advanced Encryption Standard (AES)?
    Answer: To securely encrypt data of arbitrary size with efficiency
    Note: AES is widely used for securing data with variable sizes efficiently and securely, providing strong encryption for sensitive information.