Courseiva

(ISC)2 Certified Secure Software Lifecycle Professional (CSSLP) (CSSLP) (CSSLP) — Questions 151–221

221 questions total · 3 pages · All types, answers revealed

Page 2

Page 3 of 3

151
MCQhard

A financial services firm is rolling out a new release of its customer portal. The release includes updated third-party libraries and a modified container base image. Before promoting the build to production, the release manager must ensure the integrity and provenance of the artifacts. Which action best provides verifiable provenance and tamper detection for the container image?

A.Compute an MD5 checksum of the compiled binary and publish it alongside the release notes so operators can compare it after download.
B.Restrict registry access with role-based credentials so only the release team can push images, and rely on that access control as the integrity guarantee.
C.Sign the container image with a cryptographic private key and record the signature plus build metadata in an attestation that consumers verify with the corresponding public key before deployment.
D.Scan the image with a vulnerability scanner and block promotion if any critical CVEs are found, treating a clean scan as proof of integrity.
AnswerC

Signing the image with a private key and publishing a verifiable attestation binds the artifact to a known builder identity and lets consumers detect any post-build modification. Recording build metadata such as source commit and builder details establishes provenance. Verifying with the public key before deployment ensures only trusted, unaltered images reach production, satisfying both integrity and provenance objectives.

Why this answer

Cryptographic signing of the container image, combined with an attestation of build metadata, delivers both provenance and tamper detection because consumers can verify the signature against a trusted public key before deployment. Access controls and vulnerability scans address adjacent risks but cannot prove that the artifact is unmodified or identify its origin, which is what the release gate requires.

Exam trap

The trap here is conflating access control or vulnerability scanning with artifact integrity, when only cryptographic verification of a signature and provenance metadata actually detects tampering and establishes origin.

152
MCQhard

A developer is using parameterized queries in C#. Which vulnerability is primarily prevented by this implementation?

A.Session Hijacking
B.SQL Injection
C.Insecure Deserialization
D.Directory Traversal
AnswerB

Parameterised queries send SQL code and user data to the database as separate entities, so supplied values are treated purely as data rather than executable statements. This prevents attackers from altering query structure, directly blocking SQL Injection, the vulnerability named in the stem.

Why this answer

Parameterized queries (prepared statements) separate SQL code from data by sending the query structure to the database first and binding user input as parameters, so input is never interpreted as SQL syntax. This structurally prevents SQL injection, the top web vulnerability class, regardless of what characters the attacker supplies.

Exam trap

The trap is confusing SQL injection with other injection or session-based attacks — candidates must recognize that parameterized queries specifically neutralize SQLi by separating code from data, not by sanitizing characters.

How to eliminate wrong answers

Option A is wrong because session hijacking involves stealing or predicting session tokens (e.g., via XSS or insecure cookies), which parameterized queries do nothing to address. Option C is wrong because insecure deserialization concerns untrusted serialized objects being reconstructed into executable code, unrelated to SQL statement construction. Option D is wrong because directory traversal exploits file path handling (../ sequences), not database query parsing.

153
MCQmedium

You are a security architect at a company that develops a widely used mobile banking application. The development team uses a third-party open-source library for encryption. A critical vulnerability is disclosed in that library. What is the MOST effective first step to manage this risk within the secure software lifecycle?

A.Disable all encryption functionality in the application until a patch is available.
B.Immediately remove the library and replace it with a custom-built encryption module.
C.Assess the impact of the vulnerability on your application and determine if the vulnerable code path is reachable.
D.Wait for the library maintainers to release a patch and then apply it immediately.
AnswerC

The first step should be to assess the actual risk. Not all vulnerabilities in a library affect your application if the vulnerable code is not used. By determining reachability and impact, you can prioritize remediation appropriately. This aligns with risk-based vulnerability management and avoids unnecessary panic or rework.

Why this answer

When a vulnerability is disclosed in a third-party component, the first step is to assess its impact on your specific application. This involves determining if the vulnerable code is used and if it is reachable by an attacker. Only then can you decide on the appropriate response, whether it's patching, mitigating, or accepting the risk.

This risk-based approach is a core practice in secure software lifecycle management.

Exam trap

The trap here is reacting to the vulnerability without first assessing its actual impact on your application, which can lead to unnecessary or harmful actions.

154
Multi-Selecteasy

Which TWO of the following are essential components for achieving 'Non-repudiation'?

Select 2 answers
A.Digital signatures
B.Immutable audit logs
C.Multi-factor authentication.
D.Load balancing.
E.Strong encryption of data in transit.
AnswersA, B

Non-repudiation requires proof binding an action to a specific identity such that the actor cannot later deny it. Digital signatures provide this through cryptographic keys unique to the signer, verifying origin and integrity, and satisfying the requirement for undeniable attribution of the transaction.

Why this answer

Digital signatures (A) are essential for non-repudiation because they cryptographically bind a signer's private key to the message, allowing any party to verify origin and integrity and preventing the signer from later denying authorship. Immutable audit logs (B) are also essential because they provide tamper-evident, append-only records of actions that can be used as evidence to prove what occurred and who did it, which is required to prevent denial of an action. Multi-factor authentication (C) strengthens authentication and reduces account compromise but does not by itself prove which specific action a user performed, so it does not establish non-repudiation.

Load balancing (D) is an availability and performance mechanism and has no bearing on proving the origin or integrity of a transaction. Strong encryption of data in transit (E) protects confidentiality against eavesdropping but does not bind an identity to a message or prevent a party from denying an action.

Exam trap

CSSLP often tests the misconception that MFA or encryption provides non-repudiation, when in fact only digital signatures (proof of origin) combined with immutable logs (tamper-evident record) satisfy the non-repudiation requirement.

155
MCQhard

You are auditing a design that uses JSON Web Tokens (JWTs) for stateless authentication. Which vulnerability is most critical if the 'alg: none' attack is possible?

A.Cross-Site Request Forgery (CSRF).
B.Broken object-level authorization.
C.Insecure cookie flags.
D.Token signature bypass/forgery.
AnswerD

When the verifier accepts alg: none, it treats the token as valid without checking any signature, so an attacker can alter claims such as role or subject and forge arbitrary tokens. This is signature bypass, satisfying the stem's stateless authentication scenario.

Why this answer

The 'alg: none' vulnerability allows an attacker to forge tokens by telling the server to skip signature verification.

156
MCQeasy

You are a security analyst tasked with reviewing a set of security requirements for a new web application. One requirement states: 'The application must be secure.' What is the PRIMARY issue with this requirement?

A.It is not testable because it lacks specific criteria for verification.
B.It is too broad and should be broken down into multiple functional requirements.
C.It duplicates existing security policies and is therefore redundant.
D.It does not align with business objectives and should be removed.
AnswerA

A requirement must be verifiable to be useful. 'Secure' is subjective and cannot be measured or tested. Without specific criteria, such as encryption standards or authentication mechanisms, testers cannot determine if the requirement is met. This makes it impossible to validate during development or acceptance testing, leading to ambiguity and potential security gaps.

Why this answer

The primary issue with a requirement like 'The application must be secure' is that it is not testable. Security requirements must be specific and measurable to allow verification. Without concrete criteria, such as 'all data in transit must be encrypted with TLS 1.3,' testers cannot objectively assess compliance.

This leads to ambiguity and potential unaddressed risks.

Exam trap

The trap here is focusing on the requirement's breadth or alignment rather than its lack of testability, which is the fundamental flaw.

157
MCQeasy

A software development team is adopting a secure design principle that requires the security of a system to depend on the secrecy of the keys, not on the secrecy of the algorithm. Which principle are they implementing?

A.Fail-safe defaults
B.Least privilege
C.Open design
D.Security by obscurity
AnswerC

Open design states that the security of a system should not depend on the secrecy of its design or implementation, but rather on the secrecy of keys or passwords. This aligns with Kerckhoffs's principle. By making the algorithm public and subject to scrutiny, vulnerabilities are more likely to be found and fixed. The scenario directly describes this principle, where security rests on key secrecy, not algorithm secrecy.

Why this answer

Open design, also known as Kerckhoffs's principle, asserts that a cryptographic system should be secure even if everything about the system, except the key, is public knowledge. This allows for public scrutiny and avoids reliance on obscurity. The scenario explicitly describes this principle, making open design the correct answer.

Exam trap

The trap here is confusing open design with security by obscurity, but open design is the opposite: it advocates for public algorithms and secret keys.

158
MCQhard

You are reviewing the requirements for a legacy system integration. The system currently transmits credentials over plaintext protocols. What is the priority for the security requirements phase?

A.Request a waiver for the legacy system
B.Suggest the use of a VPN for the entire network
C.Document the legacy protocol as a technical debt item
D.Mandate the migration to an encrypted transport layer in the SRS
AnswerD

Requiring encrypted transport in the SRS removes plaintext credential transmission at its root, addressing the confidentiality breach directly during the security requirements phase. This satisfies the stated priority: the legacy integration currently exposes credentials, so mandating TLS or equivalent is the foundational control before further hardening.

Why this answer

The security requirements phase is where security controls are formally specified in the Software Requirements Specification (SRS). Since the legacy system transmits credentials in plaintext, the priority is to mandate a secure replacement—encrypted transport (e.g., TLS/SSL, SSH, or IPsec)—as a requirement in the SRS. This ensures the security need is captured, tracked, and implemented, rather than deferred or mitigated only at the network level.

Documenting technical debt or requesting a waiver does not fix the vulnerability; it merely acknowledges it.

Exam trap

CSSLP often tests the misconception that network-level controls like VPNs can substitute for application-layer encryption requirements, or that documenting technical debt or requesting a waiver is an acceptable security requirement.

How to eliminate wrong answers

Option A is wrong because a waiver accepts the risk without remediation, which is inappropriate for credential exposure over plaintext protocols. Option B is wrong because a VPN only encrypts traffic between network endpoints; it does not secure the application-layer protocol itself, and credentials could still be exposed if the VPN terminates before the application or if the legacy system communicates outside the tunnel. Option C is wrong because documenting technical debt does not enforce a security requirement; it postpones action and leaves the system vulnerable during the debt period.

159
MCQeasy

A developer is performing a threat modeling exercise using STRIDE. What does the 'S' in STRIDE represent?

A.Software integrity
B.Service availability
C.System hardening
D.Secure architecture
E.Spoofing
AnswerE

In STRIDE, 'S' denotes Spoofing, which covers threats where an attacker impersonates a legitimate user, service, or system to gain unauthorised access. It is countered through authentication mechanisms that verify claimed identities before trust is granted.

Why this answer

STRIDE is Microsoft's threat modeling framework, and the 'S' stands for Spoofing, which is the threat of an attacker impersonating a legitimate user, system, or process. Spoofing violates authentication and is typically mitigated with strong authentication mechanisms such as MFA or certificates.

Exam trap

The trap is that distractors use security-sounding phrases like 'Software integrity' and 'Secure architecture' that feel like STRIDE categories but are actually mitigations or properties, not threat types.

How to eliminate wrong answers

Option A is wrong because 'Software integrity' is not a STRIDE category — integrity is covered by Tampering (the 'T'). Option B is wrong because 'Service availability' maps to Denial of Service (the 'D'), not Spoofing. Option C is wrong because 'System hardening' is a mitigation technique, not a STRIDE threat category.

