ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
During sprint planning, your team wants to strengthen its static application security testing (SAST) pipeline. You propose adding both a linter and an automated code-coverage tool to the continuous integration (CI) process. Which statement best explains how this combination helps reveal security weaknesses that might escape other SAST scanners?
Code-coverage analysis guarantees compliance with secure-coding standards by scanning source files, whereas the linter measures the percentage of code exercised by unit tests.
The linter records how often each statement executes during tests, and the coverage tool enforces naming conventions that reduce the attack surface.
Both tools only monitor the application in production, detecting attacks as they occur rather than during development.
The linter flags insecure patterns like unsanitized input and dangerous APIs at build time, while the coverage tool shows which lines and branches remain untested so the team can focus additional security testing there.
Linters work directly on source code before compilation, applying rule sets that flag insecure API calls, missing input validation, and other patterns that violate secure-coding standards. Automated code-coverage tools run the existing unit or integration tests and report which lines or branches were (or were not) executed. Low or uneven coverage indicates areas that are never exercised by tests, where latent vulnerabilities-such as forgotten error paths or authorization checks-could hide. Together, the linter's rule enforcement and the coverage tool's visibility into untested code guide developers to write safer code and add tests where security-relevant logic is currently unchecked. The distractors misstate each tool's purpose: linters do far more than style checks, neither tool operates only at runtime, and coverage metrics do not enforce coding standards.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a linter and how does it improve security?
Open an interactive chat with Bash
How does an automated code-coverage tool enhance security testing?
Open an interactive chat with Bash
How do linters and code-coverage tools complement SAST scanners?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Implementation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .