ECCouncil 312-38 (Certified Network Defender) Practice Test 30

Question 290

An application loads untrusted calculation modules and needs memory-safe restricted execution with only explicitly exposed host functions. Which application isolation mechanism should be used?

  1. Ephemeral test virtual machine
  2. Container runtime confinement
  3. Browser site isolation
  4. WebAssembly execution sandbox
  5. Operating-system sandbox

Explanation

Correct Answer

D:

WebAssembly runtimes can isolate modules and grant host capabilities through controlled interfaces. Runtime and host APIs remain part of the trust boundary.

Incorrect Answers

A:

A disposable VM isolates a full guest operating system and can return to a clean snapshot; this characterizes revertible full-OS testing environment, whereas the reported condition is limited guest-code access through runtime APIs.

B:

Container security profiles constrain process privileges within a shared host kernel; this characterizes constrained Linux container process, whereas the reported condition is limited guest-code access through runtime APIs.

C:

Browser site isolation separates web origins or sites into distinct renderer processes where supported, limiting cross-site data exposure; that is relevant to per-site browser process separation but does not directly account for limited guest-code access through runtime APIs.

E:

Sandboxing confines an application's allowed operations so exploitation has fewer accessible resources; its distinguishing scope is restriction of process filesystem capabilities, not the reported limited guest-code access through runtime APIs.

Question 291

A team knows its application contains many third-party packages but cannot identify which installed versions match disclosed advisories. Which application patch-management technique best addresses the deployment problem?

  1. Emergency vulnerability hotfix
  2. Dependency vulnerability scanning
  3. Patch verification through rescanning
  4. Dependency lockfile review

Explanation

Correct Answer

B:

Software composition analysis compares dependency inventories with known advisories. Reachability and exploitability still need assessment.

Incorrect Answers

A:

An expedited patch process prioritizes validation and deployment according to active exploitation and business impact when the underlying evidence concerns remediation ahead of normal release window rather than the stated matching library versions to vulnerabilities.

C:

Post-change scanning and validation confirm that the intended remediation reached deployed artifacts; this characterizes evidence that deployed fix took effect, whereas the reported condition is matching library versions to vulnerabilities.

D:

Lockfiles preserve resolved dependency versions and hashes where supported, improving reproducibility; this characterizes stability of transitive software versions, whereas the reported condition is matching library versions to vulnerabilities.

Question 292

A production web update risks breaking sessions for every customer, and operators want a canary group before full deployment. Which application patch-management technique best addresses the deployment problem?

  1. Emergency vulnerability hotfix
  2. Patch verification through rescanning
  3. Dependency vulnerability scanning
  4. Staged application rollout

Explanation

Correct Answer

D:

A canary rollout initially directs limited traffic to a new version, enabling metric checks before increasing exposure. Rollback paths should be defined.

Incorrect Answers

A:

An expedited patch process prioritizes validation and deployment according to active exploitation and business impact; the operational difference is remediation ahead of normal release window versus the scenario's low-percentage live release trial.

B:

Post-change scanning and validation confirm that the intended remediation reached deployed artifacts; this characterizes evidence that deployed fix took effect, whereas the reported condition is low-percentage live release trial.

C:

Software composition analysis compares dependency inventories with known advisories in a setting defined by matching library versions to vulnerabilities; the observed issue is low-percentage live release trial.

Question 293

A critical externally exploitable flaw has a vendor fix but the next quarterly application release is too distant. Which application patch-management technique best addresses the deployment problem?

  1. Staged application rollout
  2. Emergency vulnerability hotfix
  3. Dependency vulnerability scanning
  4. Dependency lockfile review

Explanation

Correct Answer

B:

An expedited patch process prioritizes validation and deployment according to active exploitation and business impact. Monitoring follows release.

Incorrect Answers

A:

A canary rollout initially directs limited traffic to a new version, enabling metric checks before increasing exposure for situations characterized by low-percentage live release trial; the case points instead to remediation ahead of normal release window.

C:

Software composition analysis compares dependency inventories with known advisories; its distinguishing scope is matching library versions to vulnerabilities, not the reported remediation ahead of normal release window.

D:

Lockfiles preserve resolved dependency versions and hashes where supported, improving reproducibility; the operational difference is stability of transitive software versions versus the scenario's remediation ahead of normal release window.

Question 294

A build unexpectedly installs an unreviewed package version when transitive dependency resolution changes. Which application patch-management technique best addresses the deployment problem?

  1. Emergency vulnerability hotfix
  2. Dependency lockfile review
  3. Security testing in CI pipeline
  4. Dependency vulnerability scanning
  5. Patch verification through rescanning
  6. Staged application rollout

Explanation

Correct Answer

B:

Lockfiles preserve resolved dependency versions and hashes where supported, improving reproducibility. They require controlled updates when fixes arrive.

Incorrect Answers

A:

An expedited patch process prioritizes validation and deployment according to active exploitation and business impact; that is relevant to remediation ahead of normal release window but does not directly account for stability of transitive software versions.

C:

CI integration runs suitable security tests during development and blocks or flags changes based on defined policy in a setting defined by repeatable pre-merge security checks; the observed issue is stability of transitive software versions.

D:

Software composition analysis compares dependency inventories with known advisories; this characterizes matching library versions to vulnerabilities, whereas the reported condition is stability of transitive software versions.

E:

Post-change scanning and validation confirm that the intended remediation reached deployed artifacts when analysts encounter evidence that deployed fix took effect; this question instead describes stability of transitive software versions.

F:

A canary rollout initially directs limited traffic to a new version, enabling metric checks before increasing exposure when analysts encounter low-percentage live release trial; this question instead describes stability of transitive software versions.

Question 295

Development declares a vulnerable library fixed, but security needs confirmation that the affected build no longer exposes the finding. Which application patch-management technique best addresses the deployment problem?

  1. Dependency vulnerability scanning
  2. Staged application rollout
  3. Emergency vulnerability hotfix
  4. Dependency lockfile review
  5. Patch verification through rescanning

Explanation

Correct Answer

E:

Post-change scanning and validation confirm that the intended remediation reached deployed artifacts. A closed ticket alone is insufficient evidence.

Incorrect Answers

A:

Software composition analysis compares dependency inventories with known advisories; its distinguishing scope is matching library versions to vulnerabilities, not the reported evidence that deployed fix took effect.

B:

A canary rollout initially directs limited traffic to a new version, enabling metric checks before increasing exposure; the operational difference is low-percentage live release trial versus the scenario's evidence that deployed fix took effect.

C:

An expedited patch process prioritizes validation and deployment according to active exploitation and business impact in a setting defined by remediation ahead of normal release window; the observed issue is evidence that deployed fix took effect.

D:

Lockfiles preserve resolved dependency versions and hashes where supported, improving reproducibility; that is relevant to stability of transitive software versions but does not directly account for evidence that deployed fix took effect.

Question 296

A search parameter is concatenated into SQL and testers demonstrate that special input changes database selection logic. Which web application defense should the team implement?

  1. Anti-CSRF request token
  2. Parameterized database queries
  3. Contextual output encoding
  4. Content Security Policy

Explanation

Correct Answer

B:

Prepared statements separate SQL commands from variable input values, preventing data from becoming executable query syntax.

Incorrect Answers

A:

Server-validated anti-CSRF tokens tie state-changing requests to authorized interaction and session context for situations characterized by distinguishing intended state-changing browser requests; the case points instead to separating untrusted input from SQL structure.

C:

Encoding untrusted values for the exact output context prevents them from being interpreted as active browser code; that is relevant to preventing user content from executing in browser but does not directly account for separating untrusted input from SQL structure.

D:

CSP restricts permitted content sources and can reduce some script injection impacts, especially with nonces and strict policies; the operational difference is permitted script origins in browser versus the scenario's separating untrusted input from SQL structure.

Question 297

User-supplied names appear inside HTML and scripts execute when a crafted name includes markup characters. Which web application defense should the team implement?

  1. Strict server-side input validation
  2. Contextual output encoding
  3. Parameterized database queries
  4. Content Security Policy

Explanation

Correct Answer

B:

Encoding untrusted values for the exact output context prevents them from being interpreted as active browser code. HTML and JavaScript contexts differ.

Incorrect Answers

A:

Server-side validation enforces business rules regardless of client behavior; the operational difference is validation outside attacker-controlled browser versus the scenario's preventing user content from executing in browser.

C:

Prepared statements separate SQL commands from variable input values, preventing data from becoming executable query syntax for situations characterized by separating untrusted input from SQL structure; the case points instead to preventing user content from executing in browser.

D:

CSP restricts permitted content sources and can reduce some script injection impacts, especially with nonces and strict policies for the specific concern of permitted script origins in browser, not the requirement involving preventing user content from executing in browser.

Question 298

A logged-in user's browser can be tricked into submitting a payment change by visiting an attacker-controlled page. In a separate workstream, the team must also handle permitted script origins in browser. Which TWO of the listed methods or controls correspond to these distinct requirements? Choose TWO.

  1. Parameterized database queries
  2. Anti-CSRF request token
  3. Contextual output encoding
  4. Content Security Policy

Explanation

Correct Answers

B:

Server-validated anti-CSRF tokens tie state-changing requests to authorized interaction and session context; for this multi-part scenario, the pertinent observation is distinguishing intended state-changing browser requests.

D:

CSP restricts permitted content sources and can reduce some script injection impacts, especially with nonces and strict policies; this specifically explains permitted script origins in browser among the independent requirements in the combined case.

Incorrect Answers

A:

Prepared statements separate SQL commands from variable input values, preventing data from becoming executable query syntax; its distinguishing scope is separating untrusted input from SQL structure, not the reported distinguishing intended state-changing browser requests and permitted script origins in browser.

C:

Encoding untrusted values for the exact output context prevents them from being interpreted as active browser code; it handles preventing user content from executing in browser, while the decisive evidence in the question is distinguishing intended state-changing browser requests and permitted script origins in browser.

Question 299

An API validates account limits in JavaScript only, and direct requests bypass the limits to submit forbidden values. Which web application defense should the team implement?

  1. Anti-CSRF request token
  2. Strict server-side input validation
  3. Contextual output encoding
  4. Parameterized database queries

Explanation

Correct Answer

B:

Server-side validation enforces business rules regardless of client behavior. Client validation can improve usability but is not a trust boundary.

Incorrect Answers

A:

Server-validated anti-CSRF tokens tie state-changing requests to authorized interaction and session context; the operational difference is distinguishing intended state-changing browser requests versus the scenario's validation outside attacker-controlled browser.

C:

Encoding untrusted values for the exact output context prevents them from being interpreted as active browser code in a setting defined by preventing user content from executing in browser; the observed issue is validation outside attacker-controlled browser.

D:

Prepared statements separate SQL commands from variable input values, preventing data from becoming executable query syntax; the operational difference is separating untrusted input from SQL structure versus the scenario's validation outside attacker-controlled browser.

Question 300

A web portal needs a browser-enforced restriction on which script origins may execute after an HTML injection attempt. Which web application defense should the team implement?

  1. Anti-CSRF request token
  2. Content Security Policy
  3. Parameterized database queries
  4. Strict server-side input validation
  5. Contextual output encoding

Explanation

Correct Answer

B:

CSP restricts permitted content sources and can reduce some script injection impacts, especially with nonces and strict policies. It complements output encoding.

Incorrect Answers

A:

Server-validated anti-CSRF tokens tie state-changing requests to authorized interaction and session context for the specific concern of distinguishing intended state-changing browser requests, not the requirement involving permitted script origins in browser.

C:

Prepared statements separate SQL commands from variable input values, preventing data from becoming executable query syntax; the operational difference is separating untrusted input from SQL structure versus the scenario's permitted script origins in browser.

D:

Server-side validation enforces business rules regardless of client behavior; its distinguishing scope is validation outside attacker-controlled browser, not the reported permitted script origins in browser.

E:

Encoding untrusted values for the exact output context prevents them from being interpreted as active browser code; this characterizes preventing user content from executing in browser, whereas the reported condition is permitted script origins in browser.

Certified Network Defender (312-38) Practice Tests