ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
A backend service accepts an age parameter from untrusted clients. The code already confirms the field contains only digits, but negative numbers and values higher than 150 are still accepted. What additional input validation control should be implemented to comply with secure coding guidance?
Add deny-list filtering to strip common SQL metacharacters.
Apply context-aware output encoding when the age is rendered to a page.
Compress the client input to reduce its overall payload size.
Enforce a permitted numeric range for the value before processing it.
Validating that input is numeric addresses type checking, but secure coding guidance also requires ensuring the value is within an acceptable range. Enforcing a permitted numeric range (for example, 0-150 for age) prevents out-of-bounds data that could trigger logic errors or be exploited for attacks. Output encoding, deny-list filtering, and payload compression do not address the specific failure to restrict the acceptable numeric limits of the field.
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.
Why is validating a permitted numeric range important in secure coding?
Open an interactive chat with Bash
What is the difference between type checking and range validation?
Open an interactive chat with Bash
Why is deny-list filtering insufficient for secure input validation?
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 .