CompTIA CySA+ Practice Questions: Software Security

16 free, exam-style CompTIA CySA+ (CS0-003) practice questions covering Software Security. Each question shows the correct answer and a clear explanation. Ready for the real thing? Take the full timed quiz below.

🚀 Take the full CompTIA CySA+ quiz 📘 CompTIA CySA+ study guide

Q1. Which control mitigates SQL injection attacks? (Q-627fe6)

Explanation: Input validation sanitizes user inputs. Learn more.

Q2. Which tool is used for static application security testing (SAST)? (Q-627fe7)

Explanation: SAST tools like SonarQube analyze source code. Learn more.

Q3. Which vulnerability is associated with buffer overflows? (Q-924457)

Explanation: Buffer overflows occur when input exceeds allocated memory space. Learn more.

Q4. What is the MAIN benefit of using containers for application deployment? (Q-628007)

Explanation: Containers isolate applications while maintaining portability across environments. Learn more.

Q5. Which attack exploits race conditions? (Q-924471)

Explanation: Time-of-Check to Time-of-Use (TOCTOU) attacks exploit timing vulnerabilities in system operations. Learn more.

Q6. What is the PRIMARY purpose of the OWASP ZAP tool? (Q-628030)

Explanation: OWASP ZAP (Zed Attack Proxy) tests web apps for vulnerabilities. Learn more.

Q7. What does CWE stand for in software security? (Q-628035)

Explanation: CWE catalogs common software security weaknesses. Learn more.

Q8. What is the MAIN security benefit of deterministic builds? (Q-628043)

Explanation: Deterministic builds produce identical outputs from given inputs, detecting supply chain tampering. Learn more.

Q9. What is the MAIN security benefit of runtime application self-protection (RASP)? (Q-628046)

Explanation: RASP embeds protection inside apps to detect runtime attacks. Learn more.

Q10. Which of the following is a risk of unsecured API endpoints? (Q-924520)

Explanation: Unsecured APIs may leak data or allow privilege escalation. Learn more.

Q11. What is the MAIN security benefit of deterministic builds? (Q-628064)

Explanation: Deterministic builds detect tampering by reproducing identical outputs. Learn more.

Q12. What is the MAIN security benefit of deterministic builds? (Q-628071)

Explanation: Deterministic builds detect tampering by reproducing identical outputs. Learn more.

Q13. What is the MAIN security benefit of runtime application self-protection (RASP)? (Q-628074)

Explanation: RASP embeds protection inside apps to detect runtime attacks. Learn more.

Q14. What is the MAIN security benefit of deterministic builds? (Q-628081)

Explanation: Deterministic builds detect tampering by reproducing identical outputs. Learn more.

Q15. What is the MAIN security benefit of runtime application self-protection (RASP)? (Q-628084)

Explanation: RASP embeds protection inside apps to detect runtime attacks. Learn more.

Q16. In a software development lifecycle (SDLC), what is the benefit of 'shifting left'?

Explanation: Shifting left means performing security testing earlier in the SDLC to find and fix vulnerabilities sooner and cheaper. Learn more.

More CompTIA CySA+ practice topics