CompTIA CASP+ (CAS-004) — Question 423

During a software assurance assessment, an engineer notices the source code contains multiple instances of strcpy, which does not verify the buffer length. Which of the following solutions should be integrated into the SDLC process to reduce future risks?

Answer options

Correct answer: D

Explanation

The correct answer is D because performing DAST/SAST scanning helps identify security vulnerabilities early in the development process, allowing for timely remediation. The other options do not directly address the integration of security practices into the SDLC or may not be as effective in preventing future occurrences of insecure functions.