Skip to main content

CISSP practice question · Security Assessment and Testing

A disgruntled developer could insert code that deletes records on a set future date.

A disgruntled developer could insert code that deletes records on a set future date. The code would compile cleanly and pass functional tests until that date. Which control is MOST likely to detect it before release?

  • AAutomated regression tests run against each new build of the code
  • BWeekly authenticated vulnerability scans of the production servers
  • CDynamic application security testing of the staging environment
  • DMandatory peer review of every change before it can be merged
Show the answer and explanation

Correct answer: D) Mandatory peer review of every change before it can be merged

Malicious logic such as a logic bomb behaves normally under test; human review of every change by someone other than the author is the control most likely to spot it.

Why each option is right or wrong

  • A) Incorrect. Regression tests confirm existing functions still work. The malicious code is dormant until the trigger date, so the tests pass.
  • B) Incorrect. Vulnerability scanners look for known flaws and misconfigurations in deployed systems. They do not analyze custom application logic for hidden triggers.
  • C) Incorrect. DAST probes the running app with attack inputs. A date-triggered payload does nothing during the test, so DAST would not find it.
  • D) Correct. A logic bomb is dormant during testing, so test-based methods do not trigger it. A required review by another developer examines what the code does, including date checks and destructive calls, and also enforces separation of duties.
Exam domain
Security Assessment and Testing · 12% of CISSP
Question type
Multiple choice (one answer)

Practise the full CISSP exam

This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.