CompTIACompTIA
CS0-003 · Question #99
CS0-003 Question #99: Real Exam Question with Answer & Explanation
Sign in or unlock CS0-003 to reveal the answer and full explanation for question #99. The question stem and answer options stay visible for context.
Submitted by hassan_iq· Mar 6, 2026Vulnerability Management
Question
An internally developed file-monitoring system identified the following except as causing a program to crash often: char filedata[100]; fp = fopen(`access.log`, `r`); srtcopy (filedata, fp); printf (`%s\n`, filedata); Which of the following should a security analyst recommend to fix the issue?
Options
- AOpen the access.log file in read/write mode.
- BReplace the strcpy function.
- CPerform input sanitization.
- DIncrease the size of the file data butter.
Unlock CS0-003 to see the answer
You've previewed enough free CS0-003 questions. Unlock CS0-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.
Topics
#Buffer overflow#Secure coding#strcpy#Vulnerability remediation