Quibank app: now on the App Store — free, works offline. Get the app ↗

27 Prioritization, Mitigation & Controls Practice Questions & Answers

Every Prioritization, Mitigation & Controls practice question from the CompTIA CySA+ Practice Test, with the correct answer and a short explanation.

Start practice test →
  1. 1. A weekly scan returns two findings. Finding A is rated critical and sits on a lab server in an isolated segment with no inbound or outbound routing, used only for driver testing. Finding B is rated medium, affects the public web application that fronts the customer payment flow, and working exploit code for it is circulating publicly. Which finding is worked FIRST, and on what basis?

    • A.Finding A first: an isolated laboratory host is where unpatched software is most often attacked from inside.
    • B.Finding A first: a critical rating outranks a medium rating, so it is remediated ahead of other items.
    • C.Finding B first: it is reachable from the internet, exploit code exists, and payment data sits behind it.✓ Answer
    • D.Finding B first: medium items patch faster, so clearing them keeps the open-finding count falling.

    A severity rating describes how bad a flaw would be if it were exploited; it says nothing about whether anyone can reach it. Priority comes from reachability, evidence of exploitation and what the asset protects, so a medium finding on an internet-facing payment front end with public exploit code outranks a critical finding on a host that has no route in or out.

    Ref QB-2JWNXRSource: CompTIA CySA+ CS0-004, Objective 2.3 — Prioritize and mitigate vulnerabilities (context awareness: internal, external, isolated)Report a problem with this question

  2. 2. Two findings sit on internet-facing hosts and carry similar severity ratings. For the first, a national cyber-defense authority lists the underlying flaw in its catalog of flaws confirmed to be exploited in ongoing attacks. For the second, no exploitation has been observed anywhere and only a theoretical write-up exists. What does that difference do to the order of work?

    • A.It lowers both findings, because a documented exploit means the detection tooling in place already blocks that attack path.
    • B.It changes nothing at all, because the order of remediation is set by the severity rating each finding already carries.
    • C.It moves the confirmed-exploited finding to the front, because in-the-wild attacks make compromise a present event.✓ Answer
    • D.It moves the theoretical finding ahead, because an unstudied flaw carries more unknown risk than one attackers already use.

    Severity answers how bad the outcome would be; exploitation evidence answers how likely the outcome is right now. A flaw confirmed to be under active exploitation on a reachable host is being attacked today, so it is sequenced ahead of a similarly rated flaw that nobody has weaponized, and the existence of a public exploit never implies that detection already blocks it.

    Ref QB-J24UHSSource: CompTIA CySA+ CS0-004, Objective 2.3 — scoring methods and context awareness; CISA Known Exploited Vulnerabilities catalogue (confirmed active exploitation)Report a problem with this question

  3. 3. Two findings carry the same severity rating on the same product. The first affects a management interface that listens only on a management VLAN reachable from two jump hosts, both requiring MFA, and the vendor patch is scheduled for the next maintenance window. The second affects that product's public API endpoint, with nothing restricting access to it. Which is worked FIRST, and how is the other one handled?

    • A.The public API endpoint first; the management interface keeps its documented access restriction until the window.✓ Answer
    • B.The management interface first; insiders abuse internal management paths more often than outsiders abuse public ones.
    • C.Both inside one emergency change; findings sharing a rating must be remediated together to keep counts aligned.
    • D.The public API endpoint first; the management interface finding can be closed now because access is already restricted.

    Identical ratings are separated by the access path an attacker would have to use. An unrestricted public endpoint is reachable by anyone, while a management interface sitting behind a segmented VLAN and MFA-protected jump hosts already has a compensating restriction in front of it. That restriction lowers urgency and justifies waiting for the window, but it does not remove the defect, so the second finding stays open until the patch is applied and verified.

    Ref QB-3J9Z4TSource: CompTIA CySA+ CS0-004, Objective 2.3 — context awareness and compensating controlsReport a problem with this question

  4. 4. A scanner reports a high-severity flaw in a library bundled with a batch processing server. Developers confirm the vulnerable function is never called by the deployed code path, the library is present only as a transitive dependency, and no listener uses it. The same library is loaded and exposed by a customer-facing service owned by the same team. How should the two be sequenced?

    • A.Close the batch server finding as a false positive, because an unreachable function is not a real vulnerability at all.
    • B.Fix the batch server first, because a bundled library keeps spreading to more hosts as the product is deployed further.
    • C.Fix both in one emergency change, because a shared component means the exposure is identical on every host.
    • D.Fix the customer-facing service first and keep the batch server tracked as not currently reachable, with review.✓ Answer

    Reachability, not the presence of vulnerable bytes, drives the order: the exposed service can actually be driven into the vulnerable code, so it goes first. The batch server is still genuinely vulnerable code on disk and one refactor could make it reachable, so it is a risk-based deferral with a review date, not a false positive.

    Ref QB-F22UZNSource: CompTIA CySA+ CS0-004, Objective 2.3 — prioritization by context awareness and exploitability, not by rating aloneReport a problem with this question

  5. 5. A legacy scheduling appliance carries an unpatchable finding: the vendor has ended support and the replacement project completes next year. The business cannot take the appliance out of service. Which handling is correct?

    • A.Restrict its reachability with tight ACLs, then record a time-boxed exception with a named owner and review date.✓ Answer
    • B.Record the finding as a false positive because no vendor patch exists, and drop the host from recurring scan scope.
    • C.Leave it open and untouched in the queue, because only a vendor patch can change the status of a scanner finding.
    • D.Accept the risk at analyst level and note in the ticket that no remediation path is available for the appliance.

    When no patch will ever arrive, the defensible path is to shrink the attack surface with a compensating control and then move the residual risk into a documented exception that a risk owner accepts for a limited time. Suppressing the finding or accepting it silently at analyst level removes the visibility and the accountability that make the deferral legitimate.

    Ref QB-YH7ZKPSource: CompTIA CySA+ CS0-004, Objective 2.3 — mitigation strategies: compensating controls and exceptionsReport a problem with this question

  6. 6. A web application flaw cannot be patched for six weeks, so the team writes a blocking rule on the filtering layer in front of the application and confirms the rule stops the known attack request. The vulnerability manager asks what has actually changed. Which statement is accurate?

    • A.The finding may now be closed, because the tested attack request no longer reaches the application server at all.
    • B.The known exploit path is blocked, but the defect remains in the code, so the finding and the patch both stay open.✓ Answer
    • C.The severity rating must be lowered permanently in the register, since the flaw can no longer be exploited today.
    • D.The flaw counts as fully remediated, so the patch can be dropped from the release plan for that application.

    A compensating control buys time by blocking a known path; it does not repair the vulnerable code, and an attacker who finds a request shape the rule does not match is back at the original defect. The finding therefore stays open with the control documented, and it closes only when the patch is applied and re-verified.

    Ref QB-G2D67QSource: CompTIA CySA+ CS0-004, Objective 2.3 — compensating controls versus remediation; validating remediationReport a problem with this question

  7. 7. A finding concerns an optional file-preview feature in an internal document service. No business process uses the feature, the vendor's fix is two releases away, and switching the feature off is a supported configuration change. What is the appropriate action?

    • A.Take the whole document service out of production until the vendor ships a fix for the preview feature.
    • B.Wait for the vendor fix, because a configuration change never counts as remediation of a scanner finding.
    • C.Switch the unused feature off now as a configuration change, and patch when that release lands.✓ Answer
    • D.Request a permanent risk acceptance, because a feature that nobody uses cannot be reached by an attacker.

    Removing the vulnerable functionality is a legitimate remediation path, not a workaround: if the feature is not running, the code cannot be invoked, and the change is reversible and supported. Patching still follows for completeness, while an enabled-but-unused feature remains exploitable and cannot be waved away as unreachable.

    Ref QB-ZHJBSQSource: CompTIA CySA+ CS0-004, Objective 2.3 — mitigation strategies: patching and configuration managementReport a problem with this question

  8. 8. A configuration hardening change was pushed to 300 servers by the endpoint management platform, which reported 300 successes, and the ticket closed automatically. The next authenticated scan still lists 46 of those servers as affected. What should the analyst conclude and do?

    • A.The finding is closed once 254 servers verify clean, because the rest falls inside expected configuration drift.
    • B.The platform's success report is the authoritative record, so the 46 scan results are treated as false positives.
    • C.The scan ran too soon after the change, so the right step is to suppress those 46 results for one full cycle.
    • D.Deployment reports are not verification, so reopen the finding and fix the 46 servers until a rescan shows them clean.✓ Answer

    A finding is closed by evidence from the tool that reported it, not by the tool that pushed the change: an agent can report a successful push while a service restart, a policy conflict or a rollback leaves the setting ineffective. The authenticated rescan is the validation step, so the 46 disagreements are exceptions to chase until they verify clean.

    Ref QB-N26U2WSource: CompTIA CySA+ CS0-004, Objective 2.3 — validating remediation (rescanning, audits and verification)Report a problem with this question

  9. 9. A kernel update closes an internal finding on the clustered database behind order capture. Applying it needs a rolling restart, the vendor notes a regression affecting one storage driver, the host is not internet-facing, and no exploitation of the flaw is reported. The next approved change window is in nine days. What is the defensible course?

    • A.Schedule it in the approved window with a rollback plan, then run a validation rescan after the change.✓ Answer
    • B.Apply the update tonight outside the window, because any open finding outranks operational scheduling.
    • C.Raise an emergency change and skip the rollback plan, so the maintenance outage stays as short as possible.
    • D.Accept the risk indefinitely, because the update carries a documented regression on one storage driver.

    The remediation carries its own risk, and here the finding is internal with no observed exploitation, so nothing justifies bypassing change control. The proportionate answer is the approved window, a rollback path for the known driver regression, and a rescan afterwards to prove the finding actually closed; an emergency change without rollback trades a modest risk for an outage risk on revenue-bearing systems.

    Ref QB-6JBZMWSource: CompTIA CySA+ CS0-004, Objective 2.3 — patching and configuration management within change control; validating remediationReport a problem with this question

  10. 10. Closing a finding requires disabling an older protocol version on a payment-adjacent server. Doing so breaks a supplier integration that cannot be changed for two quarters, and the organization's own internal standard forbids that protocol version. The analyst cannot both comply with the standard and keep the integration running. What must the analyst do?

    • A.Leave the protocol enabled and record the supplier's business reason in the comment field of the scan ticket.
    • B.Escalate it as a formal exception for the risk owner, with compensating controls, an expiry date and a review.✓ Answer
    • C.Disable the protocol in the next window and let the supplier integration fail until the supplier adapts.
    • D.Reclassify the finding as informational, because the internal standard cannot be met with today's integration.

    When remediation and a documented internal requirement cannot both be satisfied, the decision is no longer technical and is not the analyst's to make: it belongs to the risk owner through the exception process, which records the business justification, the compensating controls, an expiry and a review. Silently leaving the protocol on, or downgrading the finding, hides an accepted risk that the organization never formally accepted.

    Ref QB-MVUPDESource: CompTIA CySA+ CS0-004, Objective 2.3 — exceptions and compensating controls; Objective 2.4 — risk management and governance of accepted riskReport a problem with this question

  11. 11. Two externally reachable hosts carry the same finding with the same severity rating, and no exploitation has been observed. One is a marketing brochure site with static pages and no user accounts. The other is the portal clinicians use to retrieve patient records. Which is worked FIRST, and what decides it?

    • A.The clinician portal, because an authenticated application always carries a higher rating than an open one.
    • B.The brochure site, because a public site with no authentication gives an attacker the easiest first foothold.
    • C.Either one, because an identical rating and identical exposure leave nothing to separate the two findings.
    • D.The clinician portal, because what the asset does and the data behind it set the consequence of compromise.✓ Answer

    When exposure and rating match, asset criticality and data sensitivity break the tie: compromise of a static brochure site costs reputation, while compromise of a records portal reaches regulated patient data and a clinical workflow. The rating itself does not change because an application requires authentication; business context, not the score, moves the item to the front.

    Ref QB-4DPHTDSource: CompTIA CySA+ CS0-004, Objective 2.3 — context awareness: asset criticality and data sensitivity in prioritizationReport a problem with this question

  12. 12. A finding will stay open for a month while a patch is validated. The plan lists a firewall rule that blocks the vulnerable port, an alert that fires when that port is probed, a documented rebuild procedure if the host is compromised, and a monthly management review of the open item. Which item supplies the detective function, and what does that function contribute here?

    • A.The firewall rule, because blocking the vulnerable port produces the record that shows attempts against the host.
    • B.The probe alert, because it tells the team the blocked path is being tested while the defect is still present.✓ Answer
    • C.The rebuild procedure, because restoring the host reveals what an attacker changed while it was open.
    • D.The management review, because a monthly checkpoint uncovers findings that stayed open past their date.

    Blocking is a preventive function and rebuilding is a corrective one; only the alert observes activity and reports it while the vulnerability is still live, which is what tells the team whether the interim protection is being probed and whether the deferral is still safe. Management review is an administrative oversight step, not detection of attacker activity.

    Ref QB-KVGC8DSource: CompTIA CySA+ CS0-004, Objective 2.4 — control functions: preventative, detective, responsive/correctiveReport a problem with this question

  13. 13. A remediation plan for findings in a server room lists three items: a written standard requiring quarterly review of server images, a locked cabinet with a camera over the rack, and a host configuration baseline enforced by an agent. Classify the three items by the nature of the control, in the order listed.

    • A.The standard is administrative, the cabinet physical, the baseline technical.✓ Answer
    • B.The standard is technical, the cabinet administrative, and the baseline physical.
    • C.The standard is operational, the cabinet physical, the baseline managerial.
    • D.The standard is managerial, the cabinet technical, the baseline operational.

    Control nature is judged by what implements the control, not by who asked for it: a written requirement is carried out by people and procedure, a locked cabinet with a camera restricts and observes physical access, and an agent-enforced configuration baseline is implemented by technology. The CySA+ CS0-004 outline lists the control types as administrative, technical and physical; managerial is another name for administrative, and each distractor misplaces at least one item, such as calling the cabinet technical or the agent-enforced baseline managerial or physical.

    Ref QB-3DB7NCSource: CompTIA CySA+ CS0-004, Objective 2.4 — control types: administrative (managerial), technical, physicalReport a problem with this question

  14. 14. A finding on a service hosted by a third party cannot be remediated by the organization itself, and management points to a contract clause that makes the provider liable for breach costs. The analyst is asked whether the finding can be closed. Which answer is correct?

    • A.Yes: because liability now sits with the provider, the item can leave the organization's register of open findings.
    • B.No: shifting who pays leaves the exposure in place, so the finding stays tracked against the provider's fix.✓ Answer
    • C.Yes: findings on a hosted service belong to the provider's own scan scope and fall outside the analyst's tracking.
    • D.No: the contract clause has to be voided before any finding on a hosted service can be worked or reported.

    Transferring risk by contract or insurance moves the financial consequence, not the vulnerability: customers can still be harmed and the service can still be compromised. The analyst therefore keeps the finding in the register, records the provider's committed fix and dates, and reports the residual exposure, because only the provider's remediation and its verification can close it.

    Ref QB-JV523CSource: CompTIA CySA+ CS0-004, Objective 2.4 — risk management strategies (transfer) and third-party/supply chain riskReport a problem with this question

  15. 15. A segment that processes payment card data falls under an obligation the organization inherited through its contract with the acquiring bank. A finding there was handled with a compensating control instead of a patch. What does the inherited obligation add to the analyst's work?

    • A.A mandatory severity increase on the finding, which the analyst enters by hand before the report is issued.
    • B.Nothing extra: an inherited obligation governs the external auditor's report rather than the vulnerability management record.
    • C.Evidence duties: the control, its approval, its scope and its review date must be recorded for external validation.✓ Answer
    • D.A duty to remove that segment from the scan scope so findings never appear in the compliance evidence pack.

    An inherited obligation does not change the technical decision, it changes what must be provable: a compensating control is acceptable only when someone can later show what it is, who approved it, exactly what it covers and when it will be revisited. That is why regulated or contractually bound scopes turn the analyst's notes into retained evidence rather than internal commentary.

    Ref QB-2DYUFBSource: CompTIA CySA+ CS0-004, Objective 2.4 — regulatory and compliance drivers of vulnerability management, compensating control documentationReport a problem with this question

  16. 16. Four findings are open. A: a high-rated flaw on an air-gapped test bench. B: a medium-rated authentication bypass on the internet-facing customer portal, with exploitation reported in the wild. C: a high-rated flaw on an internal print server whose vulnerable port is already blocked at the firewall. D: a critical-rated flaw on a spare server that is powered off pending decommission. Which is worked FIRST?

    • A.D, the critical-rated flaw on the powered-off spare, because critical items head the queue.
    • B.A, the flaw on the air-gapped test bench, because it carries a high severity rating.
    • C.B, the authentication bypass on the internet-facing portal with exploitation reported.✓ Answer
    • D.C, the print server flaw, because a high rating still outranks a medium one after blocking.

    Only one of the four combines a reachable attack path, an authentication bypass on a customer-facing service and evidence that attackers are using it now. The air-gapped bench has no path, the powered-off spare presents no running service to attack despite its rating, and the print server's path is already blocked, which is exactly why a lower rating can outrank higher ones.

    Ref QB-HVSPVASource: CompTIA CySA+ CS0-004, Objective 2.3 — prioritization by exposure, exploitation evidence and existing controls rather than severity ratingReport a problem with this question

  17. 17. A finding on an internal reporting server was ranked low because the host sat on an internal segment only. A project has just published that server through an external gateway so partners can reach it, and the finding is still unpatched. What is the correct response?

    • A.Keep the original rank, because neither the severity rating nor the underlying flaw in the software has changed.
    • B.Re-rank the finding now that the host is externally reachable, treating the exposure change as the trigger.✓ Answer
    • C.Keep the original rank until the next scheduled scan cycle reports the finding from an outside view.
    • D.Lower the rank, because a gateway in front of the server means that gateway now owns the exposure.

    Priority is a function of the flaw and its environment, so a change in exposure re-opens the ranking even though the vulnerability itself is untouched. Waiting for the next scan leaves a now-reachable defect ranked on stale context, and a gateway only reduces exposure if it actually filters or terminates the vulnerable request, which publishing alone does not do.

    Ref QB-ZCMHAASource: CompTIA CySA+ CS0-004, Objective 2.3 — context awareness (internal, external, isolated) drives re-prioritizationReport a problem with this question

  18. 18. An unsupported medical imaging controller carries a serious finding that cannot be patched. The team moves it to a segment that permits only the imaging workstation's traffic and logs every other attempt. A manager asks whether the risk is now resolved. Which answer is accurate?

    • A.No: segmentation achieves nothing on an unsupported device, so the controller has to leave service now.
    • B.Yes: a segment that admits only one workstation removes the attack path entirely, so the finding can be closed.
    • C.Yes: logging every other attempt turns the finding into a detective control and closes out the exposure.
    • D.No: segmentation narrows who can reach the flaw, but the defect stays open and the device replacement stays planned.✓ Answer

    Segmentation is a compensating control: it narrows the set of hosts that can talk to the flaw and, with logging, gives the team warning if that narrow path is abused. It does not repair the device, and the permitted workstation is itself a route in if it is compromised, so the finding remains open with replacement tracked and the exception reviewed.

    Ref QB-GVECQ9Source: CompTIA CySA+ CS0-004, Objective 2.3 — mitigation via segmentation as a compensating control; residual risk remainsReport a problem with this question

  19. 19. A vulnerability register shows four entries for one quarter: the vendor patch applied and confirmed by rescan; the vulnerable service removed from the host entirely; a proxy rule filtering the exploit request while the patch waits; and the risk owner's documented decision to take no action, with a review date. Which entry is the compensating control?

    • A.The proxy rule filtering the exploit request while the vendor patch is still pending.✓ Answer
    • B.The vendor patch applied and then confirmed clean by the follow-up authenticated rescan.
    • C.The risk owner's documented decision to take no action, carrying a stated review date.
    • D.The removal of the vulnerable service from the host where it had been installed.

    A compensating control is an alternative measure used when the primary control cannot be applied yet, so the filtering rule standing in for the missing patch is the compensating entry. Patching and removing the service are remediation, because the vulnerable code is fixed or gone, and a documented decision to take no action is risk acceptance rather than a control at all.

    Ref QB-YC9759Source: CompTIA CySA+ CS0-004, Objective 2.4 — compensating control as an alternative when the primary control is unavailable; Objective 2.3 remediation and risk acceptanceReport a problem with this question

  20. 20. A scanner reports four findings with the CVSS v3.1 base vector fragments below. Judging only by the exploitability metrics, which one can be exploited by the widest set of attackers with the least effort?

    • A.AV:L/AC:L/PR:N/UI:N
    • B.AV:N/AC:H/PR:L/UI:R
    • C.AV:N/AC:L/PR:N/UI:N✓ Answer
    • D.AV:A/AC:L/PR:N/UI:R

    In the CVSS v3.1 specification the Base Score rises the more remote the attacker can be (Network beats Adjacent, Local and Physical), is greatest when no privileges are required, and is higher when attack complexity is low and no other user has to take part. Only AV:N/AC:L/PR:N/UI:N has the most exploitable value in all four metrics. A local vector shrinks the attacker pool even when no privileges are needed, and high complexity or required user interaction each lower exploitability. These metrics describe severity, not how likely an attack is in your environment.

    Ref QB-7X6H6XSource: FIRST CVSS v3.1 Specification Document, Section 2.1 Exploitability Metrics (2.1.1 Attack Vector, 2.1.2 Attack Complexity, 2.1.3 Privileges Required, 2.1.4 User Interaction)Report a problem with this question

  21. 21. A CVE in a scan report carries a CVSS v3.1 base score of 9.8 and an EPSS score of 0.03. A manager reads this as 'critical, but only 3% severe.' What does the EPSS value actually express?

    • A.The share of the CVSS impact score that applies to this particular environment
    • B.The estimated probability the CVE is exploited in the wild in the next 30 days✓ Answer
    • C.The confirmed proportion of exposed hosts that attackers have already compromised
    • D.A severity rating that replaces the CVSS base score once exploit data exists

    FIRST defines EPSS as a data-driven model that estimates the probability, published as a value from 0 to 1, that a published CVE will be exploited in the wild in the next 30 days. It is a predictive likelihood signal, separate from CVSS, which measures technical severity: 0.03 does not shrink the 9.8 severity, and neither score shows that any host is already compromised. Analysts weigh both together with context such as exposure, asset criticality and confirmed exploitation.

    Ref QB-QECPRXSource: FIRST, Exploit Prediction Scoring System (EPSS) overview page, first.org/epss: EPSS estimates the probability a published CVE will be exploited in the wild in the next 30 days, published as a 0-1 probabilityReport a problem with this question

  22. 22. An analyst scores a vulnerability with CVSS v4.0 but has no reliable threat intelligence about its exploitation, so the Threat metric Exploit Maturity (E) is left as Not Defined (X). How does the specification treat that value when the score is calculated?

    • A.As Unreported (U), assuming no exploit exists
    • B.As Proof-of-Concept (P), assuming a middle case
    • C.As Unproven (U), assuming an unproven exploit
    • D.As Attacked (A), assuming the worst case✓ Answer

    The CVSS v4.0 specification makes Not Defined (X) the default for Exploit Maturity and treats it as equivalent to Attacked (A) for the calculation, deliberately assuming the worst case until threat intelligence says otherwise. It is supplying evidence that no public proof-of-concept and no reported attacks exist (Unreported) that lowers the score, so the burden is on the score consumer to populate E. Unproven and Report Confidence are CVSS v3.1 temporal concepts; v4.0 uses Attacked, Proof-of-Concept and Unreported.

    Ref QB-6XT6ZVSource: FIRST CVSS v4.0 Specification Document, Threat Metrics, Table 12 Exploit Maturity: Not Defined (X) is the default and is equivalent to Attacked (A) for score calculation, assuming the worst caseReport a problem with this question

  23. 23. A vendor ships a Software Bill of Materials (SBOM) with each release of a product your organization runs. A project manager says the SBOM shows the product has no known vulnerabilities. What does an SBOM actually provide on its own?

    • A.A signed attestation that every listed component passed vulnerability testing
    • B.A live vulnerability feed that updates itself whenever a new CVE is published
    • C.A component inventory that must still be matched against vulnerability data✓ Answer
    • D.A guarantee from the vendor that it will patch every component on the list

    NTIA's Minimum Elements report defines an SBOM as a formal record of the details and supply chain relationships of the components used to build software. It notes that SBOM data is primarily static and will ultimately have to be linked to vulnerability data sources, and it recommends tracking vulnerability data separately. An SBOM therefore tells you what is inside; software composition analysis or a vulnerability database lookup tells you which components carry known flaws, and neither step proves the product is safe.

    Ref QB-PEZBKWSource: NTIA, The Minimum Elements for a Software Bill of Materials (SBOM) (July 2021): SBOM definition (p. 3, glossary p. 26) and section 'Vulnerabilities and SBOM' (pp. 16-17)Report a problem with this question

  24. 24. A team runs SAST on every commit, yet before go-live a tester finds that the deployed web server has directory listing enabled and the framework's debug mode switched on in the server's configuration. Why did SAST miss these issues, and which testing approach is designed to find them?

    • A.SAST only examines third-party libraries; run SCA on the source tree
    • B.SAST misses settings absent from the code; run DAST on the live app✓ Answer
    • C.SAST needs a running server to work; run IAST on the build output
    • D.SAST ran too late in the pipeline; add threat modeling during design

    OWASP describes SAST tools as analyzing source code or compiled code for security flaws, and lists among their weaknesses that they cannot find configuration issues because those are not represented in the code. DAST is black-box testing of a running application, so it sees how the deployed server actually responds, including exposed directory listings and debug output. SCA maps dependencies to known CVEs, IAST instruments a running application rather than build output, and threat modeling is a design activity, not a test of deployed settings.

    Ref QB-9XV6HZSource: OWASP Source Code Analysis Tools page (SAST strengths and weaknesses: cannot find configuration issues not represented in the code) and OWASP DevSecOps Guideline, Dynamic Application Security Testing (DAST tests a running application)Report a problem with this question

  25. 25. A banking web app authenticates users with a session cookie. Testers show that a page on another site can make a logged-in user's browser submit a funds-transfer request that the app accepts. A developer proposes stricter input validation on the transfer form. Which control BEST addresses this flaw?

    • A.Stricter server-side validation of every field on the transfer form
    • B.Output encoding of all user-supplied values shown on the account page
    • C.Parameterized queries for every statement the transfer handler runs
    • D.A per-session anti-CSRF token verified on every state-changing request✓ Answer

    This is cross-site request forgery: the browser attaches the session cookie automatically, so a forged request looks authentic no matter how well its fields are validated. OWASP's CSRF Prevention Cheat Sheet names the synchronizer token pattern, a server-generated token per session or per request that the server checks on state-changing requests, as one of the most popular and recommended mitigations, because a cross-site page cannot read or supply it. Output encoding addresses XSS and parameterized queries address SQL injection; neither stops a forged but well-formed request.

    Ref QB-SE3C42Source: OWASP Cross-Site Request Forgery Prevention Cheat Sheet, Token-Based Mitigation: Synchronizer Token PatternReport a problem with this question

  26. 26. An unauthenticated scan flags a Red Hat Enterprise Linux web server as vulnerable to a CVE because the Apache banner reports an older upstream version number. The administrator says the distribution's security errata for that CVE are installed. What is the BEST next step?

    • A.Confirm with a credentialed scan and the vendor advisory for that CVE✓ Answer
    • B.Upgrade Apache to the newest upstream release so the banner changes
    • C.Close the finding as a false positive on the administrator's word
    • D.Hide the version banner so the scanner stops reporting the finding

    Red Hat backports security fixes into the older package version it ships, so the version string stays the same after the flaw is fixed, and Red Hat notes that tools deciding solely on version numbers produce false positives because they ignore backported fixes. The finding must be validated with evidence, such as a credentialed scan that checks installed packages against the vendor's advisory, and then documented as a false positive or confirmed. Closing it on someone's word skips validation, hiding the banner removes evidence without fixing anything, and replacing the vendor package with an upstream build is unnecessary churn that leaves vendor support.

    Ref QB-8XHUBYSource: Red Hat Customer Portal, 'Backporting Security Fixes' (access.redhat.com/security/updates/backporting): version-only scanning tools produce false positives because they do not account for backported fixesReport a problem with this question

  27. 27. A legacy file-transfer service on an internet-facing server has an unpatched flaw. A review finds that no business process has used the service in a year, and the risk it carries exceeds the organization's risk tolerance. With the risk owner's approval, the service is shut down and removed. Which risk response is this?

    • A.Risk mitigation
    • B.Risk avoidance✓ Answer
    • C.Risk transfer
    • D.Risk acceptance

    NIST SP 800-39 describes risk avoidance as taking specific actions to eliminate the activities or technologies that are the basis for the risk, which is exactly what removing an unused service does. Mitigation would keep the service and reduce its risk with controls, transfer would shift the consequences to another party, and acceptance would keep it running unchanged under a documented decision. SP 800-39 defines risk tolerance as the level of risk an organization is willing to accept, so a risk that exceeds it rules out acceptance here.

    Ref QB-REQZWYSource: NIST SP 800-39, Managing Information Security Risk, Task 3-1 risk response types (acceptance, avoidance, mitigation, sharing, transfer; avoidance eliminates the activities or technologies that are the basis for the risk) and Task 1-3 risk tolerance definitionReport a problem with this question

Other topics in this exam

Practice questions based on the CompTIA CySA+ exam objectives. This site is not affiliated with or endorsed by CompTIA, and these are not real exam questions. CompTIA refreshes this exam periodically, runs two versions side by side during a transition, and sets the exam length, passing standard and eligibility terms — confirm the current objectives and the live exam code with CompTIA before you register. The real exam also includes performance-based items that a multiple-choice bank cannot reproduce, so pair this with hands-on practice. Official CySA+ exam objectives →