Option D is wrong because 'Secure architecture' is a design goal, not one of the six STRIDE letters.

160
Multi-Selectmedium

A development team is implementing input validation for a web application. They want to ensure that all user-supplied data is properly sanitized to prevent injection attacks. Which TWO of the following are effective techniques for input validation? (Choose two.)

Select 2 answers
A.Use a blacklist of known malicious characters and remove them from the input.
B.Store all user input in a database without modification and rely on database triggers to sanitize data.
C.Rely on client-side JavaScript validation to ensure data integrity before submission.
D.Encode output based on the context where it will be displayed, such as HTML, JavaScript, or SQL.
E.Use a whitelist of allowed characters and reject any input that does not match.
AnswersD, E

Output encoding ensures that data is safely rendered in the target context. For HTML, encoding special characters like < and > prevents script execution; for SQL, parameterized queries handle encoding. While not strictly input validation, output encoding is a critical complementary control that prevents injection even if malicious input is stored. It is effective because it neutralizes dangerous characters at the point of use.

Why this answer

Whitelist validation and context-aware output encoding are two fundamental techniques for preventing injection attacks. Whitelisting ensures only expected data is accepted, while output encoding neutralizes dangerous characters when data is rendered. Together, they provide strong defense against injection.

Blacklisting, client-side validation, and deferred sanitization are less effective and can be bypassed.

Exam trap

The trap here is thinking that blacklisting malicious characters or relying on client-side validation provides adequate security, when these methods are easily bypassed and do not address the root cause.

161
MCQmedium

You are configuring log aggregation for a microservices architecture. Which practice is essential for secure logging management?

A.Implement an automated log masking process to remove sensitive data like session tokens and PII before ingestion.
B.Store all application logs in a publicly accessible S3 bucket for easy debugging.
C.Delete all logs after 24 hours to ensure compliance with the Right to be Forgotten.
D.Increase the log verbosity to the maximum level in production indefinitely.
AnswerA

Automated masking strips session tokens and PII at the pipeline boundary, before log data reaches aggregation storage. This satisfies the stem's secure logging requirement by preventing sensitive values from persisting in a repository with broader access and longer retention than the originating service.

Why this answer

Log files often contain PII or secrets; they must be redacted before storage and access must be strictly controlled.

162
Multi-Selecteasy

Which TWO inputs are most important when developing 'Abuse Cases'?

Select 2 answers
A.System functional requirements
B.The annual maintenance budget
C.Developer performance metrics
D.Known threat intelligence and past incident history
E.The internal office floor plan
AnswersA, D

Abuse cases invert legitimate behaviour, so they must derive from system functional requirements: each intended feature, input and workflow defines the misuse paths an attacker could exploit. This grounds abuse scenarios in the actual system scope rather than speculation.

Why this answer

Option A (System functional requirements) is correct because abuse cases are derived by systematically negating and misusing each legitimate function the system is specified to perform, so the functional requirements define the attack surface and the intended behaviors that must be subverted. Option D (Known threat intelligence and past incident history) is correct because real-world attacker tactics, techniques, and procedures (TTPs) and prior incidents reveal which abuses are realistic and likely, grounding the abuse cases in evidence rather than speculation. The annual maintenance budget (B) is a financial planning input that does not describe attacker behavior or system functionality, so it cannot drive abuse-case content.

Developer performance metrics (C) measure productivity or code quality and are irrelevant to modeling adversarial misuse. The internal office floor plan (E) is a physical-security artifact and, while tangentially related to facility security, is not a primary input for developing abuse cases about system behavior.

Exam trap

CSSLP often tests whether candidates recognize that abuse cases require both the system's legitimate functionality and real-world threat data, not generic security checklists or unrelated business artifacts.

163
Multi-Selecthard

You are designing a secure software supply chain for a healthcare application that must comply with FDA premarket cybersecurity guidance. Your team proposes using the OWASP Dependency-Check tool within the CI pipeline to identify vulnerable third-party libraries. Which TWO additional practices are essential to establish a defensible component governance process that meets regulatory expectations? (Choose two.)

Select 2 answers
A.Maintain a formal component inventory that records the exact version, license, and provenance of every third-party library used in the application.
B.Configure the CI pipeline to automatically upgrade all dependencies to the latest version whenever a new release is published, ensuring no known vulnerabilities remain.
C.Use a single proprietary scanner for all vulnerability detection and forbid the use of any other tools to ensure consistency across the organization.
D.Define and enforce a policy that prohibits the use of components with known critical vulnerabilities unless a documented risk acceptance and compensating control are approved.
E.Require all developers to manually review the source code of every third-party library before inclusion to verify there are no security flaws.
AnswersA, D

A formal component inventory, such as an SBOM, is foundational for regulatory compliance and incident response. It enables traceability when a new vulnerability is disclosed, allowing the organization to quickly determine exposure. FDA guidance emphasizes software bill of materials and component transparency. Without an accurate inventory, even the best scanning tool cannot provide a complete picture of risk or support post-market surveillance obligations.

Why this answer

A defensible component governance process requires both transparency and control. Maintaining a formal component inventory provides the traceability needed for incident response and regulatory reporting. Defining and enforcing a policy for handling components with known critical vulnerabilities ensures that risks are explicitly accepted and mitigated.

Together, these practices create an auditable, repeatable process that meets FDA expectations and supports ongoing supply chain security.

Exam trap

The trap here is assuming that automated scanning alone constitutes a complete governance process, when regulators expect documented inventory and formal risk acceptance procedures.

164
MCQeasy

When conducting a secure design review, which activity provides the most insight into potential session management vulnerabilities?

A.Checking for SQL injection in login forms.
B.Reviewing the database schema for password hashing algorithms.
C.Verifying the presence of a Web Application Firewall (WAF).
D.Analyzing the implementation of HttpOnly and Secure flags on session cookies.
AnswerD

HttpOnly prevents client-side scripts from reading session cookies, while Secure restricts transmission to encrypted channels, so reviewing these flags directly exposes cookie theft and interception weaknesses. This inspection targets the exact session management controls the review must assess.

Why this answer

Session management is best reviewed by analyzing the cookie attributes and token handling flows.

165
Multi-Selecthard

Which TWO methods are effective for eliciting security requirements from non-technical business stakeholders?

Select 2 answers
A.Presenting misuse case scenarios
B.Analyzing server log architecture
C.Conducting risk impact workshops
D.Reviewing raw packet captures
E.Reading the OWASP Top 10 documentation
AnswersA, C

Misuse case scenarios describe how an adversary could abuse a system, expressed in plain business language rather than technical controls. Non-technical stakeholders can reason about these narratives, surfacing security requirements they would struggle to articulate from abstract policy or configuration discussions.

Why this answer

Option A (Presenting misuse case scenarios) is correct because misuse cases describe how an actor could abuse or attack a system in business language, letting non-technical stakeholders articulate what must be prevented and thereby surface security requirements without requiring technical expertise. Option C (Conducting risk impact workshops) is correct because facilitated workshops let business stakeholders identify assets, threats, and the business impact of adverse events, translating their domain knowledge into prioritized security requirements. Option B (Analyzing server log architecture) is not appropriate here since it is a technical infrastructure activity that non-technical business stakeholders cannot meaningfully contribute to.

Option D (Reviewing raw packet captures) is likewise a deep technical task requiring protocol-level knowledge, not a business elicitation technique. Option E (Reading the OWASP Top 10 documentation) is a reference standard for common web application risks, but passively reading it does not actively elicit requirements from non-technical stakeholders.

Exam trap

The trap is selecting technically impressive artifacts (packet captures, logs, OWASP docs) as elicitation methods — the exam wants techniques that engage non-technical stakeholders in business language, not engineering deliverables.

166
Multi-Selectmedium

Which THREE of the following practices contribute to secure configuration of a web server?

Select 3 answers
A.Remove default files and pages
B.Allow all HTTP methods (TRACE, OPTIONS)
C.Enable verbose error reporting
D.Disable directory listing
E.Enforce HTTPS (TLS)
AnswersA, D, E

Removing default files and pages eliminates vendor-supplied sample scripts, documentation and administrative interfaces that ship enabled by default. These artefacts frequently expose known paths, version details or unauthenticated functionality, directly satisfying the stem's secure-configuration requirement by reducing the attack surface before any application code is deployed.

Why this answer

Option A is correct because removing default files and pages (e.g., Apache's /var/www/html/index.html, IIS's iisstart.htm, or sample scripts like phpinfo.php) eliminates well-known entry points and information-disclosure vectors that attackers routinely probe. Option D is correct because disabling directory listing (Apache's Options -Indexes or nginx's autoindex off) prevents the server from exposing file and folder names that could reveal sensitive resources or aid reconnaissance. Option E is correct because enforcing HTTPS with TLS (e.g., via HSTS and redirecting port 80 to 443) protects credentials and session data from interception and man-in-the-middle attacks, which is a core secure-configuration requirement.

Option B is wrong because allowing all HTTP methods such as TRACE and OPTIONS enables cross-site tracing and method enumeration; these should be restricted to only those required (typically GET, POST, HEAD). Option C is wrong because verbose error reporting leaks stack traces, file paths, and server versions that assist attackers; production servers should return generic error messages and log details server-side instead.

167
MCQhard

Your company uses a 'Security Champion' model. What is the primary function of these individuals in a DevSecOps environment?

A.To act as a security advocate and bridge between security and dev teams.
B.To perform all manual code reviews for the entire department.
C.To handle all incident responses for the organization.
D.To replace the need for professional security audits.
AnswerA

Security Champions are developers who receive extra security training and embed security practises within their own teams, translating security requirements into daily engineering work. This satisfies the DevSecOps need to scale security expertise without relying solely on a central security team.

Why this answer

Security Champions act as liaisons between security teams and development teams, providing localized expertise and fostering a security culture within the team.

168
Multi-Selecthard

When performing threat modeling using the STRIDE model, which TWO of the following threats are mitigated by implementing digital signatures?

Select 2 answers
A.Repudiation.
B.Elevation of Privilege.
C.Information Disclosure.
D.Denial of Service.
E.Tampering.
AnswersA, E

Digital signatures provide non-repudiation by cryptographically binding a signer's private key to the message, so the signer cannot later deny authorship. This directly mitigates STRIDE's Repudiation category, which covers denying performing an action. Verification with the signer's public key proves origin and integrity, satisfying the stem's requirement.

Why this answer

Digital signatures provide non-repudiation because the signer's private key uniquely binds them to the message, so they cannot later deny having signed it, which directly mitigates Repudiation (A). Digital signatures also detect any modification of the signed data through cryptographic hash verification, so any alteration invalidates the signature and mitigates Tampering (E). Elevation of Privilege (B) is mitigated by authorization controls and least-privilege design, not by signatures.

Information Disclosure (C) is addressed by encryption such as TLS or AES, not by signing. Denial of Service (D) is mitigated by availability controls like rate limiting and redundancy, which signatures do not provide.

Exam trap

The trap here is confusing authentication with non-repudiation, or assuming digital signatures provide confidentiality; candidates might incorrectly select Information Disclosure or Elevation of Privilege.

