CompTIACompTIA
CAS-005 · Question #449
CAS-005 Question #449: Real Exam Question with Answer & Explanation
Sign in or unlock CAS-005 to reveal the answer and full explanation for question #449. The question stem and answer options stay visible for context.
Submitted by carter_n· Mar 6, 2026Security Architecture
Question
A security architect examines a section of code and discovers the following: char username[20] char password[20] gets(username) checkUserExists(username) Which of the following changes should the security architect require before approving the code for release?
Options
- AAllow only alphanumeric characters for the username.
- BMake the password variable longer to support more secure passwords.
- CPrevent more than 20 characters from being entered.
- DAdd a password parameter to the function.
Unlock CAS-005 to see the answer
You've previewed enough free CAS-005 questions. Unlock CAS-005 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.