Courseiva

CISSP Software Development Security Practice Question

A security architect is reviewing a design for an e-commerce application. The architect recommends implementing defense in depth. Which of the following is an example of this principle?

⚠ Common exam trap

CISSP often tests the misconception that any single strong control (encryption, firewall, passwords) constitutes defense in depth, when the principle requires multiple independent layers.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Implementing both a web application firewall (WAF) and input validation

Defense in depth layers multiple independent controls so that failure of one does not compromise the system. A WAF filters malicious HTTP traffic at the application layer, while input validation rejects malformed or malicious data at the code layer; together they provide overlapping protections against injection and web attacks. This is a textbook example of layered, complementary controls.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Encrypting data at rest only

    Why it's wrong here

    While encrypting data at rest is a critical security measure for protecting information stored on physical media, relying on it exclusively fails to implement a comprehensive defense-in-depth strategy. This approach leaves data vulnerable during transmission across networks (data in transit) and when actively being processed (data in use), which are common points of compromise in e-commerce transactions. A robust security posture requires encryption across all data states, complemented by other controls like access management and network segmentation.

  • ✓

    Implementing both a web application firewall (WAF) and input validation

    Why this is correct

    This option correctly demonstrates defense in depth by combining two distinct and complementary security controls. A Web Application Firewall (WAF) provides an external, perimeter-like defense, filtering malicious requests before they reach the application server, while input validation acts as an internal, application-level control, ensuring that only safe and properly formatted data is processed. This layered approach significantly reduces the attack surface and effectively mitigates a broader spectrum of web-based threats, such as SQL injection and cross-site scripting, by providing multiple points of enforcement.

  • ✗

    Using a single firewall at the network perimeter

    Why it's wrong here

    Using only a single firewall at the network perimeter, while a foundational security component, represents a single layer of defense and does not embody the principles of defense in depth. This creates a single point of failure; if an attacker manages to bypass this sole barrier, they gain largely unimpeded access to internal network resources. A true defense-in-depth strategy would incorporate additional internal firewalls, host-based firewalls, network segmentation, and other controls to create multiple chokepoints and slow down an adversary's lateral movement.

  • ✗

    Requiring strong passwords for all users

    Why it's wrong here

    Requiring strong passwords for all users is an essential security practice for identity and access management, but it constitutes only one control within a much broader security framework. This single control does not provide the multi-layered protection inherent in a defense-in-depth strategy. A comprehensive approach would augment strong passwords with additional controls such as multi-factor authentication (MFA), account lockout policies, robust session management, and intrusion detection systems to protect against various attack vectors beyond simple credential guessing.

About these practice questions

This CISSP question is part of Courseiva's 816-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official ISC2 exam blueprint

This CISSP practice question is part of Courseiva's free ISC2 certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CISSP exam.