Curated

Software Development Security (8.1–8.5)

0 votes

Questions53

  1. Question 1

    Software Development Security

    An auditor finds developers can push directly to the production branch and also edit the repository's commit history and log settings. Which finding about the change logs is MOST significant?

    Show the answer

    Correct answerC. Log integrity cannot be relied on because those who make changes can alter the records

    AWhy not this: A risk rating is useful but its absence does not undermine log integrity.

    BWhy not this: Nothing in the scenario concerns retention length, and extra retention is not the key weakness.

    CWhy this is right: Separation between change makers and log control is lost, so records may be altered and are untrustworthy.

    DWhy not this: Unit testing affects quality, not whether the change records can be trusted.

    Those who make changes must not be able to modify the records of those changes; otherwise the audit trail is not trustworthy and accountability is lost. Missing unit tests are a quality concern, not an audit log integrity issue.

    Open this question
  2. Question 2

    Software Development Security

    Which control best provides evidence that every production code change was approved and who deployed it?

    Show the answer

    Correct answerB. A change log tied to approved change tickets and deployment records

    AWhy not this: A yearly pen test checks exploitable weaknesses, not whether each change was authorized.

    BWhy this is right: Links each change to its approval and the deploying identity, giving an auditable trail.

    CWhy not this: SAST finds code flaws but records neither approval nor the deployer.

    DWhy not this: An SBOM lists components in a build but does not record approvals or deployers.

    A change log linked to approved tickets and deployment records gives traceable, accountable evidence of who changed what and under whose authorization. A static scan finds code weaknesses but does not show approval or who deployed.

    Open this question
  3. Question 3

    Software Development Security

    A security assessment finds an injection flaw in a legacy application that will be retired in six months. Fixing it costs far more than the expected loss during that period. Management asks what to do. What is the BEST course?

    Show the answer

    Correct answerB. Accept the risk formally, document it, and apply inexpensive compensating controls until retirement

    AWhy not this: Ignoring it means no documented decision or owner, which is not a valid risk treatment.

    BWhy this is right: Cost-justified, documented acceptance with low-cost compensating controls matches risk-based decisions.

    CWhy not this: Insurance alone leaves a known exploitable flaw with no treatment and does not remove the threat.

    DWhy not this: Immediate shutdown is disproportionate and ignores business needs when exposure is short.

    When mitigation cost exceeds expected loss and exposure is short, management should formally accept the risk, document it, and add cheap compensating controls such as a WAF rule. Ignoring the finding skips documentation and sign-off, so the risk is unmanaged.

    Open this question
  4. Question 4

    Software Development Security

    A team has a list of application vulnerabilities and must decide which to fix first with limited budget. Which approach is MOST appropriate?

    Show the answer

    Correct answerC. Rank them by likelihood and business impact, then fix the highest risks first

    AWhy not this: Discovery order has no relation to the risk each flaw poses.

    BWhy not this: A base score ignores asset value and context, so it is not a full risk measure.

    CWhy this is right: Prioritizing by likelihood and impact directs limited funds at the greatest risk.

    DWhy not this: Cost-first ordering may leave severe risks untreated while fixing trivial ones.

    Risk analysis combines likelihood with business impact so limited resources go to the greatest risks. A CVSS base score alone ignores the value of the affected asset and the environment, so it can misrank issues.

    Open this question
  5. Question 5

    Software Development Security

    A team is rewriting a network-facing packet parser written in C that has repeated buffer overflow and use-after-free flaws. It must keep native speed and avoid garbage-collection pauses. Which language choice best removes these flaw classes?

    Show the answer

    Correct answerB. Rust

    AWhy not this: Still an unsafe language; SAST finds some defects but does not eliminate the flaw classes.

    BWhy this is right: Ownership and borrow checking give compile-time memory safety with native speed and no garbage collector.

    CWhy not this: Memory safe, but it relies on a garbage collector, which the pause constraint rules out.

    DWhy not this: Memory safe through the JVM, but it relies on garbage collection and a managed runtime.

    Rust enforces memory safety at compile time through ownership and borrowing, so it removes overflow and use-after-free flaws without a garbage collector. Go and Java are memory safe but depend on garbage collection, which breaks the pause constraint.

    Open this question
  6. Question 6

    Software Development Security

    A build server fetched a public library with the same name as an internal one because the public version number was higher, and the build shipped it. Which control best prevents a recurrence while keeping public libraries usable?

    Show the answer

    Correct answerC. Restrict internal package names to the private repository and pin hashes

    AWhy not this: DAST tests runtime behavior late in the cycle and does not govern dependency resolution.

    BWhy not this: Version escalation is brittle; an attacker can publish an even higher version and win again.

    CWhy this is right: Namespace-bound resolution plus hash pinning stops a same-named public package from being substituted.

    DWhy not this: SAST analyzes your own source code and does not control which package the resolver downloads.

    This is dependency confusion. Resolving internal names only from the private repository, with pinned hashes, removes the ambiguity while public libraries still resolve normally. Raising version numbers is a fragile race that an attacker can win again.

    Open this question
  7. Question 7

    Software Development Security

    A loosely typed language silently converts a string to a number when an application compares password hashes, so different values compare as equal and authentication is bypassed. Which language property would most directly prevent this flaw class?

    Show the answer

    Correct answerD. Strong typing with no implicit type coercion

    AWhy not this: Garbage collection manages memory lifetime and has no effect on comparison semantics.

    BWhy not this: Bounds checking prevents out-of-range memory access, not type-juggling comparisons.

    CWhy not this: Compilation changes how code executes; a compiled language can still coerce types loosely.

    DWhy this is right: Without implicit coercion, mismatched types are rejected or must be converted explicitly, so the loose comparison cannot occur.

    Strong typing without implicit coercion forces explicit conversions, so a string cannot silently be treated as a number in a comparison. Bounds checking addresses memory errors, which are a different flaw class.

    Open this question
  8. Question 8

    Software Development Security

    A team downloads an open-source library for its build and must confirm it is the publisher's unaltered release. What should it do?

    Show the answer

    Correct answerA. Verify its signature or hash against the publisher's published value

    AWhy this is right: Comparing a signature or hash with the publisher's value proves the downloaded file is unmodified.

    BWhy not this: An unpinned latest tag accepts any new release, including a compromised one, with no integrity check.

    CWhy not this: Obfuscation hides code structure and says nothing about whether the library was altered.

    DWhy not this: DAST tests the running application's behavior and cannot prove a library's provenance.

    Checking the digital signature or hash against a value from the publisher confirms the library has not been tampered with. Using the latest tag does the opposite, since it accepts whatever is currently published without verification.

    Open this question
  9. Question 9

    Software Development Security

    A business-critical COTS ERP product reaches vendor end of support in 12 months. Replacement will take 24 months and no source code is available. What is the BEST way to manage the security risk?

    Show the answer

    Correct answerD. Negotiate extended support and add compensating controls until migration

    AWhy not this: Ignoring vulnerabilities on a critical system leaves unmanaged risk the business has not accepted.

    BWhy not this: Rushing in an unassessed product adds new unknown risk and ignores the migration plan.

    CWhy not this: Reverse engineering usually breaches the license and risks stability, and it is not a sound patching process.

    DWhy this is right: Extended support keeps patches flowing and compensating controls reduce exposure during the 24-month gap.

    The gap period needs continued vendor patches, or compensating controls such as isolation and monitoring, while the planned migration proceeds. Decompiling binaries is usually a license violation and cannot be done safely.

    Open this question
  10. Question 10

    Software Development Security

    Which four are security considerations when adopting an open source component? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Known vulnerabilities in the component's dependenciesB. License obligations of the componentC. Integrity and provenance of the downloaded packageD. Maintenance activity of the project

    AWhy this is right: Dependencies can carry known vulnerabilities that the application inherits.

    BWhy this is right: Licenses can impose obligations such as source disclosure that affect how the component may be used.

    CWhy this is right: Packages should be verified, for example by signature or hash, to avoid tampered or malicious copies.

    DWhy this is right: An abandoned project will not receive security fixes, which raises long-term risk.

    EWhy not this: Open source code is available to inspect, which is a feature rather than a limitation.

    FWhy not this: Open source normally comes without a vendor contract that assumes liability for defects.

    Open source adoption requires checking license terms, package integrity and origin, vulnerable dependencies, and whether the project is actively maintained. Source code is openly available for inspection, and there is usually no vendor contract assuming liability.

    Open this question
  11. Question 11

    Software Development Security

    A company plans to deploy a COTS application whose vendor will not share source code. Which action BEST gives assurance of the product's security before deployment?

    Show the answer

    Correct answerD. Run dynamic and vulnerability testing in an isolated environment

    AWhy not this: Marketing claims are unverified and are not an independent assessment.

    BWhy not this: Source code is not available for COTS, so a source review cannot be done.

    CWhy not this: Escrow protects against vendor failure or abandonment but gives no security assurance.

    DWhy this is right: Dynamic testing and scanning work without source code and reveal real weaknesses before production use.

    With COTS, source is usually unavailable, so black-box methods such as dynamic testing and vulnerability scanning in a test environment are the practical way to verify security. Escrow protects continuity if the vendor fails; it does not show that the product is secure.

    Open this question
  12. Question 12

    Software Development Security

    A pipeline must flag known vulnerabilities in the open source libraries an application bundles, including their transitive dependencies. Which tool category fits BEST?

    Show the answer

    Correct answerD. Software composition analysis

    AWhy not this: It looks for coding flaws in source and does not build a component inventory matched to known vulnerabilities.

    BWhy not this: It probes the running application for exploitable behavior and does not enumerate library dependencies.

    CWhy not this: It sends malformed input to find unknown crashes and does not check for known vulnerable components.

    DWhy this is right: It identifies bundled components and transitive dependencies and maps them to known CVEs and licenses.

    Software composition analysis inventories open source components and their dependencies and matches them to known vulnerabilities and license terms. Static testing examines the team's own code for flaws, not component inventories.

    Open this question
  13. Question 13

    Software Development Security

    A company contracts a third-party firm to build a custom payment module and wants assurance the delivered code has no backdoors. Which provision BEST provides it?

    Show the answer

    Correct answerA. Right to review source code and run security tests before acceptance

    AWhy this is right: It lets the buyer examine and test the actual deliverable for backdoors before accepting it.

    BWhy not this: Escrow secures access to code if the firm fails and does not verify the code's content.

    CWhy not this: SOC 2 covers the provider's controls over its services and does not validate this specific code.

    DWhy not this: An SLA covers availability and response, not the security of delivered code.

    Verifying the delivered code itself requires contractual rights to review and test it before acceptance. A SOC 2 report describes the firm's organizational controls, not whether this code is free of backdoors.

    Open this question
  14. Question 14

    Software Development Security

    A production application has run for two years. A routine scan finds a new vulnerability in a library it uses. What is the BEST action in the operation and maintenance phase?

    Show the answer

    Correct answerA. Assess the exposure and prioritize a patch through the maintenance process

    AWhy this is right: Risk-based assessment and prioritized patching is the ongoing vulnerability management this phase requires.

    BWhy not this: A full redesign is unnecessary for a library flaw; maintenance handles patching a component.

    CWhy not this: Leaving a known vulnerability exposed until a major release ignores the risk and delays remediation.

    DWhy not this: Immediate retirement is disproportionate; it ignores risk assessment and the business need.

    Operation and maintenance includes ongoing vulnerability management: assess risk to the live system, then prioritize and apply fixes through the maintenance process. Waiting for a major release leaves a known vulnerability exposed for an unjustified time.

    Open this question
  15. Question 15

    Software Development Security

    Twelve Agile teams ship weekly to one product. Security is checked only in a final manual penetration test, which delays releases and finds defects late. What should the security professional recommend?

    Show the answer

    Correct answerD. Automate security tests as gated stages in the CI/CD pipeline

    AWhy not this: Periodic external tests are infrequent and miss defects between tests, so they do not fix the delays.

    BWhy not this: A manual pre-release sprint still finds defects late and keeps the release bottleneck.

    CWhy not this: Waterfall would end weekly delivery, and a post-coding security phase is even later.

    DWhy this is right: Automated pipeline gates shift security left and give consistent, fast checks for every team.

    DevSecOps builds security into the pipeline with automated testing and gates, so defects surface early and every team is checked consistently without slowing weekly delivery. A hardening sprint still tests late and manually, so the delay and late discovery remain.

    Open this question
  16. Question 16

    Software Development Security

    A CMM appraisal rates a firm's engineering processes highly, yet a breach traced to weak secure design. What should it do to measure its security-specific software practices?

    Show the answer

    Correct answerB. Assess security practices with OWASP SAMM

    AWhy not this: A methodology change does not measure security practices, and documented reviews do not ensure secure design.

    BWhy this is right: SAMM scores security-specific practices, such as secure design, and supports an improvement roadmap.

    CWhy not this: This framework scales Agile delivery across teams; it does not measure how mature security practices are.

    DWhy not this: CMM measures general process maturity, so a higher level does not show security practices are in place.

    SAMM is built to assess software security practices across business functions such as governance, design and verification, and to guide a roadmap. A higher CMM level measures general process maturity and does not ensure secure design practices exist.

    Open this question
  17. Question 17

    Software Development Security

    A flight-control component has fixed, fully documented requirements. A regulator must approve each phase's deliverables before the next phase begins. Which development methodology fits BEST?

    Show the answer

    Correct answerC. Waterfall

    AWhy not this: Iterative delivery with changing requirements does not fit mandatory approval of each phase's deliverables.

    BWhy not this: It coordinates many Agile teams at scale, so it is built for iterative work, not phase approvals.

    CWhy this is right: Sequential phases with formal sign-off between them match fixed requirements and regulator approvals.

    DWhy not this: DevOps unifies development and operations for continuous delivery; it does not prescribe phase-gate approvals.

    Waterfall is sequential, with each phase completed and approved before the next starts, which suits fixed requirements and regulator sign-off. Agile is tempting, but its iterative delivery and evolving requirements do not fit phase-gate approvals.

    Open this question
  18. Question 18

    Software Development Security

    An assessor finds that a firm's software processes are documented and standardized across the whole organization, but it collects no quantitative process metrics. At which CMM level is the firm?

    Show the answer

    Correct answerB. Defined

    AWhy not this: This level has basic project-level discipline, not organization-wide standardized processes.

    BWhy this is right: Documented, organization-wide standard processes without quantitative measurement describe this level.

    CWhy not this: This level adds quantitative metrics and process control, which the firm lacks.

    DWhy not this: This level uses metrics for continuous improvement, well beyond this firm's state.

    Defined is the CMM level where processes are documented, standardized and tailored organization-wide. Managed would require quantitative measurement and control of those processes, which this firm does not yet have.

    Open this question
  19. Question 19

    Software Development Security

    An authenticated customer changes the account ID in a REST API request URL and receives another customer's records. Which control BEST prevents this?

    Show the answer

    Correct answerA. Server-side object-level authorization checks on every request

    AWhy this is right: Checking the caller's rights to each requested object stops ID tampering, even for authenticated users.

    BWhy not this: Rate limiting slows abuse and enumeration volume but does not block access to a single other customer's record.

    CWhy not this: Schema validation confirms the ID is well formed, but a well-formed ID for another customer still passes.

    DWhy not this: TLS protects data in transit; the attacker is a legitimate session receiving the data over that same channel.

    This is broken object-level authorization: the API trusts the client-supplied ID. The server must verify that the caller owns or may access each requested object. TLS protects traffic in transit but does not stop an authenticated user requesting someone else's object.

    Open this question
  20. Question 20

    Software Development Security

    A company exposes a REST API to external partners and wants to reduce the risk of abuse, excessive data access and injection through the API. Which controls should it apply? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Validate requests against the API specification and reject unexpected fieldsD. Enforce rate limits and quotas for each client at the API gatewayE. Issue OAuth 2.0 access tokens with narrowly scoped permissions per partner

    AWhy this is right: Rejecting requests that deviate from the specification blocks injection payloads and mass-assignment of unexpected fields.

    BWhy not this: A shared embedded key is easily extracted, cannot distinguish partners and cannot be revoked for just one.

    CWhy not this: Detailed stack traces leak internal structure and code paths that help attackers craft injection and abuse.

    DWhy this is right: Per-client limits and quotas restrict automated abuse, scraping and denial-of-service attempts.

    EWhy this is right: Scoped tokens enforce least privilege and let each partner's access be limited and revoked individually.

    Scoped tokens limit what each partner can access, gateway quotas curb abuse, and specification-based validation blocks malformed or injected input. A shared static key cannot identify or revoke individual partners and is easily extracted from the SDK. Detailed stack traces in errors leak internals that help attackers.

    Open this question
  21. Question 21

    Software Development Security

    A function computes a buffer size by multiplying an attacker-supplied record count by the record size. The product wraps to a small value, and the copy loop then writes every record into the undersized buffer. What is the root cause of the undersized allocation?

    Show the answer

    Correct answerD. Integer overflow

    AWhy not this: The overflowing write is the result of the undersized buffer, not what caused the buffer to be too small.

    BWhy not this: Use-after-free involves accessing memory after it has been released, which does not happen here.

    CWhy not this: Format string flaws arise when untrusted input is used as a format specifier, which is not involved.

    DWhy this is right: The arithmetic wraps past the integer's maximum, producing a small size that the copy loop then exceeds.

    The multiplication exceeds the integer's range and wraps, so the allocation is too small. This integer overflow enables the later heap overflow. The heap overflow is the consequence of the undersized allocation, not the cause.

    Open this question
  22. Question 22

    Software Development Security

    A service verifies that a user may read a file, then opens it a few milliseconds later. An attacker replaces the file in that gap and reads another user's data. Which source-code weakness is this?

    Show the answer

    Correct answerA. TOCTOU race condition

    AWhy this is right: The permission check and the file open are separate steps, and the attacker changes the file between them.

    BWhy not this: Path traversal manipulates path input such as ../ sequences; here the exploit depends on timing, not path content.

    CWhy not this: Error handling flaws leak information or fail unsafely; nothing in the scenario involves error output.

    DWhy not this: Buffer overflows come from writing past a memory boundary, not from a gap between a check and its use.

    A time-of-check to time-of-use race condition exists when the state verified by a check can change before the resource is used. The attacker exploits the gap, not the file path string, so path traversal does not fit.

    Open this question
  23. Question 23

    Software Development Security

    A program uses an IPT, but its security reviews happen only at a final gate and every finding causes costly rework. What is the best change?

    Show the answer

    Correct answerC. Make a security representative a full IPT member from requirements onward.

    AWhy not this: A second late gate still finds defects after design and code are done, so rework continues.

    BWhy not this: The change board authorizes changes after the fact and does not shape design decisions.

    CWhy this is right: Early full membership puts security into requirements and design decisions with shared accountability.

    DWhy not this: A maturity assessment measures practices but does not itself bring security into daily decisions.

    An IPT works when every needed discipline is a full member from the start, so a security representative sharing accountability finds issues while they are cheap to fix. Another final gate is tempting, but it still detects problems late.

    Open this question
  24. Question 24

    Software Development Security

    Which best describes an Integrated Product Team (IPT) in software development?

    Show the answer

    Correct answerC. A multidisciplinary team with shared responsibility for a product across its life cycle

    AWhy not this: Scoring against maturity levels is a maturity assessment, not a product team.

    BWhy not this: Approving or rejecting changes is the role of a change board, not an IPT.

    CWhy this is right: An IPT combines disciplines under shared product accountability from start to retirement.

    DWhy not this: Sharing an automated pipeline between development and operations describes DevOps, not an IPT.

    An IPT brings together members from disciplines such as development, testing, security, operations and the customer to share responsibility for a product throughout its life cycle. A change board is tempting, but it only authorizes changes and does not own the product.

    Open this question
  25. Question 25

    Software Development Security

    A production outage needs an immediate code fix, and the change advisory board cannot convene for several hours. What should the team do?

    Show the answer

    Correct answerA. Use the emergency change procedure with expedited approval and later review.

    AWhy this is right: An emergency procedure keeps authorization and records while allowing a fast fix.

    BWhy not this: Standard changes are low-risk and routine; relabeling a new fix to avoid review is misuse of the category.

    CWhy not this: Waiting for the full board ignores the emergency path and prolongs the outage unnecessarily.

    DWhy not this: Unauthorized deployment bypasses approval and risks an undocumented, unreviewed change.

    Change management provides an emergency change path: expedited approval by a designated authority, then documentation and post-implementation review. Letting the developer deploy alone is tempting under time pressure, but it removes authorization and leaves the baseline unmanaged.

    Open this question
  26. Question 26

    Software Development Security

    A critical vulnerability is disclosed in a third-party library used by a production application that is in the operations and maintenance phase. Which actions are the most appropriate response? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Increase monitoring for exploit attempts against the affected component until it is patched.E. Test the vendor patch in a staging environment that mirrors production before release.F. Identify affected systems from the software inventory and rank remediation by business risk.

    AWhy this is right: Added monitoring is a compensating control that reduces exposure while the patch is pending.

    BWhy not this: SAMM measures program maturity over time; it does not drive urgent remediation of a live vulnerability.

    CWhy not this: A full redesign is disproportionate; maintenance responds with a patch, upgrade or component replacement.

    DWhy not this: Even urgent fixes need expedited approval and testing; bypassing control risks outages and an unmanaged baseline.

    EWhy this is right: Staging and regression testing before release protects availability and the approved baseline.

    FWhy this is right: Inventory-driven risk ranking is core vulnerability management during operations.

    Operations and maintenance covers vulnerability management, tested patching and ongoing monitoring, so inventory-based risk ranking, staging tests and added monitoring all fit. Waiting for a SAMM assessment is tempting, but maturity models measure program practices and do not govern urgent remediation of a live flaw.

    Open this question
  27. Question 27

    Software Development Security

    Which practice requires that modifications to a production system be reviewed, approved and documented before implementation?

    Show the answer

    Correct answerD. Change management

    AWhy not this: It is a multidisciplinary team responsible for a product, not an approval process for changes.

    BWhy not this: It rates how mature and repeatable processes are; it does not approve individual changes.

    CWhy not this: It scales Agile across large organizations and is not a control over production changes.

    DWhy this is right: It governs requests, review, approval and documentation of changes before they reach production.

    Change management controls modifications by requiring request, assessment, approval, testing and documentation before implementation. The Capability Maturity Model is tempting because it concerns process discipline, but it rates process maturity rather than approving individual changes.

    Open this question
  28. Question 28

    Software Development Security

    A company must run a legacy application that needs a specific OS version and a custom host-based security agent. It wants the provider to handle hardware and virtualization. Which choice BEST fits, and what security burden remains?

    Show the answer

    Correct answerA. IaaS, with the company hardening and patching the guest OS

    AWhy this is right: IaaS exposes the guest OS, allowing the agent, and leaves OS patching and hardening to the customer.

    BWhy not this: PaaS hides the OS from the customer, so a specific OS version and host agent cannot be installed.

    CWhy not this: SaaS gives no control over the OS or host agents; the customer only configures the service.

    DWhy not this: In PaaS the provider manages the OS but does not allow customer agents or chosen OS versions.

    Only IaaS gives control of the guest OS, so the specific OS version and custom agent can be installed, and the company must then harden and patch that OS. PaaS and SaaS abstract the OS away, so the required agent could not be installed.

    Open this question
  29. Question 29

    Software Development Security

    A third-party vendor delivers monthly patches for software that runs on production servers. Which control BEST reduces the risk that a tampered update reaches production?

    Show the answer

    Correct answerB. Verify the vendor's digital signature and published hash before staging

    AWhy not this: Software composition analysis lists known-vulnerable components; it cannot show that a package was altered.

    BWhy this is right: Signature and hash checks prove the update's origin and integrity before it is installed.

    CWhy not this: Skipping staging and validation removes the checks that would catch a tampered or faulty update.

    DWhy not this: An annual report describes vendor controls over time but does not validate each delivered update.

    Checking the digital signature and hash confirms the update came from the vendor and was not altered in transit or at the source of distribution. Software composition analysis finds known vulnerable components, not tampering, so it does not address this risk.

    Open this question
  30. Question 30

    Software Development Security

    Under the shared responsibility model, which task stays with a customer that adopts a SaaS CRM?

    Show the answer

    Correct answerB. Managing user access and data classification

    AWhy not this: The provider manages the operating system underneath a SaaS application.

    BWhy this is right: Access and data governance remain with the customer in every cloud service model.

    CWhy not this: The SaaS provider owns and patches the application code, not the customer.

    DWhy not this: The provider secures virtualization in all service models.

    In SaaS the provider runs the application, operating system and infrastructure. The customer still controls who can access the service and how its data is classified and protected. Patching the application is a provider duty in SaaS.

    Open this question
  31. Question 31

    Software Development Security

    A vendor administers the company's on-premises enterprise application remotely under a managed service contract. Which control BEST limits the risk from the vendor's administrators?

    Show the answer

    Correct answerA. Time-limited privileged access through a monitored jump host with session recording

    AWhy this is right: It limits when vendor admins can act and records what they do inside the environment.

    BWhy not this: Escrow addresses vendor failure and continuity, not misuse of admin privileges.

    CWhy not this: Software composition analysis finds vulnerable components, not risky administrator activity.

    DWhy not this: A web interface test does not constrain or audit the vendor's administrative access.

    The main risk of a managed service is the provider's privileged access into the company's environment. Time-limited, monitored and recorded access constrains and audits it. A web penetration test examines the application interface, not what administrators can do.

    Open this question
  32. Question 32

    Software Development Security

    A managed service provider runs a company's enterprise HR application. Its SOC 2 Type II report carves out the subservice organization that hosts the data. What should the security team do to BEST manage this gap?

    Show the answer

    Correct answerA. Obtain the hosting provider's own assurance report and require contractual flow-down of security terms

    AWhy this is right: It supplies evidence for the carved-out layer and binds the subcontractor to the company's requirements.

    BWhy not this: Escrow protects against vendor failure, not against unassessed controls at the hosting layer.

    CWhy not this: Contractual accountability does not provide any evidence that the hosting controls actually work.

    DWhy not this: Scanning a third party's environment without authorization is improper and may breach contracts or law.

    The carved-out hosting layer holds the data, so the company needs evidence of its controls and contract terms that bind it to the same requirements. Accepting the report as is leaves the data-hosting controls unassessed, even though accountability stays with the provider.

    Open this question
  33. Question 33

    Software Development Security

    A code review finds the repository source clean, yet the shipped binary contains a function that appears nowhere in the source. Which control best addresses the most likely cause?

    Show the answer

    Correct answerB. Build only with integrity-verified, approved compilers and tools

    AWhy not this: Dynamic scanning tests runtime behavior and will not reliably expose a compiler-inserted backdoor or trace it to its cause.

    BWhy this is right: Verified, approved compilers and build tools stop a tampered toolchain from inserting code that is absent from the source.

    CWhy not this: Composition analysis checks third-party libraries, not the compiler or build tools that produced the binary.

    DWhy not this: Source analysis inspects code that is already clean; the extra function is added after the source is read.

    Code in the binary but not in the source points to a tampered compiler or build tool. Building only with verified, approved tools protects the toolchain. SAST on source cannot find it, because the malicious code is added during the build.

    Open this question
  34. Question 34

    Software Development Security

    A vendor-supplied web application in production has an SQL injection flaw the vendor will not fix for months, and no source is available. Which control best blocks exploitation from inside the running application?

    Show the answer

    Correct answerA. A RASP agent instrumented in the application runtime

    AWhy this is right: A RASP agent sees queries as the application executes them and can block injection in production without source changes.

    BWhy not this: IAST instruments an application during testing to find flaws; it is not the production blocking control asked for.

    CWhy not this: SAST needs source code, which is unavailable, and it only finds flaws; it does not block attacks in production.

    DWhy not this: A perimeter WAF sits outside the application and lacks visibility into its internal calls, so it is not protection from inside the runtime.

    Runtime application self-protection runs inside the application's runtime, sees its internal calls and can block the malicious query without source or code changes. IAST also instruments the app but runs in testing and reports rather than protects.

    Open this question
  35. Question 35

    Software Development Security

    A pipeline already runs SAST on every merge request, but developers still learn of flaws only after committing. Which addition gives feedback earliest?

    Show the answer

    Correct answerB. A security plugin in the developers' IDE

    AWhy not this: IAST needs the application running under test, so findings arrive well after commit.

    BWhy this is right: An IDE plugin flags insecure patterns while the developer types, before commit, which is the earliest feedback.

    CWhy not this: Composition analysis checks third-party components in the build, not insecure patterns in the developers' own code.

    DWhy not this: DAST needs a running application in staging, so it reports long after code is written and committed.

    An IDE security plugin analyzes code as it is written, so flaws appear before commit. The other options run later in the lifecycle or test a different thing, such as running behavior or libraries.

    Open this question
  36. Question 36

    Software Development Security

    Which two actions help secure the tools developers use to build software? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Pin tools to approved, tested versionsF. Patch tools promptly when vendors release security fixes

    AWhy this is right: Pinning to approved, tested versions keeps the toolchain known, consistent and controlled.

    BWhy not this: Uncontrolled compiler versions give inconsistent builds and let unvetted or vulnerable tools into the toolchain.

    CWhy not this: Turning off signature checks lets tampered tool updates install without detection.

    DWhy not this: A shared administrator account removes accountability and gives any compromised tool excessive privilege.

    EWhy not this: Unvetted mirrors can serve altered tools; sources should be trusted and verified, not chosen for speed.

    FWhy this is right: Prompt patching removes known vulnerabilities in the tools that touch source code and build output.

    Tool sets are part of the attack surface, so they are kept patched and held to approved, tested versions. Letting developers pick their own versions or sources introduces unvetted, inconsistent tools.

    Open this question
  37. Question 37

    Software Development Security

    Developers install community extensions into their IDE, and one could read credentials or alter source code. Which control best reduces this risk?

    Show the answer

    Correct answerA. Permit only vetted extensions from an approved source

    AWhy this is right: Vetting extensions and allowing only approved sources limits untrusted code running with developer privileges.

    BWhy not this: DAST tests the running application and cannot see what an extension does on a developer's workstation.

    CWhy not this: Pinning library versions controls dependencies, not extensions installed in the development environment.

    DWhy not this: Merge request review examines committed code; an extension can steal credentials without changing any reviewed code.

    An IDE extension runs with the developer's privileges, so only vetted extensions from an approved source should be allowed. Peer review checks committed code, not what an extension does on the workstation.

    Open this question
  38. Question 38

    Software Development Security

    Which secure coding practice keeps user-supplied input from being interpreted as SQL commands?

    Show the answer

    Correct answerD. Parameterized queries

    AWhy not this: Obfuscation makes code harder to read but does not stop injected input from being executed.

    BWhy not this: Timeouts limit how long a session stays valid and do not affect query construction.

    CWhy not this: Hashing protects stored credentials and has no effect on how input reaches the database.

    DWhy this is right: The query structure is fixed and values are bound separately, so input cannot change the SQL logic.

    Parameterized queries send the SQL structure and the user values separately, so input is always handled as data. Hashing protects stored passwords but does not affect how queries are parsed.

    Open this question
  39. Question 39

    Software Development Security

    A regulated firm runs containers on Kubernetes. Auditors require that only approved images run, service-to-service traffic is limited by identity, and every policy change is reviewable and reversible. Which design BEST meets all three?

    Show the answer

    Correct answerD. Version-controlled policy as code enforced by admission control and identity-based network policy

    AWhy not this: A WAF filters inbound web requests only, and an annual test does not enforce ongoing policy.

    BWhy not this: Per-developer host configuration is inconsistent, unenforced and not reviewable in a controlled way.

    CWhy not this: An edge firewall does not see east-west traffic or control image admission, and tickets are not easily reversible.

    DWhy this is right: It covers image approval, identity-based traffic limits and an auditable, revertible change history.

    Policy as code in version control gives reviewable, reversible changes, and admission control and network policy enforce image and identity rules automatically in the cluster. An edge firewall cannot see east-west traffic or control which images run.

    Open this question
  40. Question 40

    Software Development Security

    What is the defining characteristic of software-defined security?

    Show the answer

    Correct answerD. Controls are abstracted from hardware and managed centrally through software policy and automation

    AWhy not this: Cloud shared responsibility keeps customer duties in place, and it does not describe software-defined control.

    BWhy not this: This keeps controls tied to hardware appliances, which is the model software-defined security moves away from.

    CWhy not this: Code review finds source-level weaknesses and is a secure coding practice, not a software-defined control model.

    DWhy this is right: Policy is defined in software, applied centrally and automated, independent of specific hardware devices.

    Software-defined security separates control logic from the underlying hardware, so policies are defined, deployed and enforced through software and APIs. Code review is a secure coding practice and does not abstract controls from infrastructure.

    Open this question
  41. Question 41

    Software Development Security

    A web application stores user comments and shows them to other users, and stored scripts now run in readers' browsers. Input is already checked for type and length. Which practice BEST addresses the root cause?

    Show the answer

    Correct answerB. Context-sensitive output encoding when rendering comments

    AWhy not this: Encryption at rest protects stored data from disclosure, but the app decrypts and renders the script anyway.

    BWhy this is right: Encoding on output makes the browser treat stored comment text as data, not executable script, which removes the cause.

    CWhy not this: Rate limiting slows abuse of the endpoint but does not change how stored content is rendered.

    DWhy not this: Shorter limits do not stop injection, because a short script tag still fits and runs.

    The script runs because stored data is written into the page as markup. Encoding output for its HTML context makes the browser treat it as text. Length limits only restrict size, and a short script payload still runs.

    Open this question
  42. Question 42

    Software Development Security

    Workloads are rescheduled across hosts and their IP addresses change, so IP-based firewall rules leave gaps. Which software-defined security approach BEST closes them?

    Show the answer

    Correct answerB. Microsegmentation rules bound to workload tags, enforced by a distributed controller

    AWhy not this: API input validation protects the scheduler from malformed requests and does not enforce workload traffic rules.

    BWhy this is right: Policy follows the workload's identity or tags and is enforced wherever it runs, so IP changes do not break it.

    CWhy not this: Scanning finds vulnerabilities but does not enforce traffic policy for moving workloads.

    DWhy not this: Broader static ranges still depend on addresses and permit more traffic than intended.

    Microsegmentation ties policy to workload identity or tags, and a controller pushes enforcement to wherever the workload runs, so address changes do not matter. Wider IP ranges loosen the policy and still depend on addresses.

    Open this question
  43. Question 43

    Software Development Security

    A production Java application must detect and block injection attempts as they execute, using instrumentation inside its runtime and without source code changes. Which control fits?

    Show the answer

    Correct answerB. Runtime application self-protection (RASP)

    AWhy not this: SAST analyzes source code before execution, so it cannot observe or block attacks in a running application.

    BWhy this is right: RASP runs inside the production runtime, sees requests in context and can block attacks without code changes.

    CWhy not this: SCA inventories third-party components and known vulnerabilities; it does not monitor or block runtime behavior.

    DWhy not this: IAST uses runtime instrumentation too, but it reports flaws during testing rather than blocking live attacks.

    RASP instruments the application's runtime in production and can block malicious requests as they execute. IAST also instruments the runtime, but it is a testing technique that reports findings during test runs and is not meant to block attacks in production.

    Open this question
  44. Question 44

    Software Development Security

    An emergency hotfix applied directly to production servers was overwritten by the next scheduled release, reintroducing the vulnerability. Which practice BEST prevents this?

    Show the answer

    Correct answerD. Formal change control that records hotfixes and merges them back into the baseline

    AWhy not this: SCA checks third-party components, not whether a local hotfix was captured in the baseline.

    BWhy not this: IAST in staging tests behavior but does nothing to track or merge out-of-band production changes.

    CWhy not this: DAST detects the regression after release but does not stop untracked changes from being lost.

    DWhy this is right: Change control with baseline updates keeps the release source consistent with what runs in production.

    Configuration management uses change control and baselines so every change, including emergency fixes, is recorded and incorporated into the authoritative configuration used for releases. Scanning more often only detects the reintroduced flaw after the fact and does not keep the baseline consistent.

    Open this question
  45. Question 45

    Software Development Security

    Cloud credentials are hardcoded in the build scripts of a CI/CD pipeline and stored in the repository. What is the BEST fix?

    Show the answer

    Correct answerD. Store credentials in a secrets manager and inject them into the pipeline at run time

    AWhy not this: DAST tests the running application's behavior; it does not remove credentials from pipeline scripts.

    BWhy not this: Local IDE settings spread secrets across workstations and make the pipeline unreproducible, not more secure.

    CWhy not this: Encryption at rest does not hide the secrets from authorized users, clones or history, so exposure remains.

    DWhy this is right: Secrets management removes credentials from code and injects them at run time, with access control and rotation.

    A secrets manager keeps credentials out of code and scripts, supplies them to the pipeline only at run time, and allows rotation and access control. Encrypting the repository at rest does not protect the secrets from anyone with repository access or from copies in history.

    Open this question
  46. Question 46

    Software Development Security

    Production deployments must be automated, yet only artifacts built by the pipeline from reviewed code may run, and no single developer may push unreviewed changes. Which design BEST meets this?

    Show the answer

    Correct answerB. Require reviewed merges to a protected branch, sign artifacts in the pipeline, and verify the signature at deployment

    AWhy not this: Workstation deployments bypass the pipeline and rely on a local scan the developer controls.

    BWhy this is right: Review gates, pipeline signing and deploy-time verification enforce both reviewed code and trusted build origin.

    CWhy not this: Signed commits prove authorship but do not verify that deployed artifacts came from the trusted pipeline.

    DWhy not this: Weekly DAST on production is detective and late; it does not control what gets deployed.

    Protected branches with mandatory review enforce separation of duties, and pipeline-signed artifacts verified at deployment prove provenance. Signed commits alone show who wrote code but do not stop an unauthorized agent from publishing an artifact that was never built from reviewed code.

    Open this question
  47. Question 47

    Software Development Security

    Which testing technique probes a running application from the outside with crafted requests, without access to its source code?

    Show the answer

    Correct answerB. Dynamic application security testing (DAST)

    AWhy not this: Composition analysis inventories third-party components and matches them to known vulnerabilities.

    BWhy this is right: DAST attacks the running application from outside as a black box, needing no source code.

    CWhy not this: Interactive testing relies on an agent inside the running application, not purely external requests.

    DWhy not this: Static testing reads source code or binaries without running the application.

    DAST is black-box testing of a running application: it sends crafted requests and examines responses without needing source code. SAST is the opposite, analyzing source code without executing the application.

    Open this question
  48. Question 48

    Software Development Security

    During QA functional testing, a team wants findings that pinpoint the vulnerable line of code, produced by an agent inside the running application observing normal test traffic. Which technique fits?

    Show the answer

    Correct answerA. Interactive application security testing (IAST)

    AWhy this is right: An in-application agent observing test traffic and locating vulnerable code is how IAST works.

    BWhy not this: Static analysis examines code without running the application, so it does not observe test traffic.

    CWhy not this: Dynamic testing sends attack traffic from outside and does not report vulnerable code lines.

    DWhy not this: Composition analysis identifies known-vulnerable third-party components, not flaws in custom code paths.

    IAST instruments the running application and watches execution during functional tests, so it links findings to specific code lines without separate attack traffic. DAST also tests a running application but works from outside and cannot point to code lines.

    Open this question
  49. Question 49

    Software Development Security

    An API key was committed to a shared repository months ago and removed in a later commit; many contractors have cloned it since. Which two actions best address the exposure and prevent a repeat? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Revoke the exposed key and issue a new oneD. Block commits containing secrets with pre-receive hooks

    AWhy not this: Visibility changes do not retrieve copies already cloned by contractors.

    BWhy not this: Dynamic scans test running behavior and do not find or remove credentials in repository history.

    CWhy this is right: A key that was ever exposed must be treated as compromised; revocation removes its value to anyone who copied it.

    DWhy this is right: Pre-receive hooks reject pushes containing secrets, preventing a recurrence at the repository.

    EWhy not this: The key stays in commit history and in existing clones, so deleting it from the file fixes nothing.

    FWhy not this: Composition analysis checks third-party components for known flaws, not committed credentials.

    The key must be treated as compromised, so revoking and replacing it ends its usefulness, and server-side secret scanning blocks future leaks. Deleting it from the current file leaves it in history and in existing clones.

    Open this question
  50. Question 50

    Software Development Security

    Production servers run settings that differ from the approved release, and no one can say who changed them or when. Which control best restores integrity and accountability?

    Show the answer

    Correct answerD. Enforce an approved baseline with change control and drift detection

    AWhy not this: Dynamic scans probe the running application for flaws; they do not attribute configuration changes.

    BWhy not this: Composition analysis lists known-vulnerable components; it does not track who changed server settings.

    CWhy not this: Commit signing proves who authored code, but it does not control or record changes made on production systems.

    DWhy this is right: A baseline, change control and drift detection show what changed, who changed it and whether it was approved.

    Configuration management defines an approved baseline, routes changes through change control and detects drift from it, giving traceability. Signed commits only authenticate code authors and do not govern settings changed on production servers.

    Open this question