Courseiva

(ISC)2 Certified Secure Software Lifecycle Professional (CSSLP) (CSSLP) (CSSLP) — Questions 76–150

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

Page 1

Page 2 of 3

Page 3
76
Multi-Selectmedium

Which THREE items should be included in a 'Security Requirements Traceability Matrix'?

Select 3 answers
A.Associated project feature or module
B.Test case or verification method
C.The developer's annual salary
D.Unique security requirement ID
E.The vendor's hardware serial numbers
AnswersA, B, D

Mapping each security requirement to the feature or module that implements it establishes traceability between stated security needs and delivered functionality, satisfying the matrix's purpose of proving coverage and exposing requirements with no corresponding implementation.

Why this answer

A Security Requirements Traceability Matrix (SRTM) maps each security requirement to the parts of the system that implement it, so the associated project feature or module (A) is correct because it identifies where the requirement is realized. The test case or verification method (B) is correct because the SRTM must show how each requirement will be validated or verified, providing bidirectional traceability from requirement to test. The unique security requirement ID (D) is correct because a stable identifier is the key that links the requirement to its feature, test, and status throughout the lifecycle.

The developer's annual salary (C) is a personnel/HR cost detail with no traceability value, and the vendor's hardware serial numbers (E) are asset inventory data, not requirement-to-implementation or requirement-to-verification mappings, so neither belongs in an SRTM.

Exam trap

CSSLP often tests whether candidates confuse the SRTM with a general project artifact (e.g., asset inventory or cost tracking) and includes irrelevant data like salaries or serial numbers.

77
MCQeasy

A supplier asks you to describe your 'Supply Chain Security Policy'. What is the most appropriate foundational element to include?

A.Requirement for 100% code coverage in unit tests.
B.Requirement to use proprietary code only.
C.Requirement for an SBOM for all delivered software.
D.Requirement for the supplier to perform a full system wipe.
AnswerC

Mandating an SBOM for all delivered software gives the policy a concrete, verifiable foundation: it establishes component-level visibility across the supply chain, enabling vulnerability tracking, licence review and provenance checks on third-party and open-source dependencies.

Why this answer

A secure supply chain policy must start with a requirement for software transparency, typically in the form of an SBOM for all delivered software.

78
Multi-Selectmedium

When designing a test case for a secure authentication bypass, which THREE areas should be covered?

Select 3 answers
A.Testing the password recovery/reset workflow.
B.Changing the application's CSS file.
C.Manipulating session cookies.
D.Testing the application's color scheme.
E.Brute forcing account credentials.
AnswersA, C, E

Password reset flows frequently bypass primary authentication, relying on weaker tokens, security questions or email links. Testing this workflow exposes flaws such as predictable reset tokens or user enumeration, covering an authentication bypass vector the question requires.

Why this answer

Option A is correct because the password recovery/reset workflow is a classic authentication bypass vector: testers must check for predictable or leaked reset tokens, token reuse, missing expiry, host-header injection in reset links, and whether the reset endpoint verifies the user's identity before allowing a password change. Option C is correct because manipulating session cookies (e.g., tampering with session IDs, forging JWTs, altering role/identity claims, or replaying stolen cookies) directly tests whether the application properly validates session state and can be tricked into granting authenticated access without valid credentials. Option E is correct because brute forcing account credentials tests authentication strength controls such as account lockout thresholds, rate limiting, CAPTCHA enforcement, and password complexity, all of which are core to assessing whether authentication can be bypassed through weak credential policies.

Options B and D are incorrect because changing the CSS file or the application's color scheme are purely cosmetic presentation changes that have no bearing on authentication logic, session handling, or access control.

79
MCQeasy

When conducting a static code analysis for a C++ application, which memory management error is best detected by tools like Fortify or Coverity?

A.Database connection timeout
B.Business logic flaws
C.Buffer overflow
D.Zero-day authentication bypass
AnswerC

Static analysis engines model pointer arithmetic and array bounds, flagging writes beyond allocated buffers. Buffer overflow is a memory-safety defect detectable from source alone, unlike runtime-only faults, so Fortify or Coverity identify it during code review before compilation or execution.

Why this answer

Buffer overflow is a memory safety vulnerability that arises from improper bounds checking on arrays or pointer arithmetic, leading to out-of-bounds writes. Static analysis tools like Fortify and Coverity use data flow analysis and taint tracking to identify such patterns by examining array indices, pointer dereferences, and memory copy operations. They can flag potential overflows without executing the code, making it a prime target for static analysis in C++ applications.

Exam trap

CSSLP often tests the distinction between static analysis capabilities and runtime or logic issues, causing candidates to confuse memory management errors with other vulnerability types.

How to eliminate wrong answers

Option A is wrong because database connection timeouts are runtime issues related to network or configuration, not memory management errors detectable by static code analysis. Option B is wrong because business logic flaws are semantic errors that require understanding of application requirements and cannot be reliably detected by static analysis tools focused on memory safety. Option D is wrong because zero-day authentication bypasses are typically logic or design flaws that static analysis tools may not catch, as they often involve complex attack vectors and are not specific to memory management.

80
MCQeasy

Which role is typically responsible for identifying security requirements during the initial phases of the software development lifecycle?

A.Project Manager.
B.Software Tester.
C.Security Architect.
D.Database Administrator.
AnswerC

The Security Architect translates business and compliance drivers into technical security requirements, threat models and control baselines early, before design is fixed. That forward-looking remit matches identifying security requirements during initial SDLC phases, unlike developers or testers who act later.

Why this answer

The Security Architect is responsible for ensuring security principles are designed into the system architecture from the start.

81
MCQhard

You are determining compliance requirements for a software product that handles PII. Which requirement is essential for demonstrating 'Privacy by Design'?

A.Use the largest possible key size
B.Implement full data retention
C.Outsource all PII processing
D.Enforce data minimization throughout the lifecycle
AnswerD

Privacy by Design requires limiting collection and retention to what is strictly necessary. Enforcing data minimisation across the entire lifecycle — collection, processing, storage and disposal — reduces exposure of PII, directly satisfying the proactive, embedded privacy constraint the stem demands rather than bolting controls on afterwards.

Why this answer

Privacy by Design, as articulated by Ann Cavoukian and embedded in GDPR Article 25 and NIST Privacy Framework, requires that personal data be minimized — collected only when necessary, used only for stated purposes, and retained only as long as needed. Enforcing data minimization throughout the lifecycle directly implements the 'data minimization' and 'purpose limitation' principles, reducing privacy risk by limiting the attack surface and exposure of PII.

Exam trap

CSSLP often tests the confusion between cryptographic safeguards (key size) and privacy design principles, or the false belief that outsourcing PII processing transfers privacy accountability.

How to eliminate wrong answers

Option A is wrong because key size is a cryptographic strength parameter for confidentiality, not a Privacy by Design requirement; strong encryption is a safeguard, not a design principle for limiting data collection. Option B is wrong because full data retention is the opposite of Privacy by Design — it maximizes PII exposure and violates storage limitation principles. Option C is wrong because outsourcing PII processing does not reduce privacy obligations; the organization remains accountable as the data controller under GDPR and similar regimes, and outsourcing can increase risk if vendor controls are inadequate.

82
Multi-Selecteasy

Which THREE categories are typically used to classify security requirements?

Select 3 answers
A.Confidentiality
B.Project Profitability
C.Integrity
D.Availability
E.Marketing Appeal
AnswersA, C, D

Confidentiality is one of the three classic security requirement categories, alongside integrity and availability — the CIA triad. It directly satisfies the stem's demand for typical classification categories, as it addresses preventing unauthorised disclosure of information, a foundational objective that security requirements must express.

Why this answer

Security requirements are generally grouped by confidentiality, integrity, and availability (the CIA triad).

83
MCQmedium

You are evaluating container orchestration security. What is the purpose of a 'Sidecar Container' in a Service Mesh?

A.To act as a backup for the main container if it crashes.
B.To intercept and manage network traffic to enforce mTLS and authorization policies.
C.To provide additional CPU and memory resources to the main container.
D.To store persistent data for the main application.
AnswerB

A sidecar proxy intercepts all inbound and outbound traffic for its paired workload, terminating and originating mTLS connections while evaluating authorisation policies per request. This satisfies the stem's service mesh requirement, since encryption and access control are enforced transparently at the data plane without altering application code.

Why this answer

