CompTIA
CAS-003 · Question #353
CAS-003 Question #353: Real Exam Question with Answer & Explanation
Sign in or unlock CAS-003 to reveal the answer and full explanation for question #353. The question stem and answer options stay visible for context.
Question
A penetration tester noticed special characters in a database table. The penetration tester configured the browser to use an HTTP interceptor to verify that the front-end user registration web form accepts invalid input in the user's age field. The developer was notified and asked to fix the issue. Which of the following is the MOST secure solution for the developer to implement?
Options
- AIF $AGE == "!@#%^&*()_+<>?":{}[]" THEN ERROR
- BIF $AGE == [1234567890] {1,3} THEN CONTINUE
- CIF $AGE != "a-bA-Z!@#$%^&*()_+<>?"{}[]"THEN CONTINUE
- DIF $AGE == [1-0] {0,2} THEN CONTINUE
Unlock CAS-003 to see the answer
You've previewed enough free CAS-003 questions. Unlock CAS-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.