1. What is the primary purpose of implementing layered security in an
organization?
• A) To improve network performance
• B) To create multiple defenses against potential threats
• C) To reduce the number of security devices
• Answer: B) To create multiple defenses against potential threats
• Explanation: Layered security (or defense in depth) involves using multiple security measures to
provide redundancy, making it harder for attackers to compromise systems.
2. What is the main benefit of using a Security Development Lifecycle (SDL) in
software engineering?
• A) Increases development speed
• B) Reduces the cost of security breaches and vulnerabilities
• C) Lowers hardware requirements
• Answer: B) Reduces the cost of security breaches and vulnerabilities
• Explanation: The SDL integrates security practices into each phase of development, minimizing
vulnerabilities early on and lowering the cost of fixing security issues later.
3. Which of the following is a common strategy for securing software
applications?
• A) Relying solely on antivirus software
• B) Conducting regular code reviews and security testing
• C) Ignoring error messages
• Answer: B) Conducting regular code reviews and security testing
• Explanation: Code reviews and security testing are crucial for identifying and mitigating
vulnerabilities within software applications.
4. What type of security testing simulates real-world attacks on software?
• A) Static testing
• B) Penetration testing
• C) Unit testing
• Answer: B) Penetration testing
• Explanation: Penetration testing evaluates the security of an application by simulating real-
world attack scenarios to identify exploitable vulnerabilities.
5. What is the primary purpose of input validation in software security?
• A) To improve code readability
, • B) To prevent the execution of malicious data input
• C) To allow faster data processing
• Answer: B) To prevent the execution of malicious data input
• Explanation: Input validation ensures that data input to an application is safe and meets
expected criteria, reducing the risk of injection attacks.
6. What type of vulnerability does Cross-Site Scripting (XSS) represent?
• A) Buffer overflow
• B) Input validation flaw
• C) Network misconfiguration
• Answer: B) Input validation flaw
• Explanation: XSS occurs when an application does not properly validate input, allowing
malicious scripts to be executed in a user's browser.
7. Which type of attack attempts to overload a system with traffic to make it
unavailable?
• A) Denial of Service (DoS)
• B) Phishing
• C) Man-in-the-Middle
• Answer: A) Denial of Service (DoS)
• Explanation: DoS attacks flood a system with excessive traffic, exhausting resources and
rendering it unavailable to legitimate users.
8. Which concept involves continuously monitoring and evaluating threats and
vulnerabilities?
• A) Continuous Integration (CI)
• B) Continuous Vulnerability Assessment
• C) Periodic Patching
• Answer: B) Continuous Vulnerability Assessment
• Explanation: Continuous vulnerability assessment involves ongoing scanning and assessment to
identify and address potential threats in real time.
9. What is the purpose of code obfuscation?
• A) To improve code readability
• B) To make the code more difficult to understand and reverse-engineer
• C) To reduce compilation time
• Answer: B) To make the code more difficult to understand and reverse-engineer
• Explanation: Code obfuscation helps protect intellectual property by making it harder for
attackers to analyze and exploit code.
10. Which security technique involves using an independent environment to test
changes before deployment?