A sidecar container in a service mesh (e.g., Istio's Envoy proxy) runs alongside the application container in the same pod and transparently intercepts all inbound and outbound network traffic. It enforces mutual TLS between services, applies authorization policies, collects telemetry, and performs traffic routing — all without modifying application code. This is the defining function of the sidecar pattern in a service mesh: it externalizes cross-cutting network security concerns from the application.

Exam trap

The trap is assuming the sidecar is a redundancy or resource mechanism — candidates pick 'backup container' (A) or 'adds resources' (C) because 'sidecar' sounds auxiliary, missing that its real role is traffic interception and policy enforcement.

How to eliminate wrong answers

Option A is wrong because a sidecar is not a failover or high-availability mechanism — if the main container crashes, the sidecar does not take over its workload; Kubernetes restarts the container instead. Option C is wrong because sidecars share the pod's resource allocation and do not add CPU or memory to the main container; they actually consume resources. Option D is wrong because persistent storage is provided by volumes (PersistentVolumeClaims) mounted into the pod, not by a sidecar container, which is stateless with respect to application data.

84
MCQmedium

In the context of 'Secure Software Requirements', what should the security team do when they encounter a conflict between usability and security?

A.Ignore the usability concern
B.Always prioritize security over usability
C.Conduct a risk-based assessment to find a balanced approach
D.Ask the developers to make the final decision
AnswerC

A risk-based assessment quantifies the exposure each usability trade-off introduces, letting the team select controls proportionate to identified threats rather than defaulting to maximum restriction. This satisfies the stem's requirement to resolve the conflict by weighing both concerns against actual business impact, producing a documented, defensible balance instead of an arbitrary preference.

Why this answer

When usability and security conflict, the correct approach is a risk-based assessment that weighs the likelihood and impact of the threat against the usability cost of the control, then selects a balanced mitigation. Security is not absolute — controls that destroy usability drive users to work around them (shadow IT, password reuse), which often increases overall risk. A documented risk-based decision also provides defensible rationale for auditors and stakeholders.

Exam trap

The trap is the absolutist framing — candidates pick 'always prioritize security' (B) because it sounds like the 'secure' answer, but CSSLP rewards balanced, risk-based decision-making over dogmatic security.

How to eliminate wrong answers

Option A is wrong because ignoring usability leads to controls that users circumvent, producing a false sense of security and often worse outcomes than the original risk. Option B is wrong because 'always prioritize security' is an absolute that ignores business context, cost, and the reality that unusable systems are insecure systems. Option D is wrong because developers are not the risk owners — security decisions require input from security, business, and compliance stakeholders, and delegating to developers abdicates the security team's responsibility.

85
MCQeasy

What is the primary goal of performing a 'Security Gap Analysis' during the requirements phase?

A.To find bugs in the application code
B.To calculate the ROI of security spending
C.To document the project budget
D.To identify missing security controls against a baseline or standard
AnswerD

Gap analysis compares current or planned controls against a chosen baseline such as ISO 27001 or OWASP ASVS, exposing absent or weak controls. That comparison output is what drives requirements, satisfying the stem's aim of identifying missing security controls during the requirements phase.

Why this answer

A gap analysis compares the existing state or desired requirements against security standards to identify missing controls.

86
MCQmedium

You are configuring a Content Security Policy (CSP) for a web application. Which directive should be used to restrict the sources from which scripts can be loaded?

A.style-src
B.script-src
C.img-src
D.connect-src
AnswerB

The script-src directive whitelists origins permitted to supply executable JavaScript, blocking inline and untrusted external scripts. It is the specific CSP control governing script loading sources, directly satisfying the requirement to restrict where scripts may be fetched from.

Why this answer

The script-src directive in a Content Security Policy controls which sources are permitted to load and execute JavaScript. It is the primary defense against cross-site scripting (XSS) and malicious script injection, restricting scripts to trusted origins, nonces, or hashes. Other directives govern different resource types and do not affect script loading.

Exam trap

The trap is confusing CSP directives that sound similar — candidates may pick connect-src or style-src because they don't recall that script-src specifically governs JavaScript execution sources.

How to eliminate wrong answers

Option A is wrong because style-src governs stylesheets (CSS), not scripts. Option C is wrong because img-src governs image sources, not scripts. Option D is wrong because connect-src governs fetch/XHR/WebSocket/EventSource destinations, not script loading.

87
MCQeasy

During a vendor security assessment, you require a supplier to provide proof that their software is signed. Which mechanism should you verify to ensure the code's integrity and origin authenticity?

A.Software License Agreement (SLA)
B.SHA-256 checksum published on a text file
C.Vendor SOC 2 Type II report
D.Digital Signature (e.g., Authenticode or GPG)
AnswerD

A digital signature, such as Authenticode or GPG, is verified with the signer's public key to confirm the code's integrity and origin authenticity. This satisfies the stem's proof-of-signing requirement, unlike a hash alone, which detects alteration but does not establish who signed.

Why this answer

A digital signature (e.g., Authenticode on Windows, GPG on Linux) uses asymmetric cryptography to provide both integrity and origin authenticity. The vendor signs the code with its private key; you verify with the vendor's public key, confirming the code has not been tampered with and genuinely came from that vendor. This is the only mechanism in the list that proves both integrity and origin.

Exam trap

CSSLP often tests the distinction between integrity-only mechanisms (checksums) and integrity-plus-authenticity mechanisms (digital signatures) — candidates pick SHA-256 checksums thinking they prove origin.

How to eliminate wrong answers

Option A is wrong because a Software License Agreement is a legal contract defining usage rights, not a technical integrity or authenticity mechanism — it says nothing about whether the binary was modified. Option B is wrong because a SHA-256 checksum published on a text file provides integrity verification only if the checksum itself is trusted; an attacker who can modify the binary can also modify the checksum file, so it does not prove origin authenticity. Option C is wrong because a SOC 2 Type II report attests to the vendor's operational controls over time, not to the integrity or provenance of a specific software artifact.

88
MCQmedium

A security architect is reviewing the design of a new web application. The application must ensure that session identifiers are unpredictable and resistant to guessing attacks. The development team proposes using a random number generator. Which approach should the architect recommend to meet this requirement?

A.Use a sequential counter combined with a secret salt, and store the counter in a client-side cookie.
B.Generate session identifiers by hashing the current timestamp and the user's IP address using MD5.
C.Use a cryptographically secure pseudo-random number generator (CSPRNG) seeded with a high-entropy source, such as the operating system's entropy pool.
D.Use the language's standard random number generator, such as java.util.Random or rand() in C, because it is fast and sufficient for generating session IDs.
AnswerC

A CSPRNG is designed to produce output that is computationally infeasible to predict, even if previous outputs are known. Seeding it with a high-entropy source like /dev/urandom or CryptGenRandom ensures unpredictability. This directly satisfies the requirement for session identifiers that resist guessing attacks, as opposed to general-purpose random functions that may have predictable patterns.

Why this answer

Session identifiers must be generated using a cryptographically secure pseudo-random number generator (CSPRNG) seeded with high entropy to ensure unpredictability. This prevents attackers from guessing or predicting valid session IDs. Other methods, such as standard random generators or predictable data hashing, lack the necessary security properties and can lead to session hijacking.

Exam trap

The trap here is assuming that any random number generator is sufficient for security purposes, when only a CSPRNG provides the unpredictability required for session identifiers.

89
MCQhard

You are tasked with implementing a 'Shift-Left' approach in a legacy waterfall project transitioning to DevSecOps. What is the highest priority action for early security lifecycle management?

A.Implementing automated DAST tools.
B.Deploying a Web Application Firewall (WAF) to protect the current environment.
C.Performing a manual code review on all legacy source code.
D.Defining security requirements during the initial project planning/requirements phase.
AnswerD

Shift-left means security work migrates to the earliest lifecycle stage. Capturing security requirements during initial planning embeds controls before design and code exist, when change is cheapest, rather than retrofitting them during testing or operations in the legacy waterfall transition.

Why this answer

Security requirements must be defined at the start of the project to ensure that security is built-in, rather than added as an afterthought in later phases.

90
MCQeasy

Which document is essential to map regulatory compliance requirements to specific software features?

A.Security Requirements Traceability Matrix (SRTM)
B.System Architecture Document
C.Incident Response Plan
D.Software Development Plan
AnswerA

The SRTM links each regulatory obligation to the specific features and tests that satisfy it, providing bidirectional traceability so auditors can confirm coverage, which satisfies the need to map compliance requirements to concrete software functionality.

Why this answer

A Security Requirements Traceability Matrix (SRTM) maps security and regulatory requirements to specific software features, controls, and test cases, providing bidirectional traceability from requirement to implementation and verification. It is the essential document for demonstrating that each regulatory obligation is addressed by a concrete feature or control. This traceability is critical for audits (e.g., PCI DSS, HIPAA, SOX) and for change management.

Exam trap

The trap is selecting a design or operational document (architecture, IR plan, development plan) when the question specifically asks for the artifact that maps regulatory requirements to software features, which is the SRTM.

How to eliminate wrong answers

Option B is wrong because a System Architecture Document describes the structural design of the system (components, interfaces, data flows) but does not map regulatory requirements to features. Option C is wrong because an Incident Response Plan defines how the organization detects, responds to, and recovers from security incidents; it is an operational document, not a compliance traceability artifact. Option D is wrong because a Software Development Plan describes the development methodology, schedule, and resources, not the mapping of regulatory requirements to software features.

91
MCQmedium

You are setting up an automated policy in GitHub Actions to block builds that contain dependencies with known high-severity vulnerabilities. Which tool is standard for this type of automated gated check?

A.Snyk Open Source integration.
B.GitHub Projects.
C.Git LFS.
D.GitHub Pages.
AnswerA

Snyk Open Source scans dependency manifests against a vulnerability database and fails the GitHub Actions job when high-severity issues are found, gating the build. This satisfies the automated policy requirement by blocking merges rather than merely reporting findings.

Why this answer

Snyk is widely used in CI/CD pipelines as a gatekeeper to block builds based on vulnerability thresholds.

92
MCQeasy

When evaluating a vendor's open-source usage, which factor is the strongest indicator of a proactive security posture?

A.The vendor provides a static list of libraries once a year.
B.The vendor does not use any open-source software.
C.The vendor maintains a documented process for tracking and patching vulnerable components.
D.The vendor uses only the newest versions of all libraries.
AnswerC

A documented tracking and patching process demonstrates repeatable, proactive vulnerability management rather than ad hoc reaction. This satisfies the stem's demand for the strongest indicator, since it evidences an ongoing capability to identify and remediate vulnerable components before exploitation.

Why this answer

A documented process for tracking and patching vulnerable components demonstrates an ongoing, repeatable capability to identify and remediate open-source vulnerabilities, which is the hallmark of a proactive security posture. It shows the vendor monitors advisories (e.g., CVEs, NVD, GitHub Security Advisories), maintains an SBOM, and has SLAs for patching. Static lists or version freshness alone do not prove the vendor can respond to newly disclosed vulnerabilities.

Exam trap

CSSLP often tests the misconception that avoiding open source or using the newest versions equals security, when the real indicator is a documented, repeatable vulnerability tracking and patching process.

How to eliminate wrong answers

Option A is wrong because a static annual list of libraries is a point-in-time snapshot that does not demonstrate continuous monitoring or the ability to respond to newly disclosed CVEs. Option B is wrong because avoiding all open-source software is neither realistic nor a security guarantee; it may indicate a lack of modern supply-chain practices and does not address vulnerabilities in proprietary or third-party components. Option D is wrong because using only the newest versions of all libraries can introduce instability and does not prove the vendor tracks or patches vulnerabilities; a vendor could be on the latest version today and miss a critical patch tomorrow without a process.

93
Multi-Selectmedium

Which TWO factors are critical when identifying compliance requirements for software that processes cross-border financial transactions?

Select 2 answers
A.The social media marketing strategy
B.Office paint color standards
C.Anti-Money Laundering (AML) regulations
D.The developer's preferred IDE
E.Financial data privacy laws in all jurisdictions
AnswersC, E

Cross-border financial transactions trigger AML obligations regardless of jurisdiction, since AML regimes criminalise laundering proceeds and mandate customer due diligence, transaction monitoring and suspicious activity reporting. This directly satisfies the stem's compliance-identification constraint for software handling such payments.

Why this answer

Option C (Anti-Money Laundering (AML) regulations) is correct because cross-border financial transaction software must comply with AML rules such as customer due diligence, suspicious activity reporting, and transaction monitoring, which are legally mandated in most jurisdictions. Option E (Financial data privacy laws in all jurisdictions) is correct because processing financial data across borders means the software must satisfy each country's data protection and privacy requirements, such as GDPR, PIPEDA, or LGPD, including rules on cross-border data transfers. Option A (social media marketing strategy) is irrelevant because marketing does not determine legal compliance obligations for financial transaction processing.

Option B (office paint color standards) is irrelevant because workplace aesthetics have no bearing on financial regulatory compliance. Option D (the developer's preferred IDE) is irrelevant because a development tool choice does not affect compliance requirements.

Exam trap

The trap is being distracted by irrelevant operational or personal-preference options; the exam tests whether you recognize that compliance scope is defined by legal/regulatory jurisdiction, not by internal IT convenience.

94
MCQeasy

A developer is using OWASP Dependency-Check to scan a Java application. Which configuration parameter should be utilized to ignore specific false-positive vulnerabilities identified in a third-party library?

A.--ignore-cve
B.--exclude-all
C.--skip-analysis
D.--suppression
AnswerD

The --suppression flag accepts an XML file listing false-positive identifiers, causing Dependency-Check to omit those matches from reported findings. This directly satisfies the stem's constraint of ignoring specific false-positive vulnerabilities in a third-party library without disabling broader detection.

Why this answer

OWASP Dependency-Check supports a suppression mechanism via XML suppression files that tell the scanner to ignore specific false-positive CVEs for identified dependencies. The --suppression <file> parameter points the tool at that XML file, allowing teams to document and exclude known false positives without disabling scanning entirely. This preserves coverage while reducing noise in CI/CD pipelines.

Exam trap

The trap is assuming a generic-sounding flag like --ignore-cve exists, when Dependency-Check's actual false-positive handling is file-based suppression via --suppression.

How to eliminate wrong answers

Option A is wrong because --ignore-cve is not a valid Dependency-Check CLI option; there is no flag that ignores CVEs by identifier directly on the command line. Option B is wrong because --exclude-all is not a real parameter and would conceptually defeat the purpose of scanning by excluding everything. Option C is wrong because --skip-analysis is not a Dependency-Check option; skipping analysis would bypass the vulnerability check rather than selectively suppress false positives.

95
Multi-Selecthard

Which THREE of the following are common threats to the Software Supply Chain that an SBOM can help mitigate?

Select 3 answers
A.Mitigation of SQL injection flaws in custom code.
B.Prevention of brute-force attacks on application login.
C.Identification of end-of-life (EOL) software components.
D.Identification of components with known CVEs.
E.Detection of non-compliant or restrictive open-source licenses.
AnswersC, D, E

An SBOM enumerates every component and version in the software, enabling automated matching against vendor lifecycle data to flag components past their support date. This directly satisfies the stem's supply chain threat: unpatched, unsupported dependencies that no longer receive security fixes, which attackers exploit through known vulnerabilities.

Why this answer

Option C is correct because an SBOM enumerates every component and its version, allowing teams to compare those versions against vendor end-of-life (EOL) and end-of-support dates so obsolete libraries can be flagged and replaced before they become an unpatched supply-chain risk. Option D is correct because an SBOM's component inventory (typically expressed in SPDX or CycloneDX with Package URLs) can be correlated against vulnerability databases such as the NVD to identify dependencies containing known CVEs, which is the core use case for SBOM-driven vulnerability management. Option E is correct because an SBOM records component names, versions, and license identifiers, enabling automated license-compliance scanning to detect restrictive or non-compliant open-source licenses (for example GPL obligations in a proprietary product).

Option A does not belong because SQL injection is an application-layer coding defect remediated through secure coding and input validation, not through component inventory. Option B does not belong because brute-force attacks on login are mitigated by account lockout, rate limiting, MFA, and CAPTCHAs, none of which an SBOM addresses.

96
MCQmedium

A security engineer is configuring SonarQube for a Java project. Which configuration step ensures that the SAST scan accurately identifies injection vulnerabilities by analyzing data flow paths?

A.null
B.Set the analysis mode to 'Incremental' only.
C.Increase the heap memory allocation for the JVM running the scanner.
D.Enable the 'Security Hotspots' and 'Taint Analysis' rule categories in the active Quality Profile.
E.Configure the 'Exclude' patterns to include all library dependencies.
AnswerD

Taint analysis is the primary mechanism for tracking data from sources to sinks in SAST.

Why this answer

The analysis of data flow paths requires the enablement of security hotspots and taint analysis rules in the Quality Profile.

97
Multi-Selecteasy

Which TWO of the following strategies best implement the principle of 'Separation of Duties' in an application design?

Select 2 answers
A.Granting developers full access to production database backups.
B.Requiring two distinct roles to approve a production code deployment.
C.Using a single shared admin account for all system functions.
D.Separating administrative duties between security and system roles.
E.Allowing a single admin to manage all user accounts.
AnswersB, D

Splitting deployment approval across two distinct roles prevents any single individual from both writing and releasing code, enforcing the dual-control requirement central to separation of duties. It directly satisfies the stem by ensuring no one holds end-to-end authority over the production change.

Why this answer

Option B is correct because requiring two distinct roles to approve a production code deployment enforces dual control (a two-person rule), so no single individual can unilaterally push code to production, which is a direct implementation of Separation of Duties. Option D is correct because separating administrative duties between security and system roles ensures that the person configuring systems is not the same person controlling security policy, preventing any one admin from both making and approving privileged changes. Options A, C, and E are incorrect because granting developers full access to production backups, using a single shared admin account, and letting one admin manage all user accounts each concentrate powerful privileges in one identity or role, which violates rather than implements Separation of Duties.

Exam trap

The trap here is confusing SoD with least privilege or assuming that any access restriction qualifies; SoD specifically requires dividing duties among different roles to prevent unilateral control, so options that concentrate power (even if seemingly secure) are wrong.

98
Multi-Selecteasy

Which THREE of the following are key components of a 'Secure Design Review' process?

Select 3 answers
A.Writing the final deployment documentation.
B.Performing dynamic analysis on the final build.
C.Validating the architecture against established security patterns.
D.Reviewing security requirements for traceability.
E.Evaluating the threat model for completeness.
AnswersC, D, E

Validating the architecture against established security patterns confirms the design implements proven controls rather than ad hoc measures, satisfying the review's requirement to assess whether the proposed structure meets the organisation's security standards before code is written.

Why this answer

A Secure Design Review is a pre-implementation activity that examines the design artifacts rather than the running code. Option C is correct because validating the architecture against established security patterns (e.g., defense in depth, least privilege, secure defaults) ensures the design avoids known anti-patterns before code is written. Option D is correct because reviewing security requirements for traceability confirms that every stated security requirement maps to a design element and can be verified later, which is a core goal of the review.

Option E is correct because evaluating the threat model for completeness ensures all relevant threats, trust boundaries, and attack surfaces have been identified and addressed at design time. Option A is not part of a design review since writing final deployment documentation is a release/operations task, not a design-time security assessment. Option B is not part of a design review because dynamic analysis runs against a built, executing application, whereas the design review occurs before implementation.

Exam trap

CSSLP often tests the phase boundaries of the SDLC — candidates mistakenly select dynamic analysis or documentation tasks as design review components, confusing verification activities with design-time analysis.

99
Multi-Selecthard

When designing a secure API, which THREE of the following practices align with the principle of 'Defense-in-Depth'?

Select 3 answers
A.Encoding output to prevent XSS attacks in the browser.
B.Relying solely on the network firewall for all security.
C.Allowing all traffic through the API Gateway for performance.
D.Validating input within the application business logic layer.
E.Validating all incoming requests at the API Gateway level.
AnswersA, D, E

Encoding output neutralises injected markup before it reaches the browser, blocking cross-site scripting even when input validation fails. This satisfies the stem's layered-control requirement: an independent, downstream safeguard that still contains an attacker after an earlier defensive layer is bypassed, rather than relying on any single control.

Why this answer

Defense-in-Depth means layering multiple independent controls so that no single failure exposes the system. Option A is correct because encoding output before it reaches the browser neutralizes injected script and mitigates XSS even if an earlier filter is bypassed, adding a presentation-layer control. Option D is correct because validating input inside the application business logic layer enforces the domain's own rules and catches malicious or malformed data that slips past perimeter checks, providing an application-layer safeguard.

Option E is correct because validating all incoming requests at the API Gateway level rejects bad traffic early at the perimeter, forming an outer defensive layer that complements the inner application validation. Option B is incorrect because relying solely on a network firewall is a single point of failure, the opposite of layered defense. Option C is incorrect because allowing all traffic through the API Gateway removes a key inspection and filtering layer, weakening rather than strengthening defense-in-depth.

100
MCQhard

A security analyst notices anomalous outbound traffic from a containerized microservice that was recently deployed. Which Kubernetes feature should be used to restrict this traffic to only known authorized endpoints?

A.Enable the Kubernetes Audit Log and monitor for kubectl exec commands.
B.Configure PodSecurityPolicies to restrict the containers to non-root users.
C.Install a Service Mesh like Istio to enforce mTLS.
D.Apply a NetworkPolicy object that defines specific egress rules for the application namespace.
AnswerD

NetworkPolicy is Kubernetes' native pod-level firewall, and its egress rules restrict outbound connections by namespace and label selector. This directly satisfies the stem's constraint of limiting the microservice's anomalous outbound traffic to only known authorised endpoints, which security groups or service mesh policies cannot enforce at pod granularity.

Why this answer

A NetworkPolicy object with specific egress rules is correct because Kubernetes NetworkPolicy provides pod-level, namespace-scoped control over ingress and egress traffic. By defining egress rules that allow only known authorized endpoints (IP blocks, ports, or namespace selectors), the analyst can restrict the microservice's outbound traffic. This directly addresses anomalous outbound connections at the network layer.

Exam trap

CSSLP often tests the difference between preventive network controls (NetworkPolicy) and detective or identity controls (audit logs, PodSecurityPolicies, mTLS), tempting candidates to choose monitoring or authentication options that do not restrict egress.

How to eliminate wrong answers

Option A is wrong because audit logs are detective, not preventive; monitoring kubectl exec does not restrict outbound traffic from the container. Option B is wrong because PodSecurityPolicies (deprecated in Kubernetes 1.21+ and replaced by Pod Security Admission) govern pod security context such as non-root execution, not network egress. Option C is wrong because a service mesh like Istio enforces mTLS and traffic policy between services, but it does not by itself restrict egress to external or unknown endpoints unless combined with egress gateways and policies; NetworkPolicy is the native, direct control.

101
MCQhard

A design uses a shared service account for multiple microservices to access a common database. Which architectural risk does this create?

A.Increased network latency.
B.Increased risk of SQL injection.
C.Loss of accountability and difficulty in auditing specific service actions.
D.Incompatibility with container orchestrators.
AnswerC

A shared service account removes per-service identity, so database audit logs cannot attribute actions to a specific microservice. This destroys accountability and makes forensic reconstruction of which service performed a malicious or erroneous action effectively impossible.

Why this answer

Shared accounts prevent granular auditing and lead to excessive privilege accumulation.

102
Multi-Selectmedium

Which TWO of the following design patterns improve the resilience of a secure system?

Select 2 answers
A.Fail-safe defaults.
B.Allowing all traffic on port 80 for compatibility.
C.Security through obscurity.
D.Fail-secure system design.
E.Hard-coding credentials for quick recovery.
AnswersA, D

Fail-safe defaults deny access when a decision cannot be evaluated, so a component failure or malformed input cannot silently grant privileges. This directly satisfies the stem's resilience constraint by keeping the system secure under fault conditions rather than depending on every check completing successfully.

Why this answer

Fail-safe defaults (A) improve resilience because a system that denies access by default when it fails or is misconfigured prevents unauthorized entry, keeping the secure state intact under adverse conditions. Fail-secure system design (D) is correct because on failure the system defaults to a secure, locked state (e.g., doors lock, access is denied), preserving confidentiality and integrity even during outages or attacks. Together these patterns ensure that errors or failures do not open the system to compromise.

Option B is wrong because allowing all traffic on port 80 for compatibility removes filtering and exposes the system to unauthorized access. Option C is wrong because security through obscurity relies on secrecy of design rather than sound controls and fails once the design is discovered. Option E is wrong because hard-coded credentials create a static, exploitable secret that undermines authentication and recovery security.

103
Multi-Selectmedium

A software architect is designing a system to enforce the principle of least privilege. Which two practices should be implemented to achieve this? (Choose two.)

Select 2 answers
A.Allowing users to retain access rights after they change roles
B.Granting users administrative rights by default to avoid access issues
C.Running services with the minimum required operating system privileges
D.Assigning permissions based on job roles and responsibilities
E.Using a shared administrator account for all IT staff to simplify management
AnswersC, D

Running services with minimal OS privileges ensures that if a service is compromised, the attacker gains limited access. This is a core aspect of least privilege, applied to service accounts. It reduces the blast radius and prevents privilege escalation. Therefore, it is a correct practice for achieving least privilege in system design.

Why this answer

Least privilege requires that users and services operate with only the permissions necessary to perform their tasks. Assigning permissions based on job roles ensures users have appropriate access, and running services with minimal OS privileges limits the impact of a compromise. These two practices directly enforce least privilege, while the other options either grant excessive rights or fail to revoke unnecessary access.

Exam trap

The trap here is thinking that simplifying management with shared accounts or default admin rights is acceptable, but least privilege demands minimal rights and individual accountability.

104
MCQmedium

A retail company runs a payment microservice in production. During a security review, the team must confirm that the service can detect and respond to anomalous administrative actions in near real time. The service runs on a container platform and writes structured events to a central log store. Which practice best ensures that administrative actions are detected and acted upon promptly?

A.Configure the platform audit log to record administrative API calls, forward those events to a SIEM, and create correlation rules that alert the on-call team when anomalous patterns occur.
B.Deploy a host-based intrusion detection agent on each node and depend on its generic signature set to flag administrative misuse.
C.Rely on the container platform's default event stream and review it weekly during the operations stand-up meeting.
D.Enable verbose application logging at the debug level for all requests and retain logs for thirty days in the central store.
AnswerA

Platform audit logs capture administrative API activity such as role changes, secret access, and workload modifications. Forwarding them to a SIEM and applying correlation rules enables near-real-time detection of anomalous patterns, and alerting the on-call team ensures a timely response. This directly satisfies the requirement to detect and respond to administrative actions quickly in the payment microservice environment.

Why this answer

Audit logs from the container platform capture authoritative records of administrative API calls. Forwarding them to a SIEM with correlation rules enables near-real-time detection of anomalous patterns, and routing alerts to the on-call team closes the response loop. This combination directly addresses both detection speed and response capability required for the payment microservice.

Exam trap

The trap here is treating high-volume application logging or generic host signatures as a substitute for control-plane audit logs, when administrative misuse is best detected from the platform's own audit trail with automated correlation and alerting.

105
MCQhard

In a Java Spring Boot application, which configuration prevents Cross-Site Request Forgery (CSRF) for state-changing HTTP requests?

A.Set the Content-Type header to application/json
B.Use a stateless session strategy with no tokens
C.Configure the HttpSecurity object to require CSRF tokens
D.Enable csrf().disable() in the SecurityFilterChain
AnswerC

Spring Security's HttpSecurity CSRF configuration enforces synchroniser tokens on state-changing methods (POST, PUT, DELETE), rejecting requests lacking a valid token. This directly satisfies the stem's requirement to prevent CSRF on state-changing HTTP requests in the Spring Boot application.

Why this answer

In Spring Security, CSRF protection is enabled by default and is configured through the HttpSecurity object; explicitly requiring CSRF tokens (via csrf() configuration with a CsrfTokenRepository) ensures state-changing requests (POST/PUT/DELETE) must present a valid token tied to the user's session. This prevents an attacker's forged cross-site request from succeeding because the attacker cannot read the victim's token.

Exam trap

The trap is that candidates see 'stateless' or 'JSON' and assume those inherently prevent CSRF — but CSRF defense specifically requires a token mechanism, and disabling CSRF (option D) is the classic wrong answer that sounds like a fix.

How to eliminate wrong answers

Option A is wrong because setting Content-Type to application/json does not prevent CSRF — browsers can still send cross-origin requests with that content type, and CSRF is about the browser automatically attaching credentials, not the content type. Option B is wrong because a stateless session with no tokens removes the very mechanism (session-bound token) that CSRF defense relies on; stateless APIs must use alternative protections like SameSite cookies or custom headers. Option D is wrong because csrf().disable() explicitly turns off CSRF protection, which is the opposite of what is required — it is only acceptable for stateless APIs using token-based auth.

106
MCQeasy

A software development team is adopting a Secure Software Lifecycle (S-SDLC) process. They have defined security requirements, performed threat modeling, and are now in the implementation phase. Which of the following activities is MOST critical during the implementation phase to ensure secure code?

A.Reviewing the threat model with the development team before coding begins.
B.Creating a detailed security architecture document for future reference.
C.Performing static application security testing (SAST) on the code as it is written.
D.Conducting a penetration test of the application in a staging environment.
AnswerC

SAST analyzes source code for security flaws without executing it. Integrating SAST into the developer's IDE or CI pipeline during implementation provides immediate feedback, allowing developers to fix issues early. This is a key shift-left practice that reduces the cost of remediation and prevents vulnerabilities from progressing to later stages.

Why this answer

During implementation, the most critical activity is to ensure that code is written securely. Integrating SAST into the development environment provides real-time feedback, enabling developers to identify and fix security flaws as they code. This proactive approach is central to the shift-left philosophy and is more effective than relying on later testing phases.

Exam trap

The trap here is thinking that security testing like penetration testing is the primary activity during implementation, when in fact implementation should focus on building security in through secure coding and static analysis.

107
Multi-Selecthard

A financial services firm is designing a new internal microservices platform. The architecture team wants to reduce the blast radius of a compromised service account while still allowing services to authenticate to one another. Which TWO design measures best support this goal? (Choose two.)

Select 2 answers
A.Issue each service a distinct workload identity with short-lived credentials and narrowly scoped permissions, so a stolen token grants access only to that service's own resources.
B.Enforce mutual TLS between services and validate the peer's identity on every call, rather than trusting the network perimeter.
C.Store a single shared service account credential in a central secrets vault and inject it into every service at startup to simplify rotation.
D.Rely on the Kubernetes NetworkPolicy default-deny rule to prevent a compromised service from reaching any other service, since network isolation alone removes the need for service-level authentication.
E.Increase the token lifetime for all service credentials to 24 hours so that rotation outages do not disrupt inter-service calls during business hours.
AnswersA, B

Per-service workload identity with short-lived, narrowly scoped credentials is the core of least privilege in a microservices mesh. If one service is compromised, the attacker inherits only that service's permissions and only until the credential expires. This directly limits lateral movement and blast radius, which is exactly the design objective stated in the scenario.

Why this answer

Reducing blast radius requires that a compromised service cannot act as other services and cannot reach resources beyond its own scope. Distinct short-lived workload identities enforce least privilege per service, while mutual TLS ensures every call is cryptographically tied to a verified peer. Together they contain the damage of any single compromise.

Shared credentials, network-only isolation, and extended token lifetimes all weaken containment by broadening what a stolen identity can do.

Exam trap

The trap here is treating network segmentation as a substitute for authentication, when a compromised workload inside an allowed segment still presents valid credentials.

108
MCQmedium

When developing a microservice using gRPC, which mechanism is recommended for authenticating service-to-service communication?

A.HTTP Basic Auth
B.Mutual TLS (mTLS)
C.IP allow-listing
D.Shared API keys in headers
AnswerB

Mutual TLS authenticates both client and server through X.509 certificates during the TLS handshake, satisfying gRPC's requirement for strong service-to-service authentication without shared secrets. Each microservice verifies the other's certificate, providing cryptographic identity and encrypted transport, which suits machine-to-machine communication where no interactive user exists to supply credentials.

Why this answer

Mutual TLS (mTLS) is the recommended mechanism for gRPC service-to-service authentication because gRPC is built on HTTP/2 over TLS, and mTLS provides bidirectional certificate-based authentication of both client and server. Each service presents a certificate, so the caller verifies the callee's identity and vice versa, and the channel is encrypted end-to-end. This aligns with zero-trust principles and is natively supported by gRPC's channel credentials without application-layer token handling.

Exam trap

CSSLP often tests the difference between transport-layer mutual authentication and application-layer credentials — candidates pick API keys (D) because they are familiar, missing that mTLS provides cryptographic identity binding that static keys cannot.

How to eliminate wrong answers

Option A is wrong because HTTP Basic Auth sends base64-encoded credentials on every request, offers no mutual authentication, and is trivially replayable if the channel is compromised — it is unsuitable for service-to-service trust. Option C is wrong because IP allow-listing is network-layer and easily defeated by spoofing, compromised hosts, or lateral movement within a cluster where pod IPs are dynamic. Option D is wrong because shared API keys are static, long-lived, and provide no identity binding — if one service is compromised, the key grants access to every service that trusts it, and rotation is operationally painful.

109
Multi-Selecthard

You are the security lead for a healthcare software product that must comply with HIPAA. The organization is adopting a DevSecOps model and wants to ensure that security is measured and improved continuously. Which TWO of the following metrics are MOST appropriate for tracking the effectiveness of the secure software lifecycle management process? (Choose two.)

Select 2 answers
A.Percentage of applications that have completed a threat model.
B.Average time from code commit to production deployment.
C.Total number of security tools deployed in the CI/CD pipeline.
D.Mean time to remediate (MTTR) critical vulnerabilities identified in production.
E.Number of lines of code reviewed per developer per day.
AnswersA, D

The percentage of applications with completed threat models indicates the adoption of proactive security practices. Threat modeling helps identify design flaws early, reducing the cost of fixes. Tracking this metric shows how well the organization is integrating security into the early phases of the lifecycle, which is a core goal of secure SDLC management.

Why this answer

Effective security metrics should be outcome-based and drive improvement. MTTR for critical vulnerabilities measures response efficiency, while the percentage of applications with threat models shows proactive risk identification. Both are directly tied to reducing security risk and improving the secure software lifecycle, unlike activity or vanity metrics.

Exam trap

The trap here is confusing activity metrics (like number of tools or lines reviewed) with outcome metrics that actually reflect security posture and process effectiveness.

110
MCQeasy

Which design principle suggests that developers should keep the security mechanisms simple to understand and implement?

A.Open design.
B.Economy of mechanism.
C.Complete mediation.
D.Defense in depth.
AnswerB

Economy of mechanism holds that security functions should be as simple as possible, since complexity breeds implementation errors and overlooked flaws. Keeping designs small and understandable makes them easier to verify, test and maintain, directly satisfying the stem's requirement that developers keep security mechanisms simple to understand and implement.

Why this answer

Economy of mechanism ensures that small, simple security designs are easier to verify and less prone to vulnerabilities.

111
MCQeasy

Which standard security practice should be applied to all passwords stored in a database?

A.Encryption with a symmetric key
B.Storing in a configuration file
C.Hashing with a unique salt per user
D.Base64 encoding
AnswerC

A unique per-user salt defeats rainbow tables and ensures identical passwords produce different digests, while hashing remains one-way. This satisfies the stem's requirement for the standard practice applied to all stored passwords, unlike encryption, which is reversible.

Why this answer

The correct practice is to hash passwords with a unique salt per user. Hashing is a one-way function that transforms the password into a fixed-length digest, making it infeasible to reverse. A unique salt per user prevents attackers from using precomputed rainbow tables and ensures that identical passwords produce different hashes.

This is a fundamental requirement in standards like NIST SP 800-63B and OWASP ASVS.

Exam trap

CSSLP often tests the misconception that encryption is always better than hashing for password storage, but encryption is reversible and thus unsuitable; hashing with salt is the only correct method.

How to eliminate wrong answers

Option A is wrong because encryption with a symmetric key is reversible; if the key is compromised, all passwords can be decrypted. Option B is wrong because storing passwords in a configuration file (even if encrypted) is insecure, as the file may be accessible to unauthorized users or included in backups. Option D is wrong because Base64 encoding is a reversible encoding, not a security measure; it provides no confidentiality and can be trivially decoded.

112
MCQeasy

Which phase of the secure software lifecycle is the most cost-effective for identifying and correcting security requirements?

A.Maintenance phase
B.Deployment phase
C.Requirements phase
D.Testing phase
AnswerC

Requirements phase defects are cheapest to fix because no code or architecture exists yet. Identifying and correcting security requirements here prevents costly rework during design, coding and testing, satisfying the lifecycle constraint that earliest-phase remediation yields the greatest cost-effectiveness.

Why this answer

The earlier a requirement gap is identified, the cheaper it is to fix (before design or coding begins).

113
MCQeasy

Which concept describes the ability of a system to provide services to authorized users even during a heavy load or denial of service attack?

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

Availability ensures authorised users can access services and data when required, including under heavy load or active denial-of-service conditions. The other pillars address secrecy and integrity, not sustained service access, so availability directly matches the scenario described.

Why this answer

Availability specifically refers to the system's ability to remain operational and accessible.

114
Multi-Selectmedium

A software development team is designing a new web application that will handle sensitive personal data. The security architect recommends incorporating privacy by design principles. Which two design practices best align with the principle of data minimization? (Choose two.)

Select 2 answers
A.Design the application to use pseudonymization for all user identifiers in analytics and logging systems.
B.Implement field-level encryption for all personal data fields in the database to protect data at rest.
C.Store all personal data in a single, centralized database to simplify access control and auditing.
D.Implement role-based access control (RBAC) to ensure only authorized users can access personal data.
E.Collect only the personal data that is strictly necessary for the specific functionality being implemented, and delete it once the purpose is fulfilled.
AnswersA, E

Pseudonymization replaces direct identifiers with artificial identifiers, reducing the linkability of data to individuals. This supports data minimization by limiting the exposure of personal data in secondary uses like analytics and logging. It is a privacy-enhancing technique that aligns with the principle of using only the data necessary for the purpose, making it a correct choice.

Why this answer

Data minimization in privacy by design means collecting only necessary data and keeping it only as long as needed, as well as reducing identifiability where possible. Collecting and deleting data based on purpose, and pseudonymizing identifiers in analytics and logging, both directly reduce the amount of personal data processed and its linkability. These practices limit privacy risk and align with regulatory requirements.

Exam trap

The trap here is confusing security controls like encryption or access control with data minimization, which specifically focuses on limiting the collection, retention, and identifiability of personal data.

115
MCQmedium

In an OAuth2 flow, what is the purpose of the 'state' parameter?

A.To prevent CSRF attacks
B.To store the user's password
C.To track the user's location
D.To encrypt the access token
AnswerA

The 'state' parameter carries an opaque value the client generates and returns with the authorisation response. The client verifies it matches the value it sent, binding the response to its own request and blocking cross-site request forgery attacks that would otherwise inject a forged authorisation code.

Why this answer

The 'state' parameter in OAuth2 is an opaque value generated by the client and returned unchanged by the authorization server in the redirect. The client verifies that the returned state matches the value it sent, which binds the authorization response to the user's session and prevents cross-site request forgery (CSRF) attacks where an attacker tricks a victim into submitting an attacker's authorization code.

Exam trap

The trap is confusing the state parameter with token security mechanisms; CSSLP tests whether you know that state is specifically an anti-CSRF measure, not a password store, location tracker, or encryption mechanism.

How to eliminate wrong answers

Option B is wrong because OAuth2 never uses the state parameter to store passwords; passwords are handled by the authorization server's login UI and are never passed through the state parameter. Option C is wrong because tracking user location is unrelated to OAuth2's state parameter; geolocation is not part of the OAuth2 specification. Option D is wrong because the state parameter does not encrypt the access token; token confidentiality is provided by TLS and, in some flows, by token encryption mechanisms like JWE, not by the state parameter.

116
Multi-Selecthard

Which THREE factors must be considered when defining 'Compliance Requirements' for an international software product?

Select 3 answers
A.Data residency and sovereignty laws
B.Industry-specific standards (e.g., PCI, HIPAA)
C.Privacy regulations (e.g., GDPR, CCPA)
D.The preferred coding language of the developers
E.The marketing budget of the product
AnswersA, B, C

Data residency and sovereignty laws dictate where personal data may be stored and processed, varying by jurisdiction. For an international product, these legal constraints determine hosting regions, cross-border transfer mechanisms and data localisation, making them a primary compliance requirement.

Why this answer

Data residency and sovereignty laws (A) are essential because they dictate where data may be stored and processed, directly shaping architecture and compliance obligations for an international product. Industry-specific standards such as PCI DSS and HIPAA (B) impose mandatory security and handling controls whenever the product processes payment card data or protected health information. Privacy regulations like GDPR and CCPA (C) define lawful processing, consent, data subject rights, and cross-border transfer rules that must be built into the product.

By contrast, the developers' preferred coding language (D) is an implementation preference with no bearing on regulatory compliance, and the marketing budget (E) is a business/financial matter unrelated to defining compliance requirements.

Exam trap

The trap here is confusing internal engineering or business preferences (coding language, marketing budget) with externally imposed legal/regulatory compliance drivers, causing candidates to select plausible-sounding but non-compliance options.

117
MCQmedium

A software architect is designing a system where data must remain accessible even if the primary database server fails. They implement a synchronous database replication strategy. Which core security concept is being prioritized?

A.Non-repudiation
B.Integrity
C.Availability
D.Confidentiality
AnswerC

Synchronous replication maintains a live duplicate of data, so service continues when the primary database fails. This directly satisfies the stem's requirement that data remain accessible despite server failure, which is the availability leg of the CIA triad rather than integrity or confidentiality.

Why this answer

Availability is prioritized by ensuring data access despite server failure through replication.

118
Multi-Selecteasy

Which THREE of the following are common challenges when implementing a Secure SDLC in a large organization?

Select 3 answers
A.The speed of software development is too slow.
B.Lack of security expertise within development teams.
C.Difficulty integrating security tools into existing CI/CD pipelines.
D.Resistance to cultural and process changes.
E.Having too much budget for security tools.
AnswersB, C, D

Developers frequently lack secure coding knowledge, so they introduce vulnerabilities and cannot interpret security tooling output. This skills gap forces security teams to remediate late, undermining the Secure SDLC's shift-left intent across a large organisation.

Why this answer

Option B is correct because in large organizations development teams often lack dedicated application-security skills (e.g., secure coding, threat modeling, SAST/DAST interpretation), so security must be embedded via training and champions rather than assumed. Option C is correct because integrating security tooling such as SAST, DAST, SCA, and secret scanning into existing CI/CD pipelines (Jenkins, GitLab CI, GitHub Actions) is technically complex, often slows builds, and produces false positives that must be triaged. Option D is correct because a Secure SDLC requires cultural and process change—shifting security left, adding gates, and changing developer workflows—which typically meets organizational resistance.

Option A is not a standard challenge of Secure SDLC implementation; the real tension is balancing security with delivery speed, not that development itself is inherently too slow. Option E is incorrect because large organizations rarely suffer from having too much security budget; budget constraints and tool sprawl are the more common issues.

119
Multi-Selectmedium

A software architect is designing a system that must be resilient to failures and attacks. Which two design principles best contribute to system resilience? (Choose two.)

Select 2 answers
A.Hardcoding credentials in configuration files for ease of deployment.
B.Using a single, monolithic component to simplify management and reduce complexity.
C.Implementing redundant components with automatic failover.
D.Relying on a single security control to protect all assets.
E.Designing for graceful degradation of non-critical features.
AnswersC, E

Redundancy with automatic failover ensures that if one component fails, another can take over, maintaining availability. This is a core principle of resilience, as it reduces single points of failure and allows the system to continue operating during disruptions. It also helps mitigate denial-of-service attacks by providing additional capacity and failover paths.

Why this answer

Resilience is achieved through redundancy, automatic failover, and graceful degradation. Redundancy ensures availability during failures, while graceful degradation allows critical functions to continue when non-essential features are impaired. These principles together enable the system to withstand and recover from disruptions, whether from attacks or accidental failures.

The other options either introduce single points of failure or weaken security, reducing overall resilience.

Exam trap

The trap here is equating simplicity or single controls with resilience, when in fact resilience requires redundancy and layered defenses.

120
MCQmedium

When designing secure software, why is 'Economy of Mechanism' important?

A.To lower the cost of hardware infrastructure.
B.To minimize the attack surface by keeping the design simple.
C.To increase the lines of code for better functionality.
D.To ensure that the software is faster at runtime.
E.To enable easier debugging for developers.
AnswerB

Economy of Mechanism keeps the design as simple as possible, so fewer code paths, interfaces and features exist for attackers to exploit. Reduced complexity directly shrinks the attack surface and lowers the chance of implementation flaws.

Why this answer

Economy of Mechanism is a core security design principle (from Saltzer and Schroeder) that advocates for simple, minimal designs. By keeping the design as simple as possible, the number of potential vulnerabilities and entry points for attackers is reduced, directly minimizing the attack surface. This simplicity also makes the system easier to verify and secure.

Exam trap

The trap here is confusing 'Economy of Mechanism' with general software efficiency or cost-saving measures, rather than recognizing it as a security principle focused on reducing complexity to minimize attack surface.

How to eliminate wrong answers

Option A is wrong because Economy of Mechanism is not about reducing hardware costs; it's about reducing complexity to improve security. Option C is wrong because increasing lines of code adds complexity, which is the opposite of Economy of Mechanism. Option D is wrong because while simpler code may run faster, the primary security goal is not runtime speed but reducing attack surface.

Option E is wrong because easier debugging is a side benefit, not the main security rationale for Economy of Mechanism.

121
Multi-Selectmedium

A security architect is designing a new web application that will handle sensitive customer data. The architect wants to incorporate the principle of 'defense in depth' into the architecture. Which TWO of the following design decisions best exemplify defense in depth? (Choose two.)

Select 2 answers
A.Implement input validation at both the presentation layer and the business logic layer.
B.Use a single, strong authentication mechanism such as multi-factor authentication for all users.
C.Place the database behind a firewall and also encrypt sensitive columns within the database.
D.Rely on a Web Application Firewall (WAF) as the primary control to block all attacks against the application.
E.Store all application logs on the same server as the application to simplify troubleshooting.
AnswersA, C

Validating input at multiple layers ensures that if one layer is bypassed or has a flaw, another layer can still catch malicious input. This is a classic defense-in-depth approach: redundant controls that address the same threat from different angles. It reduces the likelihood of a single point of failure leading to a vulnerability.

Why this answer

Defense in depth means layering multiple independent security controls so that if one fails, others still protect the asset. Validating input at multiple layers and combining network restrictions with data encryption are both examples of redundant, complementary controls. They reduce the risk of a single control failure leading to a breach.

Exam trap

The trap here is equating any strong single control, such as MFA or a WAF, with defense in depth, when the principle specifically requires multiple independent layers of protection.

122
MCQmedium

In the context of secure design, what does 'Fail-safe defaults' mean when designing an authentication module?

A.The system automatically resets passwords if a login failure occurs.
B.The system permits login if the authentication server is unreachable.
C.If a system error occurs during login, the system denies access by default.
D.All new users are granted guest access until the admin verifies them.
AnswerC

Fail-safe defaults means access decisions fall back to denial when the module cannot complete its checks. A login error therefore refuses entry rather than granting it, satisfying the stem's requirement that the authentication module default to a secure state under failure.

Why this answer

If the module crashes or encounters an error, the system should default to 'deny' access rather than 'allow'.

123
MCQhard

You are eliciting security requirements for a new online banking application. The business stakeholders are focused on features and have limited security knowledge. You need to ensure that security requirements are complete, unambiguous, and testable. Which technique is MOST appropriate to achieve this?

A.Create misuse cases that describe how an attacker might abuse the system, and derive security requirements from them.
B.Organize a focus group where stakeholders brainstorm all possible security features they want in the application.
C.Interview the IT security team to document their existing security policies and apply them as requirements.
D.Conduct a survey asking stakeholders to rate the importance of various security controls from a predefined list.
AnswerA

Misuse cases are a structured technique to identify negative scenarios and derive security requirements. They help non-technical stakeholders understand threats by illustrating attacker goals, making it easier to elicit specific, testable requirements. This approach directly addresses completeness and unambiguity by forcing consideration of abuse scenarios and corresponding mitigations, which can be validated during testing.

Why this answer

Misuse cases are particularly effective for eliciting security requirements from stakeholders with limited security expertise. By framing threats as stories of misuse, they make abstract security concepts concrete and relatable. This technique ensures that requirements are derived from actual attack scenarios, making them specific, testable, and directly tied to risk mitigation.

It also fosters collaboration between security and business stakeholders.

Exam trap

The trap here is assuming that general brainstorming or surveys can produce the same level of specificity and testability as structured misuse case analysis.

124
MCQhard

You are designing a secure pipeline using Jenkins. To ensure integrity, what is the best practice for managing build artifacts?

A.Storing artifacts in a public S3 bucket for easy access.
B.Deleting build artifacts immediately after the deployment to production.
C.Uploading artifacts to a shared developer network drive.
D.Using digital signatures to verify artifact integrity before deployment.
AnswerD

Signing artifacts with a private key lets Jenkins verify provenance and detect tampering after the build, so only artefacts whose signature validates are deployed. This satisfies the integrity constraint by binding the deployed binary to the trusted build rather than trusting storage or transport.

Why this answer

Digitally signing artifacts ensures that they have not been tampered with between the build stage and deployment, maintaining supply chain integrity.

125
MCQeasy

Which of the following is an example of defense-in-depth in a web application architecture?

A.Disabling all firewall rules for testing purposes.
B.Storing all application data in a single encrypted volume.
C.Implementing input validation, parameterized queries, and a Web Application Firewall (WAF).
D.Removing all logs to prevent unauthorized access to audit trails.
E.Using a single strong password for all database accounts.
AnswerC

Layered controls at distinct tiers: input validation and parameterised queries harden application code against injection, while a WAF filters malicious HTTP traffic at the perimeter. Compromise of one layer does not defeat the others, satisfying the defence-in-depth requirement.

Why this answer

Defense-in-depth layers multiple independent controls so that a failure or bypass of one does not compromise the whole system. Option C combines three distinct layers: input validation at the application code layer, parameterized queries at the data-access layer to prevent SQL injection, and a WAF at the network/edge layer to filter malicious HTTP traffic. Together they address the same threat class (injection) through different mechanisms, which is the textbook definition of layered defense.

Exam trap

The trap here is confusing 'more security controls' with 'layered security controls' — options like a single encrypted volume or one strong password sound secure but represent single points of failure, not defense-in-depth.

How to eliminate wrong answers

Option A is wrong because disabling firewall rules removes a security control entirely rather than layering defenses, directly weakening the architecture. Option B is wrong because storing all data in a single encrypted volume is a single control with a single point of failure — if the key or volume is compromised, everything is exposed, and it provides no application-layer protection. Option D is wrong because removing logs destroys the audit trail and eliminates detective controls, which is the opposite of defense-in-depth.

Option E is wrong because reusing one strong password across all database accounts violates least privilege and credential separation, creating a single compromised credential that grants broad access.

126
Multi-Selectmedium

Which THREE of the following are best practices for the secure use of third-party libraries?

Select 3 answers
A.Automatically update to the latest version without testing
B.Monitor for vulnerability disclosures
C.Perform security audits on third-party code
D.Store all third-party code in the public root folder
E.Pin library versions to avoid unexpected changes
AnswersB, C, E

Continuous monitoring of vulnerability disclosures for third-party libraries satisfies the stem's requirement to manage inherited risk after integration. Feeds such as the National Vulnerability Database, vendor advisories and software composition analysis alerts identify newly published CVEs affecting pinned versions, enabling timely patching before attackers exploit known flaws in deployed dependencies.

Why this answer

Option B is correct because continuously monitoring for vulnerability disclosures (e.g., via CVE feeds, NVD, or dependency-scanning tools like OWASP Dependency-Check or Snyk) lets teams learn about and remediate known flaws in third-party libraries before attackers exploit them. Option C is correct because performing security audits on third-party code — reviewing the library's source, license, and security posture (e.g., static analysis, SBOM review) — verifies that the dependency does not introduce vulnerabilities or malicious code into the application. Option E is correct because pinning library versions (e.g., exact versions in package.json, requirements.txt, or lock files) prevents unexpected changes or supply-chain attacks from silently pulling in a compromised or incompatible newer release.

Option A is not a best practice because automatically updating to the latest version without testing can introduce breaking changes or newly disclosed vulnerabilities and bypasses change control. Option D is not a best practice because storing third-party code in the public root folder exposes it to direct web access, potentially leaking source code or enabling exploitation of unauthenticated endpoints.

127
MCQmedium

You are reviewing code and find a hardcoded API key. Which security control should be implemented to securely manage this secret?

A.Use a secret management service
B.Store it in a public environment variable
C.Add it to the .gitignore file
D.Obfuscate the key in the code
AnswerA

A secret management service stores the API key outside source code and injects it at runtime, removing the hardcoded credential from the repository. This satisfies the requirement to manage the secret securely, enabling rotation and access auditing.

Why this answer

A dedicated secret management service (e.g., HashiCorp Vault, AWS Secrets Manager, Azure Key Vault) stores secrets encrypted, controls access via identity and policy, supports rotation and auditing, and keeps secrets out of source code entirely. This is the correct control because it addresses the root cause — secrets embedded in code — rather than masking the symptom. It also enables centralized revocation and rotation when a key is compromised.

Exam trap

CSSLP often tests the misconception that hiding a secret in code or an environment variable is sufficient protection, when the only correct control is a dedicated secret management service that provides encryption, access control, and rotation.

How to eliminate wrong answers

Option B is wrong because a public environment variable exposes the secret to anyone with access to the environment, logs, or process listings, and 'public' explicitly removes any confidentiality protection. Option C is wrong because adding a file to .gitignore only prevents future commits of that file — it does not remove the secret from existing git history, does not protect the secret at runtime, and does not provide access control or rotation. Option D is wrong because obfuscating a key in code (e.g., base64 or string concatenation) is security through obscurity; the key remains in the codebase and can be trivially recovered by anyone who reads the source.

128
Multi-Selecthard

Which THREE configuration management practices help reduce 'Configuration Drift' in a secure software environment?

Select 3 answers
A.Implementing automated drift detection and remediation tools.
B.Treating infrastructure as 'immutable' by replacing rather than patching instances.
C.Disabling all automated deployment pipelines.
D.Using declarative Infrastructure as Code (IaC) tools like Terraform or CloudFormation.
E.Allowing manual configuration changes via the SSH console.
AnswersA, B, D

Automated drift detection continuously compares deployed configurations against the approved baseline, then remediates deviations before they accumulate. This directly satisfies the stem's requirement to reduce configuration drift, since manual comparison cannot scale across dynamic environments and leaves unauthorised changes undetected until they undermine the secure software baseline.

Why this answer

Option A is correct because automated drift detection and remediation tools continuously compare running configurations against a known-good baseline and automatically reapply the desired state, catching and correcting unauthorized or accidental changes before they persist. Option B is correct because immutable infrastructure replaces instances with freshly built, versioned images instead of patching live systems, so no long-lived server accumulates undocumented changes and drift cannot compound over time. Option D is correct because declarative IaC tools such as Terraform or CloudFormation define the desired end state in version-controlled code and reconcile actual resources to that state, making configuration reproducible and auditable.

Option C is wrong because disabling automated deployment pipelines removes the consistent, repeatable mechanism that prevents drift and forces error-prone manual changes. Option E is wrong because allowing manual configuration changes via the SSH console is itself a primary cause of configuration drift, since out-of-band edits bypass version control and baseline enforcement.

Exam trap

CSSLP often tests the idea that automation and immutability reduce drift, while manual changes and disabled pipelines increase it; candidates may incorrectly think that disabling automation improves control.

129
MCQhard

You are designing an application that integrates with a legacy system. Which design strategy minimizes the risk of the legacy system's vulnerabilities affecting your application?

A.Creating an abstraction layer (wrapper/adapter) to sanitize all data exchanged.
B.Migrating all legacy data immediately.
C.Direct integration via shared database tables.
D.Granting the legacy system full administrative privileges in the new system.
AnswerA

An abstraction layer intercepts every call to the legacy system, validating and sanitising data in both directions. This isolates your application from the legacy system's vulnerabilities, such as injection flaws, so a compromise there cannot propagate across the boundary — directly minimising the risk the stem describes.

Why this answer

An abstraction layer acts as a buffer, sanitizing and normalizing data before it enters or leaves the application.

130
MCQhard

When managing software security in a cloud-native architecture, what is the best practice for ensuring secure configuration throughout the lifecycle?

A.Using default security settings provided by the cloud provider.
B.Implementing Infrastructure as Code (IaC) and scanning templates.
C.Relying on manual cloud console configuration.
D.Performing monthly manual audits of cloud resources.
AnswerB

IaC encodes configuration as version-controlled templates, so scanning them in the pipeline catches misconfigurations before deployment rather than after. This satisfies the stem's lifecycle-wide constraint, enforcing secure baselines consistently across environments and preventing configuration drift that manual hardening cannot sustain.

Why this answer

Infrastructure as Code (IaC) allows for version-controlled, repeatable, and scanable infrastructure configurations, which can be audited before deployment.

131
MCQmedium

When configuring a DAST scanner to test for Cross-Site Request Forgery (CSRF), what must the scanner be able to do?

A.Attempt to brute force the user's password.
B.Extract and re-inject unique anti-CSRF tokens for each request.
C.null
D.Scan the client-side JavaScript code for vulnerabilities.
E.Bypass the need for authentication.
AnswerB

Without token handling, the application will reject the forged request.

Why this answer

CSRF tokens are unique per session; the scanner must be able to extract the token from the response and include it in the subsequent request.

132
Multi-Selecthard

When updating requirements for a legacy system to improve its security posture, which THREE actions should the CSSLP prioritize?

Select 3 answers
A.Changing the internal team structure
B.Replacing deprecated cryptographic libraries
C.Implementing modern, multi-factor authentication
D.Increasing the memory of the application servers
E.Hardening the system against known injection attacks
AnswersB, C, E

Deprecated cryptographic libraries, such as MD5, SHA-1 or TLS 1.0, contain known weaknesses that attackers can exploit. Replacing them with current, supported algorithms and protocols removes those exploitable primitives, directly improving the legacy system's security posture at its foundational trust layer.

Why this answer

Option B is correct because deprecated cryptographic libraries (e.g., MD5, SHA-1, RC4, or outdated TLS stacks) contain known weaknesses and unpatched CVEs, so replacing them with current, supported algorithms and libraries directly reduces exploitable cryptographic risk in a legacy system. Option C is correct because implementing modern multi-factor authentication (e.g., TOTP, FIDO2/WebAuthn, or hardware tokens) strengthens identity assurance and mitigates credential-based attacks such as password reuse, phishing, and brute force, which are common weaknesses in legacy authentication schemes. Option E is correct because hardening against known injection attacks (SQL injection, command injection, LDAP injection, XSS) addresses the most prevalent and dangerous vulnerability classes in legacy code, typically via parameterized queries, input validation, and output encoding.

Option A does not belong because changing internal team structure is an organizational/HR matter that does not directly improve the technical security posture of the system. Option D does not belong because increasing application server memory is a performance/scalability change with no direct security benefit.

Exam trap

The trap is selecting infrastructure or organizational changes (team structure, memory) that sound like improvements but have no direct security impact on the legacy system's vulnerabilities.

133
MCQmedium

When gathering security requirements, what is the primary challenge when dealing with 'shadow IT' within a large enterprise?

A.Slow deployment speeds
B.Lack of visibility and consistent security enforcement
C.High infrastructure costs
D.Excessive user training
AnswerB

Shadow IT systems are procured and operated outside central governance, so security teams cannot inventory them, assess their configurations or apply consistent controls. This visibility gap prevents uniform policy enforcement across the enterprise, which is the core challenge when eliciting security requirements.

Why this answer

Shadow IT systems operate outside of managed security requirements, making it difficult to ensure they meet corporate compliance or security standards.

134
Multi-Selectmedium

When designing an application that relies on external APIs, which THREE of the following are necessary security considerations?

Select 3 answers
A.Only using HTTP for faster communication.
B.Managing API keys using a secure vault.
C.Hard-coding the API endpoint URLs in the application.
D.Validating all data returned by the external API before processing.
E.Securing the connection using HTTPS/TLS.
AnswersB, D, E

External API credentials grant access to third-party services and often carry billing or data-scope privileges. Storing them in a secure vault rather than source code or configuration files enforces confidentiality and controlled retrieval, satisfying the need to protect secrets from disclosure or unauthorised reuse.

Why this answer

Option B is correct because API keys are credentials that grant access to external services, and storing them in a secure vault (e.g., HashiCorp Vault, AWS Secrets Manager, Azure Key Vault) prevents exposure through source code, config files, or logs. Option D is correct because data returned by an external API is untrusted input; validating and sanitizing it before processing defends against injection attacks, malformed payloads, and downstream data corruption. Option E is correct because HTTPS/TLS encrypts data in transit, providing confidentiality and integrity and preventing man-in-the-middle attacks, eavesdropping, and credential theft over the network.

Option A is not a security consideration—plain HTTP transmits data unencrypted and is less secure, not faster in any security-relevant sense. Option C is not a security consideration and is in fact poor practice, since hard-coding endpoint URLs reduces flexibility and can expose internal or non-production endpoints; endpoint configuration should be externalized and managed securely.

Exam trap

CSSLP often tests whether candidates recognize that encryption alone (HTTPS) is insufficient — input validation of third-party responses and secure key storage are equally required, so options that omit validation or vaulting are traps.

135
MCQhard

During a project migration to GDPR compliance, the development team must ensure that personal data is deleted upon user request. Where should these specific data lifecycle constraints be documented to ensure they influence the architectural design?

A.The Software Requirements Specification (SRS)
B.The Penetration Testing Report
C.The Infrastructure-as-Code (IaC) templates
D.The Risk Register
AnswerA

The Software Requirements Specification captures functional and non-functional constraints that architects must design against. Documenting GDPR erasure obligations there satisfies the stem's requirement by ensuring deletion timelines and data lifecycle rules are traceable, testable requirements rather than informal assumptions discovered after design.

Why this answer

Security requirements must be integrated into the Software Requirements Specification (SRS) or the project's requirements management tool (like Jira or Azure DevOps) to ensure they are tracked as functional constraints.

136
MCQeasy

A financial services firm is designing a new mobile banking application. The security architect wants to ensure that if an attacker gains physical access to a user's device, they cannot easily extract sensitive session tokens stored by the app. Which secure design principle should be applied to protect these tokens at rest?

A.Store session tokens in the application's private data directory with file permissions restricted to the app's user ID, and encrypt them using a key derived from a user-supplied PIN.
B.Store session tokens in the device's secure hardware-backed keystore, such as the iOS Keychain or Android Keystore, and require user authentication to access them.
C.Store session tokens in a remote server and only keep a reference identifier in the app, fetching the token over a secure channel when needed.
D.Obfuscate the session token by splitting it into multiple parts and storing them in different locations within the app's sandbox, reassembling only in memory when needed.
AnswerB

Using a hardware-backed keystore ensures that sensitive tokens are encrypted and protected by the device's secure element, making extraction difficult even with physical access. Requiring user authentication adds a layer of protection. This aligns with the principle of securing data at rest and leveraging platform security features, which is a best practice for mobile banking applications.

Why this answer

Hardware-backed keystores provide a secure, isolated environment for cryptographic keys and sensitive data, making extraction extremely difficult even with physical device access. By storing session tokens there and requiring user authentication, the design leverages platform security features to protect data at rest. This is the most robust approach for mobile banking applications handling sensitive financial data.

Exam trap

The trap here is confusing obfuscation or simple encryption with hardware-backed protection, which offers a much stronger security guarantee against physical extraction.

137
MCQmedium

A developer is using AFL (American Fuzzy Lop) for fuzzing a C++ application. What is the primary requirement for achieving high coverage?

A.Configuring the fuzzer to use only random byte-flipping.
B.null
C.Running the fuzzer on a virtual machine without network access.
D.Instrumenting the code during compilation with afl-clang or afl-gcc.
E.Providing the fuzzer with a binary that was stripped of all symbols.
AnswerD

AFL relies on compile-time instrumentation to insert coverage-tracking probes at basic blocks, feeding feedback to the fuzzer's queue. Without afl-clang or afl-gcc instrumentation, AFL falls back to blind fuzzing with no coverage signal, so high coverage demands instrumented binaries.

Why this answer

AFL uses instrumentation to track branch coverage; without compiling with AFL's compiler wrappers, the feedback loop cannot function.

138
MCQeasy

When managing infrastructure as code (IaC) using Terraform, which practice is the most critical for secure configuration management of state files?

A.Rename the state file to 'secret.tfstate' to hide it from attackers.
B.Store state files in a version-controlled Git repository for change tracking.
C.Use a remote backend like S3 with server-side encryption enabled and restricted IAM policies.
D.Manually delete the state file after every Terraform apply command.
AnswerC

Terraform state files store resource attributes and secrets in plaintext, so a remote backend such as S3 with server-side encryption and tightly scoped IAM policies protects that data at rest and restricts who can read or alter it.

Why this answer

Terraform state files contain sensitive data such as resource IDs, IP addresses, and sometimes plaintext secrets. Storing them in a remote backend like Amazon S3 with server-side encryption (SSE) and tightly scoped IAM policies ensures that the state is encrypted at rest, access is audited and controlled, and the file is not exposed on local disks or in version control. This practice aligns with the principle of least privilege and defense in depth for infrastructure secrets.

Exam trap

The trap here is that candidates often assume version control (Git) is a secure way to manage state because it provides change tracking, but it actually exposes secrets; the exam tests whether you know that remote backends with encryption and IAM are the secure standard.

How to eliminate wrong answers

Option A is wrong because renaming the state file to 'secret.tfstate' provides no actual security—it is security through obscurity and does not prevent unauthorized access if the file is stored in a readable location. Option B is wrong because storing state files in a version-controlled Git repository exposes sensitive data to anyone with repository access and persists secrets in commit history, even if later removed. Option D is wrong because manually deleting the state file after every apply destroys Terraform's ability to track resource mappings, leading to orphaned resources, drift, and potential outages; it also does not address secure storage during operations.

139
MCQeasy

A software development team is designing a new internal employee portal. The security architect recommends implementing the principle of least privilege. Which design decision best applies this principle to the portal's database access?

A.Grant the portal's database account full administrative rights so that developers can quickly fix data issues without waiting for DBA approval.
B.Allow the portal to connect as the database schema owner so that it can create temporary tables and stored procedures as needed.
C.Create a dedicated database account for the portal that has only the specific SELECT, INSERT, UPDATE, and DELETE permissions required on the tables the portal uses.
D.Use a shared database account for all internal applications so that connection strings are easier to manage and rotate.
AnswerC

This approach grants only the permissions necessary for the portal to function, which is the essence of least privilege. If the account is compromised, the attacker cannot access unrelated tables or perform administrative actions. It limits the potential damage and aligns with secure design principles.

Why this answer

Least privilege means giving an entity only the access required to perform its function. A dedicated database account with a minimal set of DML permissions on specific tables ensures the portal can operate without granting unnecessary rights. This reduces the impact of a compromise and is a fundamental secure design practice.

Exam trap

The trap here is confusing operational convenience with security, such as using a shared or overly privileged account to simplify management, which directly contradicts least privilege.

140
MCQeasy

During a manual penetration test, you discover an insecure direct object reference (IDOR). What is the most appropriate next step in the test case design for this finding?

A.Delete the record to prove the IDOR is exploitable.
B.Attempt to access resources associated with other users.
C.null
D.Report the finding immediately without further testing.
E.Run a full automated DAST scan against the entire application.
AnswerB

An IDOR means the application fails to enforce object-level authorisation, so the test must confirm whether another user's resources are reachable by manipulating the identifier. Attempting access to other users' objects directly validates the vulnerability and satisfies the stem's next-step requirement.

Why this answer

After discovering an IDOR, the appropriate next step in test-case design is to attempt to access resources belonging to other users (B) to confirm the vulnerability is exploitable and to determine its scope. This validates the finding, demonstrates real impact, and provides evidence for the report — all within authorized testing boundaries.

Exam trap

CSSLP often tests the ethics and scope of penetration testing — candidates pick destructive actions (delete) or premature reporting instead of safe, methodical validation of the finding.

How to eliminate wrong answers

Option A is wrong because deleting a record is destructive, exceeds the scope of a typical penetration test, and could cause data loss or operational harm — testers must never destroy data to prove a point. Option C is wrong because a null option provides no answer and is not a valid test step. Option D is wrong because reporting immediately without further testing skips validation and scoping, producing a low-quality finding that may be a false positive and lacks evidence of impact.

Option E is wrong because running a full automated DAST scan is a broad, unrelated activity that does not specifically validate or scope the IDOR finding.

141
MCQmedium

A retail company is designing a mobile application that stores a long-lived refresh token on the device so users stay signed in. The security architect is concerned that a stolen device or a rooted device could yield the token to an attacker. Which design choice best limits the usefulness of a stolen refresh token?

A.Encrypt the refresh token with a symmetric key that is embedded in the application binary and obfuscated.
B.Require the user to re-enter their password every time the refresh token is used to obtain a new access token.
C.Bind the refresh token to a device-held private key using a proof-of-possession mechanism such as DPoP or mutual TLS, and rotate the token on each use.
D.Increase the refresh token lifetime to ninety days and store it in the platform keychain or keystore.
AnswerC

Sender-constrained tokens are useless to an attacker who copies them without the corresponding private key, which is stored in hardware-backed keystore and ideally non-exportable. Rotation on each use also detects replay, because a reused token invalidates the chain, giving the defender a signal of compromise.

Why this answer

Proof-of-possession binding ties the token to a non-exportable private key in hardware-backed storage, so possession of the token string alone is insufficient. Rotation on each use adds replay detection. Together these turn a stolen token from a durable credential into a limited, detectable artifact, which is the goal when the device itself may be compromised.

Exam trap

The trap here is assuming that storing a bearer token in a platform keystore makes it safe, when a rooted device or a compromised app process can still extract and replay it.

142
Multi-Selecteasy

Which TWO of the following are essential components of a Secure Software Development Lifecycle (SSDLC)?

Select 2 answers
A.Hardware procurement
B.Marketing strategies
C.Security requirements definition
D.Threat modeling
E.Unlimited project budget
AnswersC, D

Security requirements definition establishes the protective and compliance obligations the software must satisfy before design begins, making it an essential SSDLC component. Without it, later design, coding and testing activities lack measurable security criteria to verify against, so requirements cannot be traced or validated.

Why this answer

Security requirements definition (C) is essential because the SSDLC must capture security and privacy requirements alongside functional requirements early in the lifecycle, so that controls such as authentication, encryption, and compliance obligations are designed in rather than bolted on later. Threat modeling (D) is essential because it systematically identifies potential threats, attack surfaces, and mitigations (e.g., using STRIDE or DREAD) during design, allowing architects to address risks before code is written. The other options do not belong: hardware procurement (A) is an infrastructure/logistics activity rather than a software security practice, marketing strategies (B) concern business promotion and are unrelated to secure development, and an unlimited project budget (E) is neither a security control nor a realistic or necessary SSDLC component.

Exam trap

The trap is selecting non-security activities (like hardware procurement or marketing) as SSDLC components, confusing general project management with security-specific practices.

143
MCQhard

During a peer code review, you find a function that constructs an OS command using user input. What is the most secure way to handle this?

A.Run the command as a root user
B.Use built-in language APIs instead of shell commands
C.Sanitize the input with a blacklist
D.Escape the input with shell-specific characters
AnswerB

Built-in language APIs avoid invoking a shell, so user input cannot be interpreted as command syntax. This eliminates OS command injection at its source, satisfying the requirement to handle untrusted input securely rather than relying on escaping or sanitisation of shell metacharacters.

Why this answer

The most secure way to handle user input that would otherwise be used to construct an OS command is to avoid shell invocation entirely and use built-in language APIs that perform the desired operation (e.g., file I/O, process spawning with argument arrays). This eliminates the shell interpreter and the possibility of command injection, because user input is passed as data, not parsed as shell syntax. Sanitization and escaping are fallback mitigations that are error-prone and shell-specific.

Exam trap

The trap is believing that input sanitization or escaping is sufficient, when the truly secure approach is to eliminate shell invocation by using built-in language APIs that treat input as data.

How to eliminate wrong answers

Option A is wrong because running the command as root violates least privilege and dramatically increases the impact of any command injection or compromise; it does not address the injection flaw itself. Option C is wrong because blacklist sanitization is inherently incomplete: attackers can use encoding, alternate delimiters, or shell-specific syntax not covered by the blacklist, and new bypasses are discovered regularly. Option D is wrong because escaping with shell-specific characters is fragile and depends on correctly identifying every dangerous metacharacter for the target shell (bash, sh, cmd.exe, PowerShell), and mistakes lead to injection; it is a defense-in-depth measure, not the primary fix.

144
MCQmedium

You are designing an input validation strategy. Which technique provides the best defense against Cross-Site Scripting (XSS)?

A.Using a centralized regex filter to strip HTML tags.
B.Encrypting all user input before storing it in the database.
C.Performing context-aware output encoding at the presentation layer.
D.Implementing a strict allow-list for all input fields.
AnswerC

Context-aware output encoding neutralises injected markup at the exact point of rendering, matching each sink (HTML, attribute, JavaScript, URL). This defeats XSS regardless of how input bypassed earlier filtering, satisfying the presentation-layer defence the scenario requires.

Why this answer

Context-aware output encoding prevents browsers from interpreting user input as active content.

145
MCQeasy

During threat modeling, you are asked to classify data sensitivity. Which outcome is the primary goal of this activity?

A.To identify which security controls and protection levels are required for specific data assets.
B.To identify the database engine version.
C.To automate the backup frequency of the database.
D.To determine which data needs to be deleted periodically.
AnswerA

Classifying data sensitivity determines the protection level each asset warrants, driving selection of encryption, access control and handling requirements proportionate to impact. This satisfies the stem's goal of linking sensitivity classification to the controls and protection levels applied to specific data assets.

Why this answer

Data classification allows for the application of appropriate security controls based on the data's risk profile.

146
MCQmedium

An application requires multi-factor authentication (MFA) for administrative access. During requirements gathering, the security team determines that SMS-based MFA is insufficient for high-risk accounts. What documentation artifact should reflect this specific requirement?

A.Threat Intelligence Feed
B.Change Request Log
C.Security Requirements Traceability Matrix (SRTM)
D.Project Charter
AnswerC

The SRTM maps each security requirement to its design, code and test artefacts, so the SMS-MFA prohibition for high-risk accounts is recorded and verifiably traced. This satisfies the stem's documentation need, unlike a general security policy or design document that lacks traceability linkage.

Why this answer

The Security Requirements Traceability Matrix (SRTM) is the documentation artifact that maps each security requirement to its source, design, implementation, and test evidence. Since the security team has determined that SMS-based MFA is insufficient for high-risk administrative accounts, this specific requirement must be captured and traced through the SDLC. The SRTM ensures the requirement is not lost and can be verified during testing and audit.

Exam trap

CSSLP often tests the distinction between artifacts that capture requirements versus those that manage changes or provide threat data; candidates may incorrectly choose a Change Request Log because they confuse documenting a new requirement with managing a change to an existing baseline.

How to eliminate wrong answers

Option A is wrong because a Threat Intelligence Feed provides external threat data and does not document internal application requirements. Option B is wrong because a Change Request Log records changes to baselines, not the initial capture of security requirements. Option D is wrong because the Project Charter is a high-level document that authorizes the project and does not contain detailed security requirements like MFA strength.

147
MCQmedium

A healthcare SaaS provider is designing a multi-tenant web application where each hospital customer's data must remain logically isolated. The design team proposes using a single shared database schema with a tenant identifier column on every table, enforced by application-layer query filters. A security architect must evaluate this proposal. Which design concern is the MOST significant risk with this approach?

A.A tenant identifier column prevents the database from using indexes effectively, causing query performance to degrade until row-level security can be introduced.
B.A defect in any single query filter can expose one tenant's records to another tenant, because isolation depends entirely on application code being correct in every data access path.
C.Multi-tenant applications built on a single schema cannot meet HIPAA because the regulation explicitly requires physically separate databases for each covered entity.
D.Shared schemas cannot support per-tenant encryption keys, so data at rest would necessarily be stored in plaintext across all hospital customers.
AnswerB

With a shared schema and tenant column, isolation is enforced only by application-layer predicates. Any missed WHERE clause, ORM bypass, ad-hoc report query, or new developer mistake leaks cross-tenant data. There is no database-enforced boundary acting as a backstop, so a single coding error becomes a multi-tenant breach, which is precisely the systemic risk a security architect must flag in this design.

Why this answer

Application-enforced tenant filtering places the entire isolation guarantee inside code that changes constantly, so any missed predicate, raw SQL query, or new feature path can leak one hospital's records to another. Database-enforced controls such as row-level security or schema-per-tenant provide a backstop that survives application defects. The dominant design risk is therefore the absence of a defense-in-depth boundary, not encryption, performance, or a non-existent regulatory mandate.

Exam trap

The trap here is assuming that a tenant identifier column on every table is itself a security control, when it is only data — the actual enforcement lives in every query the application ever writes.

148
MCQmedium

Your organization is adopting the SLSA framework to improve supply chain security. You are evaluating a build system that claims to meet SLSA level 3. During an assessment, you find that the build system generates provenance but does not sign it, and the provenance is stored on the same server that performs builds. Which SLSA level requirement is most directly violated by this finding?

A.The build system must provide a software bill of materials (SBOM) for every artifact it produces.
B.All build steps must be defined in a human-readable configuration file that is version-controlled.
C.The build system must be hosted by a third-party cloud provider and not on-premises.
D.The provenance must be signed by the build system and stored in a tamper-resistant location separate from the build infrastructure.
AnswerD

SLSA level 3 requires that provenance be generated by a trusted build platform and that it be signed and stored in a way that prevents tampering by the build system itself. Storing unsigned provenance on the same server allows an attacker who compromises the build server to alter both the artifact and its provenance. This violates the core requirement for non-falsifiable provenance and isolation between the build and provenance storage.

Why this answer

SLSA level 3 requires that provenance be signed and stored in a tamper-resistant location isolated from the build infrastructure. This ensures that an attacker who compromises the build system cannot forge or alter provenance. The scenario describes unsigned provenance stored on the same server, which directly violates this requirement.

Other options refer to practices that are either not mandated by SLSA or are associated with lower levels.

Exam trap

The trap here is assuming that generating provenance is sufficient for SLSA level 3, when the level specifically requires that provenance be signed and stored in a tamper-resistant location separate from the build system.

149
MCQmedium

You are using 'in-toto' to secure your software supply chain. What is the primary purpose of a 'layout' file in this framework?

A.To encrypt the source code repository.
B.To generate the final SBOM document.
C.To list all CVEs found in the dependencies.
D.To define the supply chain steps, actors, and expected artifacts.
AnswerD

The layout file is the signed root of trust in in-toto; it specifies the ordered supply chain steps, the functionaries authorised to perform each, and the artefacts each step must produce. Verification then checks link metadata against these defined expectations.

Why this answer

The layout file specifies the authorized steps, the actors responsible for each step, and the expected artifacts, providing the policy for verifying the supply chain.

150
Multi-Selecteasy

Which TWO of the following actions support the 'Open Design' security principle?

Select 2 answers
A.Publishing the system architecture for security review.
B.Relying on standard, public cryptographic protocols like TLS.
C.Keeping the API endpoint documentation private.
D.Hiding the source code from all development team members.
E.Using a proprietary, secret encryption algorithm.
AnswersA, B

Open Design holds that security must not depend on secrecy of the design itself. Publishing the architecture invites independent scrutiny, allowing flaws to be identified and corrected rather than hidden, which strengthens assurance without relying on obscurity.

Why this answer

Option A is correct because the Open Design principle (Saltzer and Schroeder) holds that the security of a system should not depend on the secrecy of its design, so publishing the system architecture for security review allows scrutiny and verification by others without weakening security. Option B is correct because relying on standard, public cryptographic protocols like TLS embodies open design: the algorithms and protocols are openly specified and peer-reviewed, and security rests on the secrecy of keys rather than the obscurity of the mechanism. Option C does not belong because keeping API documentation private is a form of security through obscurity, which contradicts open design.

Option D does not belong because hiding source code from developers is secrecy-based and impedes review, the opposite of openness. Option E does not belong because a proprietary, secret encryption algorithm relies on obscurity of the algorithm rather than open, vetted standards, which violates the Open Design principle.

Page 1

Page 2 of 3

Page 3

All pages