ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
Your development team runs an automated unit-test suite during each CI build. The coverage report shows 85 % statement coverage, yet a recent audit found that no tests exercise the branches where authorization checks fail. What change will most directly improve security coverage with minimal build-time impact?
Replace the unit-test stage with manual peer code reviews that use a secure-coding checklist.
Add negative unit tests that assert access is denied to unauthorized roles and enable branch-coverage metrics for authorization logic.
Increase the statement-coverage target to 95 % by adding tests for simple getters and setters.
Schedule a full dynamic penetration test to run automatically after every commit to the main branch.
Improving security coverage requires exercising the code paths that enforce security decisions, not merely increasing overall statement counts. Adding targeted negative unit tests that supply unauthorized identities-and instrumenting the suite to measure branch coverage-verifies that authorization logic correctly rejects improper requests while keeping execution inside the existing fast unit-test phase. Full penetration tests after every commit or substituting manual reviews would drastically lengthen the pipeline and still might not execute denial paths. Simply raising the statement-coverage threshold by adding low-value tests for trivial code inflates metrics without validating security controls.
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 are negative unit tests?
Open an interactive chat with Bash
What is branch-coverage metrics in testing?
Open an interactive chat with Bash
Why are full dynamic penetration tests not suitable for every CI build?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Testing
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 .