CISSP Domain 8: Software Development Security
33 free practice questions for Software Development Security in the Certified Information Systems Security Professional exam. Try each question first, then open "Show answer" for the correct option and explanation.
Software Development Security practice questions
-
Question 1. What is the MOST effective defense against SQL injection?
Show answer
Answer: D. Parameterized queries (prepared statements)
Parameterized queries keep user input separate from the SQL command structure. Client-side validation is easily bypassed, and suppressing errors only hinders reconnaissance.
-
Question 2. An attack tricks an authenticated user's browser into submitting an unwanted request to a site where the user is logged in. Which attack is this?
Show answer
Answer: B. Cross-site request forgery (CSRF)
CSRF exploits the trust a site has in the user's browser. XSS exploits the trust a user has in a site by injecting script into its pages. Anti-CSRF tokens and SameSite cookies are common defenses.
-
Question 3. At which point in the software development life cycle is it MOST cost-effective to address security?
Show answer
Answer: A. During requirements and design
Fixing defects grows more expensive the later they're found. Defining security requirements and threat modeling during design is far cheaper than remediating in production.
-
Question 4. In the Software Capability Maturity Model (SW-CMM), at which level are processes documented and standardized across the organization?
Show answer
Answer: A. Level 3 – Defined
The levels are Initial (1), Repeatable (2), Defined (3), Managed (4, quantitatively measured), and Optimizing (5, continuous improvement). Organization-wide standard processes appear at Level 3.
-
Question 5. A company relies on a small vendor's custom application. What protects the company if the vendor goes out of business?
Show answer
Answer: B. Source code escrow
In software escrow, a trusted third party holds the source code and releases it to the customer if specified conditions occur, such as vendor bankruptcy.
-
Question 6. Failing to check the length of input before copying it into a fixed-size memory area MOST directly leads to which vulnerability?
Show answer
Answer: A. Buffer overflow
Writing past the end of a buffer can overwrite adjacent memory, including return addresses. Mitigations include bounds checking, safe functions, ASLR, DEP/NX, and stack canaries.
-
Question 7. Which software development model is organized around repeated iterations that each begin with an explicit risk analysis?
Show answer
Answer: D. Spiral
Barry Boehm's spiral model iterates through planning, risk analysis, engineering, and evaluation, which makes it well suited to large, high-risk projects.
-
Question 8. "Shifting left" in DevSecOps means:
Show answer
Answer: B. Integrating security earlier in the development lifecycle
Shifting left moves security activities like threat modeling, SAST, and dependency checks earlier, where fixes are cheaper.
-
Question 9. What is the OWASP Top 10?
Show answer
Answer: C. An awareness document listing the most critical web application security risks
The OWASP Top 10 is a widely used, community-driven awareness document. It isn't a law or a complete security standard.
-
Question 10. Which approach to input validation is MOST secure?
Show answer
Answer: D. Server-side allow-list validation (accept only known-good input)
Allow lists define exactly what is acceptable. Block lists inevitably miss variants, and client-side checks can be bypassed.
-
Question 11. Which technique is the PRIMARY defense against cross-site scripting (XSS)?
Show answer
Answer: D. Context-aware output encoding
Encoding output for the context where it's rendered (HTML, attribute, JavaScript, URL) prevents user data from being executed as script. Content Security Policy adds defense in depth.
-
Question 12. A malicious script submitted in a forum post is saved on the server and runs in the browser of every user who views the post. What type of XSS is this?
Show answer
Answer: A. Stored (persistent) XSS
Stored XSS persists on the server and affects every viewer. Reflected XSS is bounced off the server in a single request, often via a crafted link.
-
Question 13. An attacker requests /download?file=../../../../etc/passwd to read files outside the web root. What vulnerability is this?
Show answer
Answer: A. Directory (path) traversal
Path traversal abuses unvalidated file paths. Canonicalize paths, use allow lists, and avoid passing user input directly to file system calls.
-
Question 14. What does code signing provide?
Show answer
Answer: C. Assurance of the code's publisher and that it hasn't been altered since signing
Code signing gives authenticity and integrity. It doesn't prove the code is safe or bug-free.
-
Question 15. Which tool identifies known vulnerabilities in the open-source libraries and dependencies an application uses?
Show answer
Answer: A. Software composition analysis (SCA)
SCA inventories third-party components and matches them against vulnerability databases, and often checks licenses too.
-
Question 16. What is a software bill of materials (SBOM)?
Show answer
Answer: B. A formal inventory of the components and dependencies in a piece of software
An SBOM lets organizations quickly determine whether they're affected when a component vulnerability (like Log4Shell) is disclosed.
-
Question 17. Rate limiting on an API is PRIMARILY intended to mitigate:
Show answer
Answer: C. Brute-force attempts and resource-exhaustion abuse
Limiting request rates per client slows credential guessing and scraping and protects availability.
-
Question 18. In database transactions, which ACID property ensures that a transaction either completes entirely or not at all?
Show answer
Answer: C. Atomicity
Atomicity is all or nothing. Consistency keeps the database valid, isolation keeps concurrent transactions separate, and durability ensures committed data survives failures.
-
Question 19. Which database technique creates multiple records with the same primary key at different classification levels to prevent inference attacks?
Show answer
Answer: B. Polyinstantiation
Polyinstantiation shows lower-cleared users a cover story instead of revealing that sensitive data exists, which counters inference.
-
Question 20. A user combines several pieces of non-sensitive data to deduce sensitive information they aren't authorized to know. What is this?
Show answer
Answer: D. Inference
Inference is deducing restricted information from available data. Aggregation is combining lower-sensitivity data into a collection that is itself more sensitive.
-
Question 21. Why should developers NOT have direct write access to production systems?
Show answer
Answer: D. It enforces separation of duties and change control
Separating development from production ensures changes go through review, testing, and approval, reducing fraud and errors.
-
Question 22. Which software security maturity model is descriptive, based on observing what real organizations actually do?
Show answer
Answer: C. BSIMM
BSIMM (Building Security In Maturity Model) describes observed practices. OWASP SAMM is prescriptive, guiding organizations toward target practices.
-
Question 23. In the context of system approval, what is accreditation (authorization)?
Show answer
Answer: A. Management's formal acceptance of a system's risk and approval to operate
Certification is the technical assessment. Accreditation (authorization to operate) is the designated official's formal decision to accept the residual risk.
-
Question 24. A developer leaves an undocumented way to bypass authentication for troubleshooting and forgets to remove it. What is this?
Show answer
Answer: A. Maintenance hook (backdoor)
Maintenance hooks bypass normal security. They should be removed before release and are a target of code review.
-
Question 25. In software design, which combination is generally preferred?
Show answer
Answer: A. Low coupling, high cohesion
Low coupling (minimal dependencies between modules) and high cohesion (each module has a focused purpose) make software easier to secure, test, and maintain.
-
Question 26. Which cookie attribute prevents client-side JavaScript from reading a session cookie, reducing the impact of XSS?
Show answer
Answer: A. HttpOnly
HttpOnly blocks script access. Secure ensures the cookie is only sent over HTTPS, and SameSite helps against CSRF.
-
Question 27. Which HTTP response header lets a site restrict which sources scripts may be loaded from, mitigating XSS?
Show answer
Answer: A. Content-Security-Policy
CSP defines allowed sources for scripts and other content. HSTS forces HTTPS connections.
-
Question 28. In object-oriented programming, hiding an object's internal data so it can only be accessed through defined methods is called:
Show answer
Answer: B. Encapsulation
Encapsulation (data hiding) protects internal state and enforces controlled access, which supports security and maintainability.
-
Question 29. A developer writes malicious code that deletes payroll records if their name is ever removed from the employee database. What is this?
Show answer
Answer: D. Logic bomb
A logic bomb triggers its payload when a specific condition is met. Code review and separation of duties help detect and prevent it.
-
Question 30. Where in a CI/CD pipeline should automated static analysis (SAST) and dependency scanning typically run?
Show answer
Answer: A. On each commit or build, before deployment
Running scans automatically in the pipeline catches issues early and can block builds with critical findings.
-
Question 31. An application deserializes objects received from users without validation, allowing attackers to execute code. Which mitigation is MOST effective?
Show answer
Answer: B. Avoid deserializing untrusted data, or use safe formats with strict type allow lists and integrity checks
Insecure deserialization can lead to remote code execution. Don't accept serialized objects from untrusted sources, or strictly constrain what can be deserialized.
-
Question 32. In the Agile Scrum framework, a short, time-boxed iteration in which a potentially shippable increment is produced is called a:
Show answer
Answer: D. Sprint
Sprints typically last one to four weeks. Security requirements should be included in the backlog and definition of done.
-
Question 33. Which activity is MOST effective for identifying design-level security flaws before any code is written?
Show answer
Answer: C. Threat modeling
Threat modeling during design finds architectural weaknesses (trust boundaries, data flows) that are expensive to fix later.
CISSP is a registered mark of ISC2, Inc. These questions are original study material, not questions from the real exam.