
































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!

































This advanced practice examination is designed for candidates pursuing the (ISC)² Certified Secure Software Lifecycle Professional (CSSLP) credential. It comprehensively addresses the eight CSSLP domains: Secure Software Concepts, Secure Software Requirements, Secure Software Architecture and Design, Secure Software Implementation, Secure Software Testing, Secure Software Lifecycle Management, Secure Software Deployment, Operations, and Maintenance, and Secure Software Supply Chain. The 100 questions integrate real-world development scenarios, threat modeling, secure coding techniques, risk management, DevSecOps practices, and regulatory compliance challenges that mirror the difficulty of the actual CSSLP exam. Each item is accompanied by a detailed, multi-sentence rationale explaining why the correct answer is best and why alternatives are incorrect. Updated for the 2026–2027 examination cycle, this resource provides verified solutions to help you assess your preparedness, identify knowledge gaps, and confidently achieve the CSSLP certification—validating your expertise in embedding security throughout the software development lifecycle.
Page 1 of 5
source code, design documents, and internal configurations, to identify vulnerabilities with maximum depth. Black-box (A) provides only external access. Gray-box would have partial knowledge. No information (C) is impossible. Thus, B accurately describes white-box testing.
Correct Answer: B SCA tools identify open source and third-party components and map them to known vulnerabilities (e.g., CVEs). DAST (A) tests running applications for vulnerabilities. IAST (C) combines SAST and DAST during testing. Fuzzing (D) sends random data to find faults. Thus, SCA is specifically for component analysis. 13.During the design phase, a security architect creates a data flow diagram and identifies trust boundaries. This activity is part of: A) Penetration testing B) Threat modeling C) Security awareness training D) Incident response Correct Answer: B Threat modeling involves understanding how data flows through the system and identifying where threats can cross trust boundaries. Penetration testing (A) occurs later, training (C) is for people, and incident response (D) is after a breach. Therefore, B is the correct activity. 14.Which of the following is an example of a “security requirement” for a new payroll application? A) The system shall calculate tax deductions B) The system shall authenticate all users before granting access C) The system shall generate a PDF report D) The system shall support 1000 concurrent users Correct Answer: B Authentication is a security-related requirement that specifies how access is controlled. Tax calculation (A) and PDF generation (C) are functional requirements. Concurrency (D) is a performance requirement. Thus, B is the security requirement. 15.A developer uses the function strcpy() to copy user-supplied data into a buffer. This practice can lead to: A) A race condition B) A format string vulnerability
C) A buffer overflow D) A use-after-free vulnerability Correct Answer: C strcpy() does not perform bounds checking and can overflow the destination buffer if the source string is too long. Format string (B) involves printf-like functions. Race condition (A) is a concurrency flaw. Use-after-free (D) is a memory management bug. Thus, C is the direct consequence. 16.A security architect is designing an API and wants to ensure that requests from unauthorized clients are rejected. What should be used? A) API keys embedded in the client B) OAuth 2.0 with proper authorization scopes C) HTTP without TLS D) Basic authentication with a static password Correct Answer: B OAuth 2.0 provides robust authorization with scoped tokens and can include client authentication. Embedded API keys (A) can be extracted. HTTP without TLS (C) is cleartext. Static passwords (D) are weak. Thus, B is the modern, secure approach. 17.A penetration tester discovers that an application does not properly invalidate a user’s session after logout, and the session token remains valid. This is an example of: A) Cross-site scripting B) Improper session termination C) SQL injection D) Insecure deserialization Correct Answer: B Improper session termination means that the session is not destroyed on the server, allowing an attacker who captures the token to reuse it. XSS (A) is script injection, SQL injection (C) is database query manipulation, and deserialization (D) is object parsing. Thus, B is correct.
that stores, processes, or transmits cardholder data. FISMA (A) is for federal systems, HIPAA (C) for healthcare, SOX (D) for financial reporting. Thus, B is correct. Page 2 of 5 21.During a threat modeling session, the team identifies a threat where an attacker could tamper with data in transit. Which STRIDE category does this fall into? A) Spoofing B) Tampering C) Repudiation D) Information Disclosure Correct Answer: B Tampering involves unauthorized modification of data, including in transit. Spoofing (A) is impersonation. Repudiation (C) is denying actions. Information Disclosure (D) is data exposure. Thus, B is the correct category. 22.A developer is writing an application that handles sensitive data. To prevent data exposure in log files, what should be done? A) Log all data for debugging B) Sanitize logs to exclude sensitive fields (e.g., PII, secrets) C) Disable all logging D) Store logs in a public bucket Correct Answer: B Logging sensitive data is a major security risk. Sanitization ensures that logs do not contain passwords, credit card numbers, or personal data, while still capturing useful diagnostic info. Logging all (A) violates privacy. Disabling (C) hinders incident response. Public storage (D) is insecure. Thus, B is best practice. 23.An attacker submits a crafted input that causes the application to execute unintended commands on the host operating system. This attack is called: A) Cross-site request forgery (CSRF)
B) Command injection C) File inclusion D) Path traversal Correct Answer: B Command injection occurs when unsanitized user input is passed to a system shell or command interpreter. CSRF (A) forces a user to perform actions. File inclusion (C) includes files. Path traversal (D) accesses files outside the intended directory. Thus, B is the correct term. 24.Which testing technique involves sending random, malformed, or unexpected data to an application to uncover vulnerabilities? A) Unit testing B) Fuzzing C) Regression testing D) Penetration testing Correct Answer: B Fuzzing (fuzz testing) sends a wide range of inputs to identify crashes, hangs, or memory leaks. Unit testing (A) tests individual functions. Regression (C) checks that existing features still work. Penetration testing (D) is a broader manual assessment. Thus, B is specific to random data testing. 25.An organization is implementing a secure SDLC. At which phase should security training for developers be first provided? A) Only after a breach B) At the beginning of the project and continuously throughout C) Only during the design phase D) Never; developers should already know security Correct Answer: B Effective security training must be ongoing, starting early and reinforced at each phase, to ensure that developers have the necessary skills to write secure code and understand emerging threats. After a breach (A) is reactive. Only during design (C)
C) Delegate all security to a separate waterfall team D) Only perform a penetration test at the end Correct Answer: B Integrating security requirements as user stories (e.g., “As a security administrator, I want to enforce password complexity”) ensures they are prioritized, estimated, and implemented within the sprint cadence. Delaying (A) or separating (C) undermines the agile principle. Only a final pen test (D) is insufficient. Thus, B is correct. 29.Which of the following is an example of a secure software architecture principle? A) Security by obscurity B) Defense in depth and fail-safe defaults C) Single point of failure D) Trusting all inputs Correct Answer: B Defense in depth layers controls, and fail-safe defaults deny access by default. Security by obscurity (A) is not a reliable principle. Single point of failure (C) is to be avoided. Trusting all inputs (D) is dangerous. Thus, B embodies core security architecture principles. 30.During a code review, a developer notices that the application uses the DES algorithm for encryption. What should be recommended? A) Continue using DES; it’s standard B) Replace DES with AES-256, as DES is cryptographically broken due to its small key size C) Switch to MD5 hashing D) Disable all encryption Correct Answer: B DES’s 56-bit key can be brute-forced, and it is no longer considered secure. AES-256 is a strong, modern alternative. MD5 (C) is a hashing algorithm, not encryption. Disabling encryption (D) is insecure. Thus, B is the correct upgrade.
31.A security analyst is reviewing the code of a web application and finds the following: response.write(user_input). Without proper encoding, this is vulnerable to: A) SQL injection B) Cross-site scripting (XSS) C) Buffer overflow D) Denial of service Correct Answer: B If user input is directly written to the HTTP response without output encoding, an attacker can inject malicious scripts that execute in the victim’s browser, a classic reflected XSS. SQL injection (A) targets databases. Buffer overflow (C) is memory corruption. DoS (D) is availability. Thus, B is correct. 32.When performing a Software Composition Analysis (SCA), which type of vulnerability is typically found? A) Cross-site scripting in custom code B) Known vulnerabilities in open-source libraries, such as those listed in the National Vulnerability Database C) Logic flaws in business processes D) Performance bottlenecks Correct Answer: B SCA tools match the versions of third-party and open-source components against vulnerability databases like NVD. They do not find custom code flaws (A), logic errors (C), or performance issues (D). Thus, B is the primary focus. 33.An organization wants to ensure that code committed to the repository has been reviewed and approved before merging. Which practice should be enforced? A) Any developer can merge their own code B) Mandatory peer code review and pull request approvals C) No reviews; rely on automated tests D) Only the project manager reviews code
B) Every access request is authenticated and authorized, regardless of source C) Only external traffic is inspected D) Users have broad permissions once inside the network Correct Answer: B Zero trust mandates verification for every request, assuming no inherent trust. Network location (A) is irrelevant. All traffic, internal and external, is inspected (C false). Least privilege is applied (D false). Thus, B is correct. 37.A developer is implementing a secure password storage mechanism. Which of the following is considered the best practice? A) Storing passwords in plaintext B) Hashing with SHA-1 without salt C) Hashing with bcrypt, scrypt, or Argon2 with a unique salt D) Encrypting passwords with AES and a static key Correct Answer: C Modern key derivation functions (bcrypt, Argon2) are designed to be slow and resistant to brute-force, and salts prevent rainbow table attacks. Plaintext (A) is unacceptable. SHA-1 (B) is fast and broken. Encryption (D) can be reversed if the key is compromised. Thus, C is the best practice. 38.A security architect is designing a system that must remain available even during a DDoS attack. Which principle should be applied? A) Single point of failure B) Redundancy, scaling, and resilient design C) Relying solely on a firewall D) Disabling all logging Correct Answer: B Designing for resilience includes load balancers, auto-scaling, and redundant infrastructure to absorb and mitigate DDoS impact. Single point (A) is the opposite. Firewall alone (C) may be overwhelmed. Disabling logs (D) is harmful. Thus, B is the correct resilience strategy.
39.During a risk assessment, the team determines that a vulnerability has a low likelihood but a very high impact. They choose to implement additional monitoring and an incident response plan. This is: A) Risk avoidance B) Risk mitigation C) Risk transfer D) Risk acceptance Correct Answer: B Mitigation reduces the likelihood or impact of a risk; monitoring and IR planning can reduce the impact by enabling faster detection and response. Avoidance (A) would eliminate the cause. Transfer (C) shifts financial burden. Acceptance (D) is doing nothing. Thus, B is the appropriate treatment. 40.An application uses a third-party API that requires an API key. How should the key be stored in the application’s configuration? A) Hard-coded in the source code B) In a secure secret manager or vault, retrieved at runtime C) In a public GitHub repository D) In a comment in the code Correct Answer: B Secrets must never be stored in source code or public repositories. A secret manager encrypts the key and provides controlled access. Hard-coding (A) and public storage (C) are major security flaws. Comments (D) are easily visible. Thus, B is the secure storage method. Page 3 of 5 41.A software team is using a secure SDLC framework such as Microsoft SDL. Which activity is typically performed during the “Implementation” phase? A) Security requirements gathering B) Threat modeling
44.An application uses the Java deserialization of untrusted data. This can lead to: A) A buffer overflow B) Remote code execution C) A race condition D) A format string attack Correct Answer: B Deserialization of untrusted data is a well-known vulnerability that can allow attackers to execute arbitrary code, as the deserialization process can instantiate malicious objects. Buffer overflow (A) is memory corruption. Race condition (C) is concurrency. Format string (D) is a different input handling bug. Thus, B is correct. 45.During a post-incident review, the team determines that a vulnerability existed because security requirements were not defined. Which process should be improved? A) Deployment automation B) Security requirements engineering during the early phases C) Performance tuning D) User interface design Correct Answer: B The root cause is missing security requirements; therefore, the requirements gathering and analysis phase must be strengthened to include security as a non-functional requirement. The other options are unrelated. Thus, B is the process to improve. 46.Which of the following is an example of a corrective control in software operations? A) Code signing B) An intrusion detection system alert C) Applying a patch to fix a vulnerability D) A firewall rule blocking traffic
Correct Answer: C Applying a patch corrects a defect, which is a corrective action. Code signing (A) is preventive, IDS alert (B) is detective, firewall (D) is preventive. Thus, C is the corrective control. 47.An organization wants to ensure that its software supply chain is secure. Which of the following practices is recommended? A) Downloading libraries from any random site B) Verifying the integrity and authenticity of third-party components using cryptographic signatures or hashes C) Not updating components to avoid breaking changes D) Using the latest version without review Correct Answer: B Verifying signatures and hashes ensures that components have not been tampered with and come from a trusted source. Option A and D are risky. Option C leads to unpatched vulnerabilities. Thus, B is a key supply chain security practice. 48.A security engineer is designing a CI/CD pipeline. At which stage should Dynamic Application Security Testing (DAST) be performed? A) Before code is written B) After the application is deployed to a staging environment C) During the design phase D) Only in production Correct Answer: B DAST analyzes a running application, so it is typically performed in a staging environment that mirrors production, but before production deployment. Before code (A) is impossible; design phase (C) is too early; production only (D) is too late. Thus, B is the proper stage. 49.Which of the following is the most secure way to handle authentication tokens in a single-page application (SPA)? A) Store the token in localStorage B) Store the token in a cookie with the HttpOnly and Secure flags, and use