169
MCQhard

An organization is moving a monolithic application to a microservices architecture. Which security design pattern is most effective for centralizing authentication while decoupling it from individual microservices?

A.Centralized database user management.
B.API Gateway pattern acting as an identity provider proxy.
C.Service Mesh with mutual TLS enabled.
D.Sidecar pattern using a local proxy for mTLS.
AnswerB

An API Gateway terminates authentication centrally, validating tokens before routing to microservices, which then trust the gateway's assertions. This decouples identity logic from each service, satisfying the centralised-authentication requirement without embedding credentials handling in every microservice.

Why this answer

The API Gateway pattern acting as an identity provider proxy centralizes authentication at the gateway, which validates tokens/credentials and forwards authenticated requests to microservices. This decouples authentication from individual services, allowing them to focus on business logic while the gateway enforces identity consistently.

Exam trap

CSSLP often tests the difference between authentication (identity) and transport security (mTLS) — candidates pick service mesh or sidecar options that secure service-to-service traffic but do not centralize user authentication.

How to eliminate wrong answers

Option A is wrong because centralized database user management centralizes credential storage but does not decouple authentication from services — each service would still need to query the database or implement auth logic. Option C is wrong because a service mesh with mutual TLS provides service-to-service authentication (workload identity) and encryption, but it does not centralize end-user authentication or act as an identity provider proxy. Option D is wrong because the sidecar pattern with mTLS also addresses service-to-service security, not centralized user authentication; it decouples networking concerns but not identity management.

170
Multi-Selecthard

When designing for auditability, which THREE of the following pieces of information should be captured in security logs?

Select 3 answers
A.The full password of the user involved in the event.
B.The type of action performed.
C.The user's home address and phone number.
D.User identity or service account identifier.
E.The timestamp and success/failure status of the action.
AnswersB, D, E

Recording the action type — for example read, write, delete, or login — establishes what operation occurred, which is essential for reconstructing events during an audit. Without it, log entries show only who and when, leaving the nature of the activity unverifiable and accountability incomplete.

Why this answer

Option B is correct because audit logs must record the type of action performed (e.g., login, file access, privilege change, configuration modification) so that reviewers can reconstruct what occurred and determine whether the activity was authorized. Option D is correct because capturing the user identity or service account identifier establishes accountability, tying each event to a specific principal so that actions cannot be repudiated and can be traced back to an individual or automated account. Option E is correct because the timestamp provides the chronological ordering needed for forensic reconstruction and correlation across systems, while the success/failure status distinguishes completed actions from attempted ones, which is essential for detecting brute-force attempts, unauthorized access, and policy violations.

Option A is not appropriate because logging full passwords would expose credentials to anyone with log access and violates security best practices; passwords should never be stored in plaintext logs. Option C is not appropriate because a home address and phone number are personally identifiable information that are not relevant to the security event and would create unnecessary privacy and compliance risk.

Exam trap

CSSLP often tests the misconception that 'more data is better' for auditability, tempting candidates to select PII or credentials, when in fact audit logs must be minimized to relevant security events and never contain secrets.

171
MCQeasy

When designing an API, which approach best supports the 'Complete Mediation' principle?

A.Relying on the frontend to filter out unauthorized menu items.
B.Checking authorization only once at the beginning of the user session.
C.Allowing public access to all GET methods in the API.
D.Verifying authorization on every single API request.
AnswerD

Complete Mediation demands that every access attempt be checked against policy, with no caching of prior decisions. Verifying authorisation on each API request satisfies this by preventing bypass through reused sessions or assumed trust, ensuring no request reaches protected resources unchecked.

Why this answer

Complete mediation requires that every access to every object be checked for authority.

172
MCQeasy

When gathering requirements for a new healthcare application, which regulation must be consulted to ensure the proper handling of Protected Health Information (PHI)?

A.GDPR
B.FISMA
C.HIPAA
D.SOX
AnswerC

HIPAA directly governs the handling of Protected Health Information in the United States, mandating administrative, physical and technical safeguards. Since the application processes PHI, its requirements must be captured during the requirements-gathering phase to ensure compliant data protection controls are designed in from the outset.

Why this answer

HIPAA (Health Insurance Portability and Accountability Act) is the U.S. federal law governing the privacy and security of Protected Health Information (PHI), including the Privacy Rule, Security Rule, and Breach Notification Rule. Any application handling PHI for a covered entity or business associate must comply with HIPAA's administrative, physical, and technical safeguards.

Exam trap

The trap is that GDPR is globally famous and often picked by default, but the question specifies PHI in a healthcare context — HIPAA is the domain-specific regulation that must be consulted.

How to eliminate wrong answers

Option A is wrong because GDPR governs personal data of EU residents generally, not PHI specifically in the U.S. healthcare context, though it may apply if EU data subjects are involved. Option B is wrong because FISMA governs federal information systems and agencies, not private healthcare PHI handling. Option D is wrong because SOX addresses financial reporting and corporate governance for public companies, not health information.

173
Multi-Selectmedium

Which TWO of the following are common challenges when implementing IAST?

Select 2 answers
A.Requirement for full source code access.
B.Inability to find vulnerabilities in unreachable code.
C.Lack of false positives.
D.Difficulty in installing agents on client machines.
E.Performance overhead on the application.
AnswersB, E

IAST instruments runtime execution, so it only observes code paths actually exercised during testing. Unreachable or dormant branches never execute, producing no instrumentation data and therefore no findings. This directly satisfies the stem's constraint: identifying common IAST challenges, since coverage gaps in dead code are an inherent limitation of runtime-based analysis.

Why this answer

Option B is correct because IAST instruments the running application and observes execution paths, so code that is never reached during testing (unreachable or dormant code paths) cannot be exercised and therefore its vulnerabilities go undetected. Option E is correct because IAST agents hook into runtime execution and add instrumentation overhead, which can degrade application performance and throughput, making performance impact a well-known implementation challenge. Option A is not a defining IAST challenge since IAST relies on runtime instrumentation rather than requiring full source code access, unlike SAST.

Option C is incorrect because IAST typically still produces false positives, so a 'lack of false positives' is not a challenge. Option D is incorrect because IAST agents are deployed on the application server or runtime environment, not on client machines.

174
Multi-Selecthard

A team is designing a browser-based single-page application that will call backend microservices directly from the client. The security architect wants to reduce the risk that a malicious script injected into the page can silently perform privileged actions on behalf of a logged-in user. Which TWO design choices best reduce this risk? (Choose two.)

Select 2 answers
A.Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to a vetted allowlist.
B.Move all authorization decisions to the client so the backend can trust requests that pass the UI checks.
C.Store access tokens in memory only and never in localStorage or sessionStorage, and use a short-lived token with silent renewal.
D.Rely on the SameSite=Strict attribute on the session cookie as the sole control against cross-site request forgery.
E.Enable CORS with the wildcard origin so any front end can call the microservices without preflight failures.
AnswersA, C

A strict CSP with nonces or hashes and no inline script blocks the most common injection vectors that would run attacker code in the page. Combined with in-memory token storage, it addresses both the injection and the credential-theft halves of the threat, which is why it belongs in the design rather than as a later hardening step.

Why this answer

The two effective controls are keeping tokens out of persistent browser storage with short lifetimes, and enforcing a strict Content Security Policy. Together they reduce both the likelihood that injected script executes and the value of any token it might obtain. Neither alone is sufficient, and controls aimed at cross-site request forgery or permissive CORS do not address the same-origin injection threat described.

Exam trap

The trap here is conflating cross-site request forgery defenses such as SameSite cookies with defenses against script injected into the trusted origin, which are different threat models.

175
MCQhard

An organization is concerned about 'Typosquatting' in their build system. Which strategy is most effective at preventing the accidental inclusion of malicious, similarly-named packages?

A.Rely on the developer's ability to check spelling.
B.Configure an allowlist-only proxy repository.
C.Increase the frequency of penetration tests.
D.Enable two-factor authentication on developer accounts.
AnswerB

An allowlist-only proxy permits only explicitly approved package names and versions, so a typosquatted dependency is rejected at resolution time regardless of how similar its name appears. This directly blocks accidental inclusion, satisfying the stem's constraint.

Why this answer

An allowlist-only proxy repository permits only explicitly approved packages (by name, version, and hash) to be fetched, so a malicious package with a similar name (e.g., 'reqeusts' instead of 'requests') is rejected even if a developer mistypes it. This is the most effective technical control because it removes reliance on human vigilance and blocks the attack at the dependency-resolution layer.

Exam trap

CSSLP often tests the misconception that authentication controls (2FA) or periodic testing (pen tests) prevent supply-chain typosquatting, when the effective control is dependency allowlisting at the repository layer.

How to eliminate wrong answers

Option A is wrong because relying on developers to check spelling is a human control that fails under time pressure, fatigue, or social engineering — typosquatting specifically exploits this. Option C is wrong because penetration tests are periodic, point-in-time assessments; they cannot prevent a malicious package from being pulled into a build between tests. Option D is wrong because two-factor authentication protects developer account access but does nothing to stop a developer from intentionally or accidentally installing a typosquatted package from a public registry.

176
MCQeasy

Which cryptographic practice is recommended for protecting sensitive data at rest in a relational database?

A.Using cleartext with database permissions
B.Using MD5 hashing
C.Using AES-256 encryption
D.Storing data in base64 encoding
AnswerC

AES-256 is a symmetric block cipher providing strong confidentiality for stored data, satisfying the at-rest protection requirement. Its 256-bit key resists brute-force attacks, and it is the standard algorithm for database and volume encryption, unlike hashing or asymmetric ciphers suited to other purposes.

Why this answer

AES-256 is a symmetric block cipher approved by NIST (FIPS 197) and is the standard recommendation for encrypting data at rest in databases, offering strong confidentiality with acceptable performance. It is used in modes like GCM or CBC with proper key management (e.g., KMS, HSM) to protect sensitive fields, tablespaces, or full-disk volumes.

Exam trap

The trap here is confusing encoding (Base64), hashing (MD5), and encryption (AES) — candidates who see 'protect data' and pick MD5 forget that hashing is one-way and cannot protect data that must be read back.

How to eliminate wrong answers

Option A is wrong because cleartext storage relies solely on database permissions, which fail the moment an attacker gains OS-level access, steals a backup, or exploits an application flaw — confidentiality is not provided. Option B is wrong because MD5 is a broken, fast hash (collisions demonstrated in 2004) designed for integrity, not confidentiality; it is not reversible encryption and cannot protect data at rest. Option D is wrong because Base64 is a reversible encoding, not encryption — anyone can decode it with a single command, so it offers zero confidentiality.

177
Multi-Selectmedium

Which THREE of the following activities should be included in a Secure Software Lifecycle Management plan?

Select 3 answers
A.Requiring developers to use only one specific programming language.
B.Providing secure coding training to developers.
C.Conducting periodic risk assessments of applications.
D.Buying insurance for all cyber incidents.
E.Defining requirements for audit logging and monitoring.
AnswersB, C, E

Secure coding training equips developers to avoid introducing vulnerabilities such as injection and cross-site scripting during implementation, directly satisfying the plan's requirement to embed security throughout development. Because most defects originate in code, upskilling the people writing it reduces remediation cost and strengthens the Microsoft Entra ID-protected build pipeline's overall assurance.

Why this answer

Option B is correct because secure coding training equips developers to recognize and avoid vulnerabilities such as SQL injection, XSS, and buffer overflows, which is a foundational Secure Software Lifecycle Management (SSLM) practice for building security in from the start. Option C is correct because periodic risk assessments identify, prioritize, and track application threats and weaknesses throughout the lifecycle, enabling risk-based decisions on controls and remediation. Option E is correct because defining audit logging and monitoring requirements ensures security-relevant events are captured, retained, and reviewed, supporting detection, incident response, and compliance within the SSLM plan.

Option A does not belong because mandating a single programming language is an architectural or standardization choice, not a security lifecycle control, and it does not inherently reduce risk. Option D does not belong because purchasing cyber insurance is a risk-transfer business decision, not a Secure Software Lifecycle Management activity, and it does not prevent or remediate software vulnerabilities.

178
MCQhard

A software architect is designing a system that uses a third-party library to parse complex file formats. The library has had several critical vulnerabilities in the past. The architect wants to reduce the risk of a zero-day vulnerability in the library compromising the entire application. Which design approach best mitigates this risk?

A.Wrap the library in a custom abstraction layer that validates all inputs and outputs to ensure they conform to expected formats.
B.Require the library to be updated to the latest version as soon as patches are available and monitor vulnerability feeds.
C.Perform static code analysis on the library's source code before each release to identify potential vulnerabilities.
D.Run the file parsing library in a separate process with minimal privileges and communicate with the main application via a restricted interface.
AnswerD

Isolating the library in a separate process with least privilege limits the impact of a zero-day exploit. If the parser is compromised, the attacker gains only the privileges of that process, not the entire application. The restricted interface further reduces the attack surface. This is a sandboxing approach that contains the blast radius.

Why this answer

Running a risky component in an isolated process with minimal privileges is a sandboxing technique that contains the damage from a zero-day. Even if the library is exploited, the attacker is confined to that process and cannot easily access the rest of the application or system. This is a proactive architectural mitigation.

Exam trap

The trap here is focusing on detection or patching, which do not protect against an unknown vulnerability, instead of containment, which limits the impact of an exploit.

179
MCQhard

You are leading a requirements elicitation session for a new EHR system. A stakeholder from the legal department insists that the system must comply with HIPAA. Another stakeholder from the clinical team wants quick access to patient records for emergency situations. You need to document a security requirement that balances these needs. Which requirement BEST addresses both compliance and usability?

A.Enforce multi-factor authentication (MFA) for all users, including emergency responders, with no exceptions.
B.Implement role-based access control (RBAC) with break-glass emergency access that logs all access and requires retrospective review.
C.Conduct annual security awareness training for all clinical staff on HIPAA privacy rules.
D.Encrypt all patient data at rest and in transit using AES-256 and TLS 1.3.
AnswerB

Break-glass access allows authorized clinicians to bypass normal access controls in emergencies, ensuring timely care. Logging and retrospective review maintain accountability and compliance with HIPAA's access control and audit requirements. This requirement balances usability (quick access) with security (audit and review), making it the best solution.

Why this answer

The break-glass RBAC requirement directly addresses both compliance and usability. It allows emergency access, satisfying the clinical need, while logging and retrospective review ensure accountability and HIPAA compliance. This balanced approach is a recognized best practice in healthcare systems, providing a controlled mechanism for exceptions without sacrificing security.

Exam trap

The trap here is choosing a purely technical control like encryption or MFA without considering the need to balance emergency access with compliance.

180
Multi-Selecteasy

Which TWO of the following are essential components of an effective Vendor Security Assessment program?

Select 2 answers
A.Physical inspection of the vendor's data center.
B.Mandatory integration of your internal tools with the vendor.
C.Review of third-party audit reports (e.g., SOC 2, ISO 27001).
D.Standardized vendor security questionnaires.
E.Requiring the vendor to use your internal developers.
AnswersC, D

Reviewing SOC 2 and ISO 27001 reports provides independent, standardised assurance over a vendor's controls, satisfying the need for objective evidence rather than self-attestation. This directly addresses the stem's requirement for an essential assessment component, since third-party audits validate security posture against recognised frameworks without relying solely on vendor claims.

Why this answer

Effective programs combine standardized assessment questionnaires with a review of objective evidence, such as third-party audit reports (SOC 2).

181
Multi-Selecthard

Which TWO of the following are required to successfully implement a secure logging mechanism?

Select 2 answers
A.Log every single user mouse movement
B.Send logs to a publicly accessible bucket
C.Filter sensitive data before logging
D.Store logs in a tamper-evident system
E.Disable all logging to improve performance
AnswersC, D

Filtering sensitive data before logging prevents credentials, tokens and personal information entering log stores, satisfying the secure logging requirement that records must not become a confidentiality liability. Without this control, logs themselves leak the very data the application protects.

Why this answer

Option C is correct because filtering sensitive data (e.g., passwords, PII, tokens, credit-card numbers) before it is written to logs prevents confidential information from being exposed in log files, which is a core requirement of a secure logging mechanism and aligns with standards like PCI DSS and GDPR. Option D is correct because storing logs in a tamper-evident system (e.g., append-only storage, write-once buckets, cryptographic hashing/chaining, or a SIEM with integrity controls) ensures that attackers cannot alter or delete records to hide their activity, preserving the logs' evidentiary value for auditing and incident response. Option A is not required and would generate excessive noise and storage costs while providing little security value.

Option B is wrong because sending logs to a publicly accessible bucket exposes potentially sensitive data to unauthorized parties. Option E is wrong because disabling logging removes the very visibility needed for detection, investigation, and compliance.

182
MCQhard

In an OAuth 2.0 flow, you are using the 'Authorization Code' grant type. You notice an attacker is attempting to intercept the code. Which security concept is being utilized by requiring the client_secret during the token exchange?

A.Availability
B.Non-repudiation
C.Confidentiality
D.Authentication
E.Integrity
AnswerD

Requiring the client_secret proves the token request originates from the legitimate registered client, not an interceptor holding a stolen code. This client authentication mechanism satisfies the stem by binding the code exchange to a verified identity.

Why this answer

Requiring the client_secret during the token exchange authenticates the client to the authorization server, ensuring that only the legitimate registered client can redeem the authorization code. This is fundamentally an authentication control — it verifies the identity of the client application — which is why D is correct.

Exam trap

CSSLP often tests the confusion between authentication and confidentiality — candidates see a 'secret' and pick confidentiality, but the exam expects you to recognize that presenting a credential to prove client identity is authentication, not encryption.

How to eliminate wrong answers

Option A is wrong because availability concerns ensuring systems and data are accessible when needed; it is unrelated to verifying client identity during token exchange. Option B is wrong because non-repudiation provides proof of origin or action (e.g., digital signatures) so a party cannot deny sending a message; the client_secret does not provide non-repudiation. Option C is wrong because confidentiality protects data from unauthorized disclosure (e.g., via TLS encryption); while the secret is sensitive, its use here is to authenticate the client, not to keep the code confidential.

Option E is wrong because integrity ensures data has not been altered in transit (e.g., via HMAC or TLS); the client_secret does not verify message integrity.

183
MCQhard

You are managing requirements for a distributed microservices application. You need to ensure that service-to-service communication is encrypted. Which requirement type best categorizes this constraint?

A.Non-functional security requirement
B.Functional requirement
C.Business rule
D.Use case description
AnswerA

Encryption of service-to-service traffic constrains how the system behaves rather than what function it delivers, so it is a quality attribute, not a functional requirement. It specifies a security characteristic the microservices must exhibit, matching the non-functional category.

Why this answer

Encryption of service-to-service traffic is a quality attribute describing how the system behaves, not a specific function it performs, so it is a non-functional security requirement. It constrains the architecture (e.g., mTLS, TLS 1.3) rather than describing a user-visible behavior. CSSLP categorizes such constraints as non-functional requirements that shape design and verification.

Exam trap

The trap is assuming anything security-related must be 'functional' — candidates forget that encryption, availability, and performance are quality attributes (non-functional) that constrain rather than describe behavior.

How to eliminate wrong answers

Option B is wrong because a functional requirement describes what the system does (e.g., 'the service shall authenticate users'), not how securely it communicates. Option C is wrong because a business rule encodes domain policy (e.g., 'orders over $10k require approval'), not a technical security constraint. Option D is wrong because a use case describes an actor-system interaction flow, not a cross-cutting encryption mandate.

184
Multi-Selecthard

Which THREE security controls are essential when implementing a 'Secure CI/CD' pipeline?

Select 3 answers
A.Using a secure credential vault to inject secrets at runtime.
B.Scanning source code for vulnerabilities using SAST tools.
C.Granting 'Admin' privileges to all developers on the CI/CD server.
D.Isolating build runners in a restricted network segment.
E.Storing pipeline secrets in plain text within the Jenkinsfile.
AnswersA, B, D

A credential vault injects secrets at runtime, so pipeline logs, build scripts and source repositories never contain plaintext keys. This removes long-lived credentials from artefacts and satisfies the secure CI/CD requirement to protect secrets throughout build and deployment.

Why this answer

Option A is correct because a secure credential vault (e.g., HashiCorp Vault, AWS Secrets Manager, or Jenkins Credentials Binding) injects secrets at runtime so they are never hardcoded or persisted in source control or build logs. Option B is correct because SAST tools (e.g., SonarQube, Checkmarx, Semgrep) analyze source code for vulnerabilities such as injection flaws and insecure deserialization before artifacts are built, shifting security left in the pipeline. Option D is correct because isolating build runners in a restricted network segment limits lateral movement and blast radius if a build agent is compromised, enforcing least-privilege network access to only required dependencies and registries.

Option C is wrong because granting Admin privileges to all developers violates least privilege and enables unauthorized pipeline, credential, and configuration changes. Option E is wrong because storing secrets in plain text within a Jenkinsfile exposes them to anyone with repository read access and to build log leakage, rather than using masked, runtime-injected credentials.

185
MCQeasy

A software development team is adopting a secure software testing strategy. They want to ensure that security testing is performed continuously and that feedback is provided to developers as early as possible. Which testing approach best aligns with this goal?

A.Perform manual code reviews for security issues before each release.
B.Conduct a penetration test at the end of each development cycle.
C.Run a static analysis scan only when a security champion requests it.
D.Integrate automated security testing into the CI/CD pipeline.
AnswerD

Integrating automated security testing into the CI/CD pipeline allows security checks to run on every code commit, providing immediate feedback to developers. This continuous approach aligns with DevSecOps principles and enables early detection and remediation of vulnerabilities. It is the most effective way to achieve continuous security testing and early feedback.

Why this answer

Integrating automated security testing into the CI/CD pipeline embeds security checks into the development workflow, running on every commit or build. This provides immediate, continuous feedback to developers, allowing them to fix issues early when they are cheapest to remediate. It aligns with the shift-left philosophy and ensures consistent security coverage without relying on manual triggers.

Exam trap

The trap here is thinking that end-of-cycle penetration testing or manual reviews provide early feedback, when they actually occur too late or inconsistently.

186
Multi-Selecteasy

Which TWO aspects of the software deployment process directly impact the 'Confidentiality' of the application data?

Select 2 answers
A.The speed at which the deployment occurs.
B.The number of instances deployed in the auto-scaling group.
C.The use of secure vaulting mechanisms for application secrets and keys.
D.The color scheme used in the application UI.
E.Enforcing TLS/SSL for all data in transit between components.
AnswersC, E

Secure vaulting stores application secrets and keys encrypted, with access strictly controlled and audited, so credentials are never exposed in configuration files, repositories or logs. This directly prevents unauthorised disclosure of sensitive data during deployment, satisfying the confidentiality requirement.

Why this answer

Option C is correct because storing application secrets and keys in a secure vaulting mechanism (such as AWS Secrets Manager, HashiCorp Vault, or Azure Key Vault) prevents unauthorized disclosure of credentials that protect application data, directly preserving confidentiality. Option E is correct because enforcing TLS/SSL for all data in transit between components encrypts network traffic, preventing eavesdropping or man-in-the-middle interception that would otherwise expose confidential data. The speed at which deployment occurs (A) affects availability and change risk, not confidentiality.

The number of instances in an auto-scaling group (B) affects availability and scalability, not confidentiality. The UI color scheme (D) is purely cosmetic and has no bearing on data confidentiality.

187
MCQeasy

You are eliciting security requirements for an application that must comply with PCI-DSS. What is the most effective way to identify the scope of the systems requiring the highest level of security?

A.Perform a network vulnerability scan
B.Map the data flow of credit card information
C.Review the application source code
D.Update the firewall rule set
AnswerB

Mapping the cardholder data flow traces credit card information from entry through storage, processing and transmission, exposing every system, network segment and third party that touches it. This directly satisfies PCI-DSS scoping, which defines scope by where cardholder data resides or transits, so the highest-security controls land on precisely those components.

Why this answer

PCI-DSS requires identifying the Cardholder Data Environment (CDE) to define the scope of compliance, which is the most critical first step.

188
Multi-Selecteasy

When evaluating a secure design, which TWO of the following practices are considered essential for secure session management?

Select 2 answers
A.Allowing multiple simultaneous sessions for a single user.
B.Using long-lived sessions to improve user experience.
C.Setting the HttpOnly and Secure flags on session cookies.
D.Storing session tokens in the browser's local storage.
E.Regenerating the session ID after a successful login.
AnswersC, E

The HttpOnly flag blocks JavaScript access to the session cookie, mitigating XSS-based theft, while Secure restricts transmission to HTTPS, preventing interception over cleartext channels. Together they harden the cookie itself, a core session management control.

Why this answer

Option C is correct because setting the HttpOnly flag prevents client-side JavaScript from accessing the session cookie, mitigating XSS-based session theft, while the Secure flag ensures the cookie is only transmitted over HTTPS, protecting it from interception on plaintext channels. Option E is correct because regenerating the session ID after successful authentication prevents session fixation attacks, where an attacker pre-sets a known session ID and hijacks the authenticated session. Option A is not essential and can actually weaken security by increasing the attack surface and complicating session tracking.

Option B is incorrect because long-lived sessions increase the window of opportunity for token theft or replay; secure designs favor short lifetimes with re-authentication or refresh tokens. Option D is incorrect because storing session tokens in localStorage exposes them to XSS since JavaScript can read them, unlike HttpOnly cookies.

Exam trap

CSSLP often tests the misconception that storing session tokens in local storage is secure, but it is vulnerable to XSS; HttpOnly cookies are preferred, and session ID regeneration after login is essential.

189
Multi-Selecthard

Which THREE of the following represent effective 'Shift-Left' strategies for secure software lifecycle management?

Select 3 answers
A.Integrating security linting into the IDE.
B.Performing security design reviews before coding begins.
C.Conducting post-deployment vulnerability scanning.
D.Conducting static analysis (SAST) during the development phase.
E.Relying solely on external bug bounty programs.
AnswersA, B, D

IDE security linting flags insecure code patterns as developers write them, moving detection to the earliest lifecycle phase. This satisfies Shift-Left by preventing defects from progressing downstream, where remediation costs far more than fixing them at authoring time.

Why this answer

Option A is correct because integrating security linting into the IDE catches insecure coding patterns (e.g., hardcoded secrets, unsafe API usage) at the moment code is written, which is the earliest practical point in the lifecycle and embodies the Shift-Left principle of moving controls leftward. Option B is correct because security design reviews before coding begins address architectural flaws such as missing authentication, improper trust boundaries, or weak cryptography when they are cheapest to fix, rather than after implementation. Option D is correct because running SAST during the development phase analyzes source code for vulnerabilities like injection or buffer overflows before the artifact reaches testing or production, directly shifting detection earlier.

Option C does not belong because post-deployment vulnerability scanning occurs after release, which is a Shift-Right activity, not Shift-Left. Option E does not belong because relying solely on external bug bounty programs is a reactive, post-release detection strategy that outsources discovery rather than preventing defects earlier in the lifecycle.

190
Multi-Selecthard

In threat modeling, which THREE categories are explicitly defined by the STRIDE methodology?

Select 3 answers
A.Tampering
B.Repudiation
C.Encryption
D.Spoofing
E.Identification
AnswersA, B, D

Tampering is one of the six STRIDE categories, covering unauthorised modification of data or code in transit or at rest. It is explicitly defined by the methodology, so it correctly satisfies the stem's requirement to identify categories STRIDE names.

Why this answer

STRIDE is Microsoft's threat modeling mnemonic, and its six explicitly defined categories are Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege. Option A (Tampering) is correct because STRIDE defines Tampering as the unauthorized modification of data or systems, such as altering a database record or a message in transit. Option B (Repudiation) is correct because STRIDE defines Repudiation as the ability of a user or system to deny having performed an action, which is countered by non-repudiation controls like digital signatures and audit logs.

Option D (Spoofing) is correct because STRIDE defines Spoofing as impersonating a user, process, or system to gain unauthorized access, typically mitigated by authentication. Option C (Encryption) is not a STRIDE category; encryption is a mitigation technique rather than a threat class. Option E (Identification) is not a STRIDE category either; identification is an authentication-related process, not one of the six threat types.

191
MCQmedium

A security auditor reviews your code and flags that you are using 'hardcoded cryptographic keys' in the source repository. Which security concept is being violated?

A.Availability
B.Confidentiality
C.Non-repudiation
D.Integrity
E.Accounting
AnswerB

Hardcoded keys sit in source control, readable by anyone with repository access, so the secret is no longer restricted to authorised parties. That exposure breaches confidentiality, the property ensuring information is disclosed only to those permitted to see it.

Why this answer

Hardcoded keys violate confidentiality because the keys are exposed to anyone with access to the source code.

192
MCQmedium

You are a security architect for a FinTech startup building a mobile payment app. The product owner has provided a list of functional user stories but no security requirements. You need to integrate security into the Agile development process without disrupting the sprint cadence. Which approach BEST ensures security requirements are identified and documented continuously?

A.Define security requirements as acceptance criteria within each user story and refine them during backlog grooming.
B.Assign a dedicated security champion to write security requirements for each sprint after the sprint planning meeting.
C.Conduct a comprehensive security requirements workshop at the project initiation and document all requirements in a separate security requirements specification.
D.Rely on the QA team to identify security requirements during test case creation for each user story.
AnswerA

Embedding security requirements as acceptance criteria ensures they are addressed within the same sprint as the functional work. This approach integrates security into the existing Agile workflow, making security a definition-of-done item. It allows the team to verify security controls before story completion, reducing the risk of accumulating security debt and ensuring continuous security consideration.

Why this answer

Integrating security requirements as acceptance criteria within user stories ensures they are continuously identified, refined, and validated throughout the Agile lifecycle. This approach aligns security with business value, promotes collaboration, and makes security a natural part of the definition of done. Other approaches either delay security consideration or isolate it from the development flow, reducing effectiveness.

Exam trap

The trap here is assuming that security requirements must be documented in a separate specification to be effective, rather than integrating them into existing Agile artifacts like user stories.

193
MCQhard

A security tester is performing interactive application security testing (IAST) on a Java web application. The IAST agent is deployed in the test environment and instruments the application during automated functional tests. The tester notices that the IAST tool reports a high number of false positives for SQL injection. What is the most likely cause of these false positives?

A.The application is using an object-relational mapping (ORM) framework that generates dynamic SQL.
B.The IAST agent is not configured to monitor database queries.
C.The IAST agent is detecting tainted data flows that are actually safe due to input validation or parameterized queries.
D.The automated functional tests do not exercise all application code paths.
AnswerC

IAST tools track data flow from sources to sinks. If the tool does not recognize that input validation or parameterized queries neutralize the taint, it may incorrectly report a vulnerability. This is a common cause of false positives in IAST, especially when the tool's rules are not tailored to the application's frameworks. Proper configuration and rule tuning can reduce these false positives.

Why this answer

IAST tools instrument the application and monitor data flow at runtime. False positives for SQL injection often occur when the tool fails to recognize that input validation or parameterized queries have neutralized the taint. The agent may still track the tainted data to the database sink and flag it as a vulnerability, even though the query is safe.

Tuning the tool's rules and ensuring it understands the application's frameworks can mitigate this issue.

Exam trap

The trap here is assuming that false positives are caused by lack of coverage or monitoring, when they actually stem from the tool misinterpreting safe data flows as vulnerable.

194
Multi-Selectmedium

Which TWO of the following are effective strategies to prevent Cross-Site Scripting (XSS)?

Select 2 answers
A.Relying on antivirus software
B.Disabling cookies
C.Using insecure HTML comments
D.Using a Content Security Policy (CSP)
E.Context-aware output encoding
AnswersD, E

A Content Security Policy restricts which script sources the browser will execute, so injected inline or third-party scripts are blocked even when output encoding fails. This defence-in-depth directly mitigates XSS by constraining the rendering context.

Why this answer

Option D, using a Content Security Policy (CSP), is correct because CSP is an HTTP response header (e.g., Content-Security-Policy: default-src 'self') that restricts which sources of scripts, styles, and other resources the browser may load, thereby blocking inline script execution and mitigating reflected and stored XSS even if an injection occurs. Option E, context-aware output encoding, is correct because encoding untrusted data according to its output context (HTML entity encoding for HTML body, JavaScript escaping for script blocks, attribute encoding for HTML attributes, URL encoding for URLs) ensures injected characters are rendered as inert text rather than executable markup or script, which is the primary defense against XSS. Option A, relying on antivirus software, is not appropriate because antivirus operates on the client endpoint and cannot reliably detect or block browser-executed script injections delivered through web applications.

Option B, disabling cookies, does not prevent XSS; it only removes one target of session theft and may break application functionality, while the injected script still executes in the victim's browser. Option C, using insecure HTML comments, is not a security control at all and can even worsen exposure by leaving sensitive data or code in page source.

Exam trap

CSSLP often tests the misconception that client-side or session-level controls (antivirus, disabling cookies) prevent XSS, when the real defenses are server-side output encoding and browser-enforced CSP.

195
MCQmedium

A healthcare software development team is building a patient portal that must comply with HIPAA. The team has completed a risk assessment and identified several potential threats. They now need to translate these findings into actionable security requirements. Which of the following is the MOST effective approach to ensure that the security requirements adequately address the identified risks?

A.Create a security requirements traceability matrix that links each threat to one or more mitigating security requirements and verifies coverage.
B.Incorporate general security best practices from OWASP Top 10 into the design and assume they cover the identified threats.
C.Hire an external penetration testing firm to test the application after development and fix any vulnerabilities found.
D.Document the threats in the risk register and assign them to the development team to address during coding as they see fit.
AnswerA

A traceability matrix directly maps each identified threat to specific security requirements, ensuring that no threat is left unaddressed. It also provides a mechanism to verify that all requirements have been implemented and tested, which is critical for HIPAA compliance and auditability. This approach systematically closes the loop between risk assessment and requirement definition.

Why this answer

The most effective way to ensure security requirements address identified risks is to establish traceability from threats to requirements. This creates a verifiable link that supports compliance and ensures coverage. Other options either lack structure, rely on generic practices, or are reactive rather than proactive.

Exam trap

The trap here is assuming that general best practices or post-development testing can substitute for a systematic mapping of threats to specific security requirements.

196
MCQmedium

Your application uses digital signatures to confirm the sender of a message. Which security goal is primarily achieved?

A.Authorization
B.Encryption
C.Availability
D.Non-repudiation
E.Confidentiality
AnswerD

Digital signatures bind the sender's private key to the message, so the signer cannot later deny authorship; this provides non-repudiation, proving origin and integrity to a third party. Confidentiality and authentication alone do not prevent the sender disputing the message.

Why this answer

Digital signatures are the standard mechanism for proving authenticity and non-repudiation.

197
MCQmedium

When performing a threat model using the STRIDE methodology, which component are you analyzing when you evaluate the risk of an attacker sniffing traffic between a client and the web server?

A.Elevation of Privilege.
B.Tampering.
C.Information Disclosure.
D.Spoofing.
AnswerC

Sniffing traffic exposes data in transit, so the STRIDE category breached is Information Disclosure. The threat targets confidentiality of the client-server communication channel, not integrity, availability or authentication, making Information Disclosure the matching classification for this eavesdropping scenario.

Why this answer

STRIDE's Information Disclosure category covers the exposure of information to unauthorized parties, which is exactly what traffic sniffing achieves — an attacker on the network path reads data that should be confidential. Sniffing between a client and web server exposes credentials, session tokens, or sensitive payloads, so the threat being modeled is Information Disclosure. The other STRIDE categories describe different attacker goals (spoofing identity, tampering with data, etc.), not confidentiality loss.

Exam trap

The trap is confusing Information Disclosure with Spoofing — candidates see 'attacker intercepting traffic' and think impersonation, but sniffing violates confidentiality, not authentication.

How to eliminate wrong answers

Option A is wrong because Elevation of Privilege is about an attacker gaining higher permissions than authorized (e.g., exploiting a vulnerability to become root or admin), not about reading traffic. Option B is wrong because Tampering is about unauthorized modification of data — sniffing is passive reading, not alteration. Option D is wrong because Spoofing is about impersonating a legitimate entity (e.g., forging a certificate or IP), whereas sniffing is interception, not impersonation.

198
MCQeasy

When performing automated security testing, which of the following is considered a 'false positive'?

A.The scanner reports a vulnerability that is not present in the application.
B.The scanner misses an existing vulnerability.
C.The scanner causes the application to crash.
D.The scanner reports a vulnerability that is already fixed.
E.null
AnswerA

A false positive occurs when the scanner flags a vulnerability that does not actually exist in the application, wasting remediation effort. This contrasts with a false negative, where a genuine flaw goes undetected, making the reported-but-absent condition the defining characteristic.

Why this answer

A false positive is a report of a vulnerability that does not actually exist in the target application.

199
Multi-Selectmedium

Which THREE actions are essential for ensuring a secure Incident Response process for deployed software?

Select 3 answers
A.Maintaining an updated contact list and clear incident escalation paths.
B.Allowing the threat actor to continue accessing the system to observe their tactics.
C.Immediately deleting all production logs to hide the incident from auditors.
D.Conducting a post-mortem analysis to identify root causes and improve future security.
E.Isolating the affected systems to prevent the spread of the attack.
AnswersA, D, E

An updated contact list with clear escalation paths ensures the right responders are engaged promptly during a live incident, satisfying the stem's requirement for an essential Incident Response action. Defined escalation routes prevent delays and miscommunication, which are common causes of prolonged exposure when deployed software is compromised.

Why this answer

Option A is correct because an updated contact list and clearly defined escalation paths ensure the right responders are notified quickly and incidents are routed to the appropriate teams, which is foundational to any Incident Response (IR) plan. Option D is correct because a post-mortem analysis identifies root causes and lessons learned, enabling corrective actions and continuous improvement of security controls and IR procedures. Option E is correct because isolating affected systems (for example, network segmentation or host containment) limits lateral movement and prevents the attack from spreading to other assets.

Option B is not appropriate because deliberately allowing a threat actor to continue accessing systems risks further compromise and data loss; observation should only occur under controlled, authorized threat-hunting or deception operations, not as a general IR action. Option C is wrong because deleting production logs destroys forensic evidence, violates audit and legal retention requirements, and undermines the ability to investigate and remediate the incident.

Exam trap

CSSLP often tests the misconception that 'observing the attacker' is a valid IR step — it is only legitimate under a formally authorized deception/honeypot program, never as a default response to a live production incident.

200
MCQmedium

A developer is implementing a REST API. To prevent Mass Assignment vulnerabilities, what should be enforced during the model binding process?

A.Use Data Transfer Objects (DTOs) to restrict input
B.Disable SSL on the API endpoint
C.Increase the request timeout
D.Store user passwords in plaintext
AnswerA

DTOs define an explicit allow-list of bindable properties, so the model binder cannot populate fields absent from the DTO. This directly blocks over-posting of sensitive attributes such as role or isAdmin, satisfying the requirement to prevent Mass Assignment during model binding.

Why this answer

Mass assignment occurs when an attacker submits extra fields (e.g., isAdmin=true) that the framework blindly binds to the model. Using Data Transfer Objects (DTOs) restricts binding to only the fields the API intends to accept, so unexpected properties are ignored. This enforces an explicit allow-list at the model-binding layer, which is the recommended defense in frameworks like Spring, Rails, and ASP.NET.

Exam trap

The trap here is confusing input validation with binding restriction — candidates may pick 'strict input validation' style answers, but mass assignment is specifically about which fields the framework binds, not whether values are well-formed.

How to eliminate wrong answers

Option B is wrong because disabling SSL would expose credentials and data in transit, worsening security rather than preventing mass assignment. Option C is wrong because request timeout has no relationship to which fields get bound to a model. Option D is wrong because storing passwords in plaintext is a separate, severe vulnerability (violates hashing best practices) and does nothing to prevent mass assignment.

201
Multi-Selectmedium

Which TWO security monitoring strategies should be implemented to secure an application during its operational lifecycle?

Select 2 answers
A.Share all internal server IP addresses in the public DNS records.
B.Implement centralized log aggregation with automated alerting for security events.
C.Enforce strict egress filtering policies to block communication with unknown IP addresses.
D.Permit all inbound traffic on port 80 to ensure maximum availability.
E.Disable all egress traffic from the application servers to prevent data exfiltration.
AnswersB, C

Centralised log aggregation with automated alerting satisfies the operational-lifecycle monitoring requirement by consolidating events from distributed components and triggering real-time responses to security incidents, enabling detection across the deployed application rather than relying on isolated host logs.

Why this answer

Option B is correct because centralized log aggregation (e.g., shipping application and server logs to a SIEM such as Splunk, ELK, or a cloud-native service) combined with automated alerting enables continuous detection of security events like brute-force attempts, privilege escalation, or anomalous access patterns during the operational lifecycle. Option C is correct because strict egress filtering — allowing outbound traffic only to known, required destinations and ports via firewall or security group rules — limits command-and-control callbacks, data exfiltration, and lateral movement if the application is compromised. Option A is wrong because publishing internal server IP addresses in public DNS records exposes the internal topology and increases the attack surface rather than securing the application.

Option D is wrong because permitting all inbound traffic on port 80 (HTTP) unconditionally removes access controls and enables exploitation of web-facing vulnerabilities; availability should be achieved through redundancy, not open ports. Option E is wrong because disabling all egress traffic breaks legitimate application functionality (updates, APIs, database calls) and is an over-restrictive measure; egress should be filtered to approved destinations, as in option C.

Exam trap

CSSLP often tests the balance between availability and security, so candidates must avoid extremes like 'permit all inbound' or 'disable all egress' and instead choose controls that provide visibility and least-privilege without breaking legitimate operations.

202
MCQmedium

You are analyzing an application to prevent unauthorized API access. Which requirement elicitation technique is best suited to identify potential entry points that an attacker might exploit?

A.User Story Mapping
B.Abuse Case Modeling
C.Compliance Gap Analysis
D.Cost-Benefit Analysis
AnswerB

Abuse case modelling deliberately examines how an attacker would misuse functionality, exposing entry points such as unvalidated parameters and exposed endpoints. This satisfies the stem's goal of identifying exploitable API entry points, unlike use cases, which describe only intended legitimate behaviour.

Why this answer

Abuse case modeling deliberately thinks like an attacker, enumerating misuse scenarios and entry points that legitimate use cases overlook. It is specifically designed to surface attack surfaces such as unauthenticated endpoints, parameter tampering, and privilege escalation paths. This makes it the best elicitation technique for identifying exploitable API entry points.

Exam trap

The trap is choosing a legitimate requirements technique (user stories, compliance) because it sounds thorough — CSSLP tests whether you recognize that only attacker-centric techniques like abuse case modeling reveal exploitable entry points.

How to eliminate wrong answers

Option A is wrong because user story mapping captures legitimate user goals and workflows, not adversarial misuse. Option C is wrong because compliance gap analysis compares controls to a standard (e.g., PCI DSS) and does not enumerate attacker entry points. Option D is wrong because cost-benefit analysis is a financial decision tool, not a threat-elicitation technique.

203
MCQmedium

Which metric is most useful to measure the effectiveness of a secure SDLC program over time?

A.Total number of lines of code written.
B.Number of developers on the team.
C.Mean Time to Remediate (MTTR) for vulnerabilities.
D.Budget allocated to security tools.
AnswerC

MTTR directly quantifies how quickly identified vulnerabilities are fixed, evidencing whether secure SDLC controls actually reduce exposure over successive releases. Unlike one-off counts, it tracks remediation capability across time, satisfying the stem's requirement to measure programme effectiveness longitudinally rather than at a single point.

Why this answer

Mean Time to Remediate (MTTR) for vulnerabilities is the most useful metric because it directly measures how quickly an organization responds to and fixes security issues identified in the SDLC. A decreasing MTTR over time indicates an effective secure SDLC program that integrates security early and remediates efficiently. It is a outcome-based metric tied to risk reduction.

Exam trap

CSSLP often tests the difference between input, output, and outcome metrics; candidates may choose budget or lines of code because they are easy to measure, but the exam expects an outcome metric like MTTR that reflects security posture improvement.

How to eliminate wrong answers

Option A is wrong because lines of code written is a productivity metric and does not reflect security effectiveness. Option B is wrong because the number of developers is a resource metric, not a security outcome. Option D is wrong because budget allocated to security tools is an input metric and does not measure whether the program is actually reducing risk.

204
Multi-Selectmedium

Which TWO of the following are primary benefits of including security requirements early in the SDLC?

Select 2 answers
A.Reduces the total cost of remediation
B.Ensures security architecture is aligned with business requirements
C.Eliminates the need for penetration testing
D.Reduces the amount of documentation required
E.Allows for the removal of all security testing
AnswersA, B

Addressing flaws during design or coding costs far less than patching deployed systems, because remediation effort and blast radius both grow sharply after release. This directly satisfies the stem's cost constraint: early security requirements prevent expensive rework, unlike controls bolted on post-deployment.

Why this answer

Option A is correct because addressing security requirements during early SDLC phases (such as requirements and design) allows flaws to be identified and fixed before code is written or deployed, and defects found later in production or even in testing are dramatically more expensive to remediate — this is the well-established "shift left" cost curve. Option B is correct because incorporating security requirements early ensures that security controls and architecture are designed to support the organization's business objectives, compliance obligations, and risk tolerance rather than being bolted on afterward, keeping security aligned with business requirements. Option C is incorrect because penetration testing remains a necessary validation activity regardless of when security requirements are introduced; early requirements reduce but never eliminate the need for adversarial testing.

Option D is incorrect because security requirements typically increase documentation (policies, threat models, control mappings, test evidence) rather than reduce it. Option E is incorrect because security testing cannot be removed — early requirements complement, not replace, verification and validation activities such as SAST, DAST, and penetration testing.

Exam trap

The trap is the absolutist language in options like 'eliminates the need for penetration testing' or 'removes all security testing' — early requirements reduce cost and improve alignment but never replace testing.

205
MCQmedium

A security engineer at a healthcare SaaS provider is planning the disposal of decommissioned application servers that hosted an electronic health records system. The servers held encrypted databases and application logs. Which action best satisfies secure decommissioning requirements for the data at rest on these disks while preserving the ability to repurpose the hardware internally?

A.Run the vendor's secure erase command that issues an ATA Secure Erase to the drive controller, then immediately return the disks to the spare pool without further validation.
B.Cryptographically erase the data by destroying the key-encryption keys and the wrapped data-encryption keys held in the application key store, then verify the disks contain only ciphertext.
C.Perform a single-pass overwrite of the entire disk with zeros using the manufacturer's low-level format utility, then reinstall the base operating system image.
D.Remove the disks, store them in a locked evidence cage indefinitely, and redeploy only the chassis with new disks to the internal lab.
AnswerB

Because the EHR databases and logs were encrypted at rest, destroying the key-encryption keys and wrapped data-encryption keys renders the remaining ciphertext permanently unrecoverable. This cryptographic erasure approach is efficient, auditable, and preserves the hardware for internal reuse. Verifying that only ciphertext remains confirms the sanitization objective for regulated health data was met.

Why this answer

When data at rest is protected by full-disk or database-level encryption, cryptographic erasure is the most reliable and verifiable decommissioning technique because it removes the means to decrypt rather than relying on overwriting every block. Destroying key-encryption keys and wrapped data-encryption keys, then confirming only ciphertext remains, neutralizes the data while allowing the hardware to be repurposed internally.

Exam trap

The trap here is assuming that any overwrite or vendor secure-erase command is automatically sufficient, when the real requirement is to render the encrypted data unrecoverable, most reliably by destroying its keys and validating the result.

206
MCQeasy

Which of the following describes the purpose of 'misuse case' modeling?

A.To ensure user interface guidelines are followed
B.To describe scenarios where the system is used to cause harm
C.To identify all potential bugs in the code
D.To document the project timeline
AnswerB

Misuse cases invert the actor's intent, modelling an adversary or hostile insider deliberately abusing legitimate functionality to cause harm. This surfaces abuse and attack scenarios during requirements elicitation, complementing use cases that describe only intended, benign behaviour.

Why this answer

Misuse cases identify threats by describing how an actor can misuse the system to create a negative impact.

207
MCQmedium

A financial services firm mandates that every open-source component pulled into its build pipeline must carry a cryptographically signed provenance attestation from the original project maintainer. During a review, you discover that Sigstore's cosign verification succeeds, but the attestation was generated by an internal CI runner rather than the upstream maintainer. What is the most significant supply chain risk introduced by this configuration?

A.The cosign verification will fail because Sigstore requires the signer's identity to match the artifact's origin repository, causing builds to break unpredictably.
B.The attestation lacks a timestamp from a trusted timestamp authority, making it impossible to determine whether the artifact was built before or after a known vulnerability disclosure.
C.The use of an internal runner instead of the upstream maintainer violates the SLSA level 3 requirement for a hosted build platform, automatically downgrading the artifact to SLSA level 1.
D.The signature does not bind the artifact to the actual build environment, so a compromised internal runner could attest to malicious code as if it originated upstream.
AnswerD

The attestation's value depends on the identity of the signer and the build environment it represents. If an internal runner signs on behalf of upstream, the cryptographic guarantee is only that the internal system produced that statement, not that the upstream maintainer did. An attacker who compromises the internal runner can generate a valid signature for a tampered artifact, and downstream verification will still pass.

Why this answer

A provenance attestation is only as trustworthy as the identity it binds to. When an internal CI runner signs an attestation claiming to represent upstream code, the signature proves internal origin, not upstream origin. An attacker who compromises that runner can attest to malicious artifacts, and cosign verification will still succeed because the internal identity is trusted.

The correct answer identifies this identity mismatch as the core supply chain risk.

Exam trap

The trap here is assuming that a valid cryptographic signature from any trusted entity proves upstream provenance, when the real guarantee depends on the signer's identity matching the artifact's true origin.

208
Multi-Selectmedium

Which TWO of the following are examples of how software can maintain 'Integrity'?

Select 2 answers
A.Encrypting data at rest using AES.
B.Ensuring the server is always online.
C.Using cryptographic hash functions (e.g., SHA-256) to verify file contents.
D.Implementing strong access control lists (ACLs) to prevent unauthorized writes.
E.Forcing users to change passwords regularly.
AnswersC, D

Cryptographic hash functions produce a fixed-length digest that changes if any byte of the file alters, so recomputing and comparing the digest detects unauthorised modification. This directly satisfies integrity, which requires data to remain accurate and unaltered, unlike confidentiality (encryption) or availability (redundancy).

Why this answer

Integrity means ensuring data is not altered in an unauthorized or undetected way, and option C supports this directly: cryptographic hash functions such as SHA-256 produce a fixed-length digest of file contents, so recomputing the hash and comparing it to a trusted value detects any modification to the data. Option D also supports integrity because strong access control lists (ACLs) restrict who may write to or modify a resource, preventing unauthorized changes at the source. By contrast, option A (AES encryption at rest) primarily provides confidentiality, option B (server always online) addresses availability, and option E (forcing regular password changes) is an authentication/credential-hygiene control, none of which by themselves guarantee that data remains unaltered.

209
MCQeasy

A software development team is creating a new e-commerce application. During requirements elicitation, the security architect suggests using misuse cases to identify security requirements. Which of the following BEST describes the primary purpose of misuse cases in this context?

A.To create test cases for verifying that the application meets performance benchmarks.
B.To define the functional requirements for the checkout process.
C.To identify potential threats and attacks that the system must defend against.
D.To document normal user interactions with the system to ensure usability.
AnswerC

Misuse cases are a technique to model negative scenarios where an actor intentionally harms the system or exploits vulnerabilities. They help elicit security requirements by identifying what the system should prevent or detect. This proactive approach ensures that security is considered early in the lifecycle, aligning with CSSLP principles.

Why this answer

Misuse cases are designed to explore how a system can be misused by malicious actors, thereby identifying potential threats and deriving security requirements. They complement use cases by focusing on negative scenarios. The other options describe purposes of other techniques or phases.

Exam trap

The trap here is confusing misuse cases with use cases or functional requirements, missing their specific role in threat identification.

210
MCQeasy

What is the primary security benefit of using a hardened container base image for microservices?

A.It reduces the attack surface
B.It increases execution speed
C.It automatically encrypts application logs
D.It eliminates the need for patching
AnswerA

A hardened base image strips unnecessary packages, shells, package managers and services, so fewer binaries carry exploitable vulnerabilities. Any compromise gains fewer local tools for privilege escalation or lateral movement, directly reducing the attack surface available to an attacker inside the container.

Why this answer

A hardened container base image removes unnecessary packages, services, shells, and default credentials, reducing the number of potential vulnerabilities and entry points an attacker can exploit. This directly shrinks the attack surface, which is the primary security benefit. Hardening does not inherently improve speed, encrypt logs, or remove the need for patching.

Exam trap

The trap is selecting a non-security benefit (speed, log encryption, no patching) that sounds plausible but does not reflect the actual purpose of hardening, which is attack surface reduction.

How to eliminate wrong answers

Option B is wrong because execution speed is a performance characteristic, not a security benefit, and hardening may even slightly reduce speed by removing convenience tools. Option C is wrong because log encryption is a separate control (e.g., via logging drivers or sidecars) and is not provided by base image hardening. Option D is wrong because hardened images still require patching; in fact, they must be rebuilt and repatched regularly to remain secure.

211
MCQhard

A government client requires that all software be validated against FIPS 140-3 standards. During requirements gathering, what is the most important step for the cryptographic module implementation?

A.Ensure all cryptographic modules are FIPS-validated
B.Implement multi-party authorization
C.Develop custom encryption algorithms
D.Encrypt all databases at rest
AnswerA

FIPS 140-3 validation is performed by an accredited laboratory against the standard, so only modules holding a valid certificate satisfy the client's mandate. Selecting validated modules during requirements gathering prevents later redesign when an unvalidated cryptographic library is discovered.

Why this answer

FIPS 140-3 validates the specific cryptographic modules used; therefore, the requirement must mandate the use of pre-validated modules.

212
Multi-Selectmedium

When designing a secure API, which THREE of the following practices are part of a 'defense in depth' strategy?

Select 3 answers
A.Enforcing mutual TLS (mTLS) for authentication.
B.Implementing rate limiting at the API gateway.
C.Hardcoding API keys in the code for efficiency.
D.Relying solely on the WAF for security.
E.Implementing input validation for all parameters.
AnswersA, B, E

Mutual TLS authenticates both client and server at the transport layer, so a compromised credential or spoofed endpoint still fails the handshake. This adds an independent control layer beyond tokens or gateway checks, satisfying defense in depth by ensuring no single authentication failure grants API access.

Why this answer

Option A is correct because enforcing mutual TLS (mTLS) authenticates both the client and the server at the transport layer, adding a strong cryptographic identity check that complements higher-layer controls in a defense-in-depth strategy. Option B is correct because rate limiting at the API gateway mitigates abuse, brute-force attempts, and denial-of-service by throttling excessive requests, providing an independent protective layer even if other controls fail. Option E is correct because input validation for all parameters prevents injection attacks (such as SQLi and XSS) and malformed data from reaching backend logic, forming a critical application-layer defense.

Option C is not appropriate because hardcoding API keys in source code exposes secrets to anyone with repository access and prevents rotation, weakening security rather than adding a layer. Option D is not appropriate because relying solely on a WAF creates a single point of failure and ignores other layers like authentication, input validation, and rate limiting that defense in depth requires.

213
Multi-Selecthard

When implementing a 'Zero Trust' architecture in software design, which THREE principles are fundamental?

Select 3 answers
A.Assume breach
B.Trust but verify
C.Use least privilege access
D.Trust all internal network traffic
E.Verify explicitly
AnswersA, C, E

Assume breach removes implicit trust in the internal network, so every request is treated as potentially hostile. Designers therefore segment, log and limit blast radius rather than relying on perimeter defence, which is the foundational mindset the Zero Trust model requires before verification and least privilege can operate.

Why this answer

In a Zero Trust architecture, 'Assume breach' (A) is fundamental because the model presumes no implicit safety and designs for containment, segmentation, and rapid detection/response as if an attacker is already inside. 'Use least privilege access' (C) is correct because every identity and workload should receive only the minimum permissions needed, enforced with just-in-time and just-enough-access controls to limit lateral movement. 'Verify explicitly' (E) is correct because every access request must be authenticated and authorized using all available signals—identity, device health, location, and behavior—before granting resource access. 'Trust but verify' (B) is not a Zero Trust principle; it reflects a perimeter-based mindset where trust is initially granted, which contradicts Zero Trust's 'never trust, always verify' stance. 'Trust all internal network traffic' (D) is the opposite of Zero Trust, since internal networks are treated as untrusted and traffic must be inspected and authorized regardless of origin.

214
Multi-Selectmedium

Which TWO of the following practices are key components of a robust Software Security Governance framework?

Select 2 answers
A.Outsourcing all security tasks to third-party vendors.
B.Mandating that all developers become certified hackers.
C.Discontinuing all legacy applications.
D.Establishing and tracking security performance metrics.
E.Defining clear security policies and standards.
AnswersD, E

Metrics provide measurable evidence that governance controls actually operate, satisfying the framework's need for continuous oversight and accountability. Without tracked performance data, policy compliance cannot be verified or improved, so this practice underpins the monitoring and reporting obligations central to software security governance.

Why this answer

Option D is correct because a robust Software Security Governance framework requires measurable oversight: establishing and tracking security performance metrics (e.g., mean time to remediate vulnerabilities, percentage of code scanned, open critical findings) enables an organization to monitor compliance, demonstrate accountability, and drive continuous improvement of its security posture. Option E is correct because governance fundamentally rests on defining clear security policies and standards (such as secure coding standards, SDLC security gates, and risk acceptance criteria) that set mandatory expectations and provide the baseline against which all development and security activities are measured and audited. The remaining options do not belong: outsourcing all security tasks to third-party vendors (A) transfers execution but does not constitute governance, which remains the organization's responsibility; mandating that all developers become certified hackers (B) is neither feasible nor a recognized governance control; and discontinuing all legacy applications (C) is an operational risk decision, not a governance component, and may be impractical or unnecessary.

215
MCQhard

A developer is using an ORM (Object-Relational Mapping) framework. What risk remains even when using built-in ORM features?

A.Cross-Site Scripting
B.Brute force attacks
C.Buffer overflows
D.SQL Injection through unsafe raw queries
AnswerD

ORM parameterisation only protects generated queries; developers can still concatenate user input into raw SQL executed through the framework's escape hatch. That unsafe raw query path preserves classic SQL Injection, the residual risk the question asks about.

Why this answer

Even with ORMs, developers can introduce SQL injection if they dynamically construct queries using string concatenation inside the ORM's raw query methods.

216
MCQmedium

You are configuring a SAST tool to run in your CI/CD pipeline. To minimize developer friction, which strategy should you use?

A.Disable all rules except for critical-level vulnerabilities.
B.Perform incremental scans of the changed code.
C.Run full scans on every single commit.
D.Set the tool to break the build for every warning.
AnswerB

Incremental scanning analyses only changed files or diffs, cutting scan duration and surfacing findings tied to the developer's own commit. This reduces pipeline delay and noise, directly minimising the developer friction the scenario names, while full scans remain for nightly builds.

Why this answer

Incremental scanning analyzes only the code changed since the last scan, dramatically reducing scan time and noise so developers get fast, relevant feedback on their own commits. This preserves SAST value in CI/CD while minimizing the friction that causes teams to disable or bypass security gates. Full scans can still run nightly or on release branches for complete coverage.

Exam trap

CSSLP often tests the false dichotomy that security rigor requires full scans on every commit — the correct answer balances coverage with developer velocity through incremental scanning plus periodic full scans.

How to eliminate wrong answers

Option A is wrong because disabling all non-critical rules blinds the pipeline to medium and low-severity issues that often chain into exploitable vulnerabilities, and it defeats the purpose of SAST. Option C is wrong because full scans on every commit are slow, resource-heavy, and generate overwhelming findings, which is precisely the friction the question asks you to minimize. Option D is wrong because breaking the build on every warning causes alert fatigue and developer rebellion; gates should be tuned to severity, confidence, and baseline thresholds.

217
MCQmedium

A healthcare SaaS provider is designing a multi-tenant system where each tenant's data is stored in a shared database. To prevent one tenant from accessing another tenant's records, the design team decides to enforce isolation at the data-access layer. Which secure design approach best ensures tenant isolation while maintaining a single logical database?

A.Use a separate database schema for each tenant within the same database instance, and grant each tenant's application role access only to its own schema.
B.Rely on application code to always include a WHERE clause filtering by tenant ID in every query, and perform code reviews to ensure compliance.
C.Implement row-level security (RLS) policies in the database that automatically filter rows based on the tenant identifier associated with the authenticated session.
D.Encrypt each tenant's data with a unique encryption key and store the keys in a hardware security module (HSM), decrypting only after the application retrieves the data.
AnswerC

Row-level security policies in the database enforce tenant isolation at the data layer, ensuring that every query is automatically filtered by tenant ID. This prevents accidental cross-tenant access even if application code has flaws, because the database itself enforces the boundary. It supports a shared schema and single logical database while maintaining strong isolation.

Why this answer

Row-level security (RLS) enforces tenant isolation directly in the database engine, automatically filtering data based on the authenticated tenant context. This provides a strong, centralized control that is not dependent on application code correctness, reducing the risk of cross-tenant data leakage. It aligns with the principle of defense in depth and is well-suited for multi-tenant architectures with shared databases.

Exam trap

The trap here is assuming that application-level filtering or encryption alone guarantees tenant isolation, when in fact a database-enforced policy is needed to prevent accidental cross-tenant access.

218
MCQeasy

What is the goal of implementing a Software Bill of Materials (SBOM) in your development lifecycle?

A.To increase the speed of software compilation.
B.To automatically patch vulnerabilities in code.
C.To replace the need for secure coding training.
D.To maintain transparency of components and manage dependency risks.
AnswerD

An SBOM inventories every component and dependency in your software, giving the transparency needed to identify and manage supply-chain risk. This directly satisfies the stem's goal: knowing what you ship lets you rapidly trace vulnerable libraries, verify licences, and respond to upstream compromises without guesswork.

Why this answer

The goal of an SBOM is to provide transparency into the software components and dependencies that make up an application, enabling organizations to identify, assess, and manage dependency-related risks such as vulnerable or unlicensed components. It is a visibility and risk-management artifact, not an automation or training replacement. This transparency is foundational to software supply chain security.

Exam trap

CSSLP often tests the misconception that an SBOM is an active security control that patches or fixes vulnerabilities, when its actual goal is transparency and dependency risk visibility that enables downstream remediation.

How to eliminate wrong answers

Option A is wrong because SBOM generation does not accelerate compilation — it is a documentation output produced during or after the build, and can even add minor overhead. Option B is wrong because an SBOM does not patch anything; it identifies components so that humans or tools can determine what needs patching, but remediation is a separate process. Option C is wrong because an SBOM is not a training tool and cannot substitute for secure coding training — knowing what components exist does not teach developers how to write secure code.

219
Multi-Selectmedium

Which TWO actions should be taken when preparing a software build for a secure production deployment?

Select 2 answers
A.Embed hardcoded credentials for the database in the build artifact to ensure connectivity.
B.Bypass unit tests to speed up the deployment pipeline.
C.Perform a Software Composition Analysis (SCA) to identify vulnerable dependencies.
D.Sign the final build artifact using a secure private key.
E.Compile the code with debugging symbols enabled for easier production troubleshooting.
AnswersC, D

Software Composition Analysis inventories third-party and open-source dependencies, matching them against vulnerability databases to identify known flaws before production. This satisfies the requirement to detect vulnerable components in the build, enabling remediation or version upgrades prior to secure deployment.

Why this answer

Option C is correct because performing a Software Composition Analysis (SCA) scans third-party and open-source dependencies for known CVEs and license issues, which is essential before shipping a build to production. Option D is correct because signing the final build artifact with a secure private key (e.g., via GPG or sigstore/cosign) provides integrity and provenance, allowing production systems to verify the artifact has not been tampered with. Option A is wrong because hardcoded credentials in build artifacts leak secrets and violate secure secret-management practices such as using a vault or environment-injected secrets.

Option B is wrong because bypassing unit tests removes a key quality gate and increases the risk of shipping defective or vulnerable code. Option E is wrong because compiling with debugging symbols in production exposes internal details and increases attack surface; symbols should be stripped or kept in a separate symbol store.

Exam trap

The trap is treating build speed or troubleshooting convenience as legitimate reasons to weaken controls — options like 'bypass tests' or 'enable debug symbols' sound operationally reasonable but are security anti-patterns in production.

220
MCQhard

When assessing a SaaS provider's supply chain, you are concerned about their 'Vendor Risk Management' (VRM) program. Which practice indicates a mature approach to fourth-party risk?

A.The vendor provides a generic privacy policy.
B.The vendor maintains an inventory of their critical fourth-party service providers.
C.The vendor only uses software developed internally.
D.The vendor uses a public cloud provider.
AnswerB

Fourth-party risk arises from subcontractors and downstream providers the vendor relies on. Maintaining an inventory of critical fourth-party service providers demonstrates visibility and control beyond direct suppliers, satisfying the mature Vendor Risk Management practice of mapping transitive dependencies.

Why this answer

A mature VRM program includes visibility into the vendor's sub-processors (fourth parties), as these are the vendors of your vendor, and represent a significant blind spot.

221
MCQhard

When implementing file uploads, which practice is most effective in preventing remote code execution (RCE)?

A.Storing files outside the web root and renaming them
B.Checking the file size
C.Validating the file extension only
D.Enabling execution permissions on the upload folder
AnswerA

Storing uploads outside the web root removes the path the web server would use to execute them, while renaming strips the original extension and any embedded executable code trigger. Together these defeat RCE because the server can no longer map the file to a script handler, satisfying the constraint that uploaded content must never be directly executable.

Why this answer

Renaming files and storing them outside the web root prevents attackers from executing malicious scripts they have uploaded.

Page 2

Page 3 of 3

